/* Super Search Plugin Styles */

/* ========================================
   MODAL STYLES - Matching Rise CRM Design
   ======================================== */

#super-search-modal .modal-dialog {
    max-width: 700px;
}

#super-search-modal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#super-search-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

#super-search-modal .modal-title {
    font-weight: 600;
    font-size: 1rem;
}

#super-search-modal .modal-body {
    padding: 0;
}

#super-search-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    justify-content: center;
}

#super-search-modal kbd {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #dee2e6;
}

/* Search Input Styling */
#super-search-input {
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
    border: none;
    box-shadow: none !important;
}

#super-search-input:focus {
    box-shadow: none !important;
}

#super-search-input::placeholder {
    color: #adb5bd;
}

/* Results Container */
.super-search-results-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Category Headers */
.super-search-category-header {
    font-size: 0.85rem;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Result Items */
.super-search-item {
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.super-search-item:hover,
.super-search-item.active {
    background-color: #f8f9fa;
    border-left-color: #0d6efd;
}

.super-search-item strong {
    font-weight: 600;
    color: #212529;
}

.super-search-item mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

/* Recent Search Items */
.recent-search-item {
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

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

/* Loading Spinner */
.super-search-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}


/* ========================================
   FULL PAGE STYLES (Legacy)
   ======================================== */

.search-results-wrapper {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-history-item {
    transition: all 0.2s;
}

.search-history-item:hover {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

.card-header h5 {
    margin-bottom: 0;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Loading spinner */
#super-search-loading {
    padding: 40px 0;
}

/* Result cards animation */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #super-search-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .super-search-results-container {
        max-height: 300px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Form switches */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Empty state */
.text-center i[data-feather] {
    opacity: 0.5;
}

/* Scrollbar styling for results */
.super-search-results-container::-webkit-scrollbar {
    width: 8px;
}

.super-search-results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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