.search-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.search-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.search-modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
}

.search-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.search-modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    background: #f8f9fa;
}

.search-input-container {
    margin-bottom: 1.5rem;
}

.search-input-container .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input-container .input-group-text {
    background: white;
    border: none;
    color: #667eea;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-input-container .input-group-text:hover {
    background: #f8f9fa;
}

.search-input-container .search-icon {
    color: #667eea;
}

.search-input-container .search-clear-icon {
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-input-container .search-clear-icon:hover {
    color: #c82333;
    transform: scale(1.1);
}

.search-input-container .search-input {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: white;
}

.search-input-container .search-input:focus {
    box-shadow: none;
    border: none;
}

.search-loading {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-results-container {
    max-height: 400px;
    overflow-y: auto;
}

.search-empty-state,
.search-no-results,
.search-error-state,
.search-minimum-characters-state {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-empty-icon,
.search-no-results-icon,
.search-error-icon,
.search-minimum-characters-icon {
    font-size: 3rem;
    color: #dee2e6;
}

.search-error-icon {
    color: #dc3545;
}

.search-minimum-characters-icon {
    color: #ffc107;
}

.search-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.search-results-header h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.search-category {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.search-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.search-category-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.25rem;
    user-select: none;
}

.search-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.search-item:active {
    transform: translateX(2px);
    background: #e9ecef;
}

.search-item:last-child {
    margin-bottom: 0;
}

.search-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.search-item-content {
    flex: 1;
}

.search-item-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.search-item-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
}

.search-item-action {
    color: #dee2e6;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.search-item:hover .search-item-action {
    color: #667eea;
    transform: translateX(2px);
}

.search-results-container::-webkit-scrollbar {
    width: 6px;
}

.search-results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-results-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .search-results {
        padding: 1rem;
    }
    
    .search-item {
        padding: 0.5rem;
    }
    
    .search-item-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
}
