/* Search Styles */
.search-trigger {
    position: relative;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-trigger:hover {
    background: #0d6efd;
    color: white;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.search-modal.active {
    display: block;
}

.search-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1002;
}

.search-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0.25rem;
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.search-section {
    margin-bottom: 1rem;
}

.search-section-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.search-item {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-item:hover {
    background: #f8f9fa;
}

.search-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.search-item-content {
    font-size: 0.875rem;
    color: #6c757d;
}

.search-highlight {
    background: #fff3cd;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .search-container {
        width: 95%;
    }
    
    .search-results {
        max-height: 50vh;
    }
} 