/* Advanced Search Styles */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.search-header {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-form .form-control-lg {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-size: 1.1rem;
}

.search-form .form-control-lg:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-suggestions {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none !important;
}

.result-section {
    margin-bottom: 30px;
}

.section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.result-section .card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.result-section .card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.entry-preview {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.no-results {
    color: #6c757d;
}

.search-tips .card {
    border: none;
    background: #f8f9fa;
}

.search-tips .card-body {
    padding: 20px;
}

.search-tips ul li {
    margin-bottom: 8px;
    color: #6c757d;
}

.results-header {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.results-header h5 {
    color: #495057;
    margin: 0;
}

/* Filter styles */
.form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        padding: 10px;
    }
    
    .search-header {
        padding: 15px;
    }
    
    .search-form .row.g-2 > .col-md-3 {
        margin-bottom: 10px;
    }
}

/* Loading state */
.search-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.search-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Highlight search terms */
.search-highlight {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 500;
}