/* Advanced Search Styles */

/* Search container */
.search-container {
    margin-bottom: 2rem;
}

/* Search form */
.search-form .input-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}

/* Search filters */
.search-filters {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.search-filters.show {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1rem;
}

/* Search results */
.search-result {
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
    height: 100%;
}

.search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-result .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.search-result .card-text {
    font-size: 0.9rem;
}

/* Result type badges */
.result-type-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.result-knowledge {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.result-request {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.result-chatbot {
    background-color: #fff3e0;
    color: #e65100;
}

/* Search history */
.search-history-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-history-item:hover {
    background-color: #f8f9fa;
}

/* Pagination */
.search-pagination {
    margin-top: 1.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-form .input-group {
        flex-direction: column;
    }
    
    .search-form .input-group > .form-control {
        border-radius: 0.375rem 0.375rem 0 0;
    }
    
    .search-form .input-group > .btn {
        border-radius: 0 0 0.375rem 0.375rem;
        margin-top: -1px;
    }
    
    .search-result {
        margin-bottom: 1rem;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] .search-result {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .result-knowledge {
    background-color: #0d47a1;
    color: #e3f2fd;
}

[data-bs-theme="dark"] .result-request {
    background-color: #1b5e20;
    color: #e8f5e9;
}

[data-bs-theme="dark"] .result-chatbot {
    background-color: #e65100;
    color: #fff3e0;
}

[data-bs-theme="dark"] .search-history-item:hover {
    background-color: #343a40;
}
