/* Custom styles for PDF Search Application */

/* Enhanced table styling */
.pdf-search-app .table {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.pdf-search-app .table thead th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}

.pdf-search-app .table tbody tr {
    transition: all 0.2s ease;
}

.pdf-search-app .table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sortable columns */
.pdf-search-app .sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.pdf-search-app .sortable:hover {
    background-color: rgba(255,255,255,0.1);
}

.pdf-search-app .sortable.sorted-asc i:before {
    content: "\f0de";
    color: #fff;
}

.pdf-search-app .sortable.sorted-desc i:before {
    content: "\f0dd";
    color: #fff;
}

/* Document links */
.pdf-search-app .document-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pdf-search-app .document-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* File size and date styling */
.pdf-search-app .file-size {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

.pdf-search-app .file-date {
    color: #6c757d;
    font-size: 0.9em;
}



/* Form enhancements */
.pdf-search-app .app-search-container .form-control {
    xborder-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.pdf-search-app .app-search-container .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.pdf-search-app .app-search-container .input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.pdf-search-app .app-search-container .form-control:focus + .input-group-text,
.pdf-search-app .app-search-container .input-group-text:focus + .form-control {
    border-color: #007bff;
}

/* Pagination styling */
.pdf-search-app .pagination {
    margin-top: 2rem;
}

.pdf-search-app .page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loading and error states */
.pdf-search-app .spinner-border {
    width: 3rem;
    height: 3rem;
}

.pdf-search-app .app-search-container .alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button enhancements */
.pdf-search-app .app-search-container .btn {
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pdf-search-app .app-search-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .pdf-search-app .app-search-container .card-body {
        padding: 1rem;
    }
    
    .pdf-search-app .table-responsive {
        border-radius: 8px;
    }
    
    .pdf-search-app .table thead th {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }
    
    .pdf-search-app .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Status indicators */
.pdf-search-app .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.pdf-search-app .status-success {
    background-color: #28a745;
}

.pdf-search-app .status-warning {
    background-color: #ffc107;
}

.pdf-search-app .status-error {
    background-color: #dc3545;
}

/* Search input enhancements */
.pdf-search-app .search-container {
    position: relative;
}

.pdf-search-app .search-container .form-control {
    padding-left: 2.5rem;
}

.pdf-search-app .search-container .input-group-text {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 10;
    background: transparent;
    border: none;
    color: #6c757d;
}
.pdf-search-app .bg-pdf-search {
    background-color:#005899;
}