/**
 * Enhanced Table Features CSS
 * Professional header redesign, search functionality, and pagination
 */

/* =================================================================
   PROFESSIONAL TABLE HEADER REDESIGN
   ================================================================= */

.table-header {
    background: linear-gradient(135deg, #1e293b 0%, #111827 50%, #0f172a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Add space above the table container */
.table-responsive {
    margin-top: 30px !important;
}

/* Alternative: Add space above the table itself */
#price-table {
    margin-top: 30px !important;
}

.table-header th {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    padding: 12px 16px !important;
    border: none !important;
    position: relative !important;
    background: transparent !important;
    transition: none !important; /* Remove hover transitions */
    line-height: 1.2 !important;
}

.table-header th:hover {
    color: #ffffff !important; /* Keep consistent color */
    cursor: default !important; /* Remove pointer cursor */
}

/* Enhanced Sort Icons */
.table-header th .sort-icon {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease !important;
    margin-left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
    position: relative !important;
}

.table-header th .sort-icon:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
}

.table-header th .sort-icon.sort-active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4) !important;
}

.table-header th .sort-icon i {
    font-size: 11px !important;
    transition: transform 0.2s ease !important;
}

.table-header th .sort-icon:hover i {
    transform: scale(1.1) !important;
}

/* =================================================================
   TABLE SECTION HEADER WITH INTEGRATED SEARCH
   ================================================================= */

.table-section-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px 12px 0 0;
    padding: 24px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.table-title-container {
    flex: 1;
}

.table-title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-title i {
    color: #10b981;
    font-size: 24px;
}

.table-subtitle {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header Search Trigger Button */
.search-trigger-header {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    min-width: 120px;
}

.search-trigger-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

.search-trigger-header:active {
    transform: translateY(0);
}

.search-trigger-header i {
    font-size: 16px;
}

.search-label {
    font-weight: 500;
}

/* Responsive header design */
@media (max-width: 768px) {
    .table-header {
        padding: 14px 0 !important;
    }
    
    .table-header th {
        font-size: 13px !important;
        padding: 10px 12px !important;
        letter-spacing: 0.2px !important;
    }
    
    .table-header th .sort-icon {
        width: 20px !important;
        height: 20px !important;
        margin-left: 6px !important;
    }
    
    .table-header th .sort-icon i {
        font-size: 10px !important;
    }
    
    .table-section-header {
        padding: 20px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .table-title {
        font-size: 24px;
    }
    
    .table-title i {
        font-size: 20px;
    }
    
    .table-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .search-trigger-header {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .table-header {
        padding: 12px 0 !important;
    }
    
    .table-header th {
        font-size: 12px !important;
        padding: 8px 8px !important;
        letter-spacing: 0.1px !important;
    }
    
    .table-header th .sort-icon {
        width: 18px !important;
        height: 18px !important;
        margin-left: 4px !important;
    }
    
    .table-header th .sort-icon i {
        font-size: 9px !important;
    }
    
    .table-section-header {
        padding: 16px 12px;
    }
    
    .table-title {
        font-size: 20px;
    }
    
    .table-subtitle {
        font-size: 13px;
    }
    
    .search-trigger-header {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .search-trigger-header .search-label {
        display: none; /* Hide text on very small screens, keep icon */
    }
}

/* Table styling for standalone display */
.table-responsive {
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Table header styling for standalone display */
.table-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Search Overlay - Dropdown Style */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search Container - Properly Centered */
.search-container {
    position: fixed;
    top: 100px;
    left: 50%;
    width: 500px;
    max-width: 90vw;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    margin-left: -250px; /* Half of width for perfect centering */
    transform: translateY(-20px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0) scale(1);
}

/* Responsive centering */
@media (max-width: 520px) {
    .search-container {
        margin-left: -47.5vw; /* Half of 95vw for mobile centering */
    }
}

/* Search Header - Compact Style */
.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.search-title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-title i {
    color: #10b981;
    font-size: 16px;
}

.search-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    padding: 20px 24px 16px 24px;
}

.search-input {
    background: #0f172a !important;
    border: 2px solid #334155 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    width: 100% !important;
    font-size: 18px !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 400 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.search-input:focus {
    border-color: #10b981 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
    background: #111827 !important;
}

.search-input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}


/* Search Info */
.search-info {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    padding: 0 24px 20px 24px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-info .shortcut {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    margin: 0 4px;
    color: #10b981;
}

/* Search highlighting */
.search-highlight {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
    padding: 1px 2px !important;
    border-radius: 2px !important;
}

/* Table row states */
.table-row-hidden {
    display: none !important;
}

.table-row-visible {
    display: table-row !important;
}

/* Additional pagination hiding method */
tr[data-paginated-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
}

/* Empty search results */
.no-results-row {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
}

/* =================================================================
   PAGINATION STYLES
   ================================================================= */

.pagination-container {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.pagination-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pagination-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.entries-info {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.rows-per-page {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.rows-per-page label {
    margin: 0;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

.rows-select {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rows-select:hover {
    border-color: rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

.rows-select:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.rows-select option {
    background: #0f172a;
    color: #ffffff;
    padding: 8px;
}

.pagination-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-btn {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.page-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.page-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    border-color: #10b981;
}

.page-btn:disabled {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #64748b;
    cursor: not-allowed;
    transform: none;
    opacity: 0.4;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0 8px;
}

.page-ellipsis {
    color: #10b981;
    font-size: 14px;
    padding: 8px 6px;
    font-weight: 700;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* =================================================================
   RESPONSIVE DESIGN FOR ENHANCED FEATURES
   ================================================================= */

@media (max-width: 768px) {
    .search-container {
        width: 95vw;
        max-height: 80vh;
        top: 80px;
    }
    
    .search-header {
        padding: 16px 20px 12px 20px;
    }
    
    .search-title {
        font-size: 16px;
    }
    
    .search-input-wrapper {
        padding: 16px 20px 12px 20px;
    }
    
    .search-input {
        font-size: 16px !important; /* Prevent zoom on mobile */
        padding: 14px 20px !important;
    }
    
    .search-info {
        padding: 0 20px 16px 20px;
        font-size: 11px;
    }
    
    /* Token results use existing performer styles */
    
    .pagination-container {
        padding: 12px;
        border-radius: 0 0 8px 8px;
    }
    
    .pagination-top-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pagination-right {
        align-items: center;
        gap: 8px;
    }
    
    .pagination-info {
        justify-content: center;
    }
    
    .entries-info {
        font-size: 12px;
    }
    
    .rows-per-page {
        font-size: 12px;
        gap: 8px;
        justify-content: center;
    }
    
    .rows-select {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
        padding: 6px 8px;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 10px;
    }
    
    .pagination-top-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-right {
        align-items: center;
        gap: 6px;
    }
    
    .pagination-info {
        justify-content: center;
    }
    
    .entries-info {
        font-size: 11px;
    }
    
    .rows-per-page {
        font-size: 11px;
        gap: 6px;
        justify-content: center;
    }
    
    .rows-select {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 50px;
    }
    
    .pagination-controls {
        gap: 3px;
        padding: 4px 6px;
    }
    
    .page-btn {
        min-width: 30px;
        height: 30px;
        padding: 3px 6px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .page-numbers {
        gap: 2px;
        margin: 0 4px;
    }
    
    .page-ellipsis {
        font-size: 12px;
        padding: 6px 3px;
    }
    
    /* Hide some page numbers on very small screens */
    .page-numbers .page-btn:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}

/* =================================================================
   LOADING AND TRANSITION STATES
   ================================================================= */

.table-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.search-loading {
    position: relative;
}

.search-loading .search-icon {
    animation: search-spin 1s linear infinite;
}

@keyframes search-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* =================================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

.search-input:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.page-btn:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.rows-select:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .table-header {
        background: #000000 !important;
        border-bottom: 3px solid #ffffff !important;
    }
    
    .table-header th {
        color: #ffffff !important;
    }
    
    .search-container {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .search-input {
        background: #000000 !important;
        border: 2px solid #ffffff !important;
        color: #ffffff !important;
    }
    
    .pagination-container {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .page-btn {
        background: #000000;
        border: 2px solid #ffffff;
        color: #ffffff;
    }
}

/* =================================================================
   TABLE HOVER EFFECTS REMOVAL & FONT CONSISTENCY
   ================================================================= */

/* Remove ALL table hover effects */
#price-table tr:hover,
#price-table tr:hover:not(:has(.volatility-cell:hover)),
#price-table tr:has(.volatility-cell:hover) {
    background-color: transparent !important;
    background: transparent !important;
}

#price-table tr:hover .crypto-icon,
#price-table tr:hover:not(:has(.volatility-cell:hover)) .crypto-icon,
#price-table tr:has(.volatility-cell:hover) .crypto-icon {
    transform: none !important;
    box-shadow: none !important;
}

#price-table tr:hover .coin-name,
#price-table tr:hover:not(:has(.volatility-cell:hover)) .coin-name,
#price-table tr:has(.volatility-cell:hover) .coin-name {
    color: inherit !important;
}

/* Apply consistent Roboto font throughout table */
#price-table,
#price-table th,
#price-table td,
#price-table .coin-name,
#price-table .coin-symbol,
#price-table .price-value,
#price-table .sentiment-tag,
#price-table .sentiment-label,
#price-table .sentiment-score,
#price-table .trade-rating-container,
#price-table .rating-text,
#price-table .volatility-badge,
#price-table .volatility-label,
#price-table .volatility-score,
#price-table .forecast-badge,
#price-table .forecast-direction,
#price-table .forecast-confidence,
#price-table .change-value {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Remove transitions and hover effects from all table elements */
#price-table *,
#price-table .crypto-icon,
#price-table .coin-name,
#price-table .coin-symbol,
#price-table .volatility-badge,
#price-table .sentiment-tag,
#price-table .forecast-badge {
    transition: none !important;
}

/* Disable hover effects on volatility elements */
.volatility-badge:hover,
.volatility-minimal:hover,
.volatility-conservative:hover,
.volatility-balanced:hover,
.volatility-growth:hover,
.volatility-aggressive:hover {
    transform: none !important;
    background-color: inherit !important;
    box-shadow: none !important;
    opacity: inherit !important;
}

/* Override any existing hover animations */
#price-table .price-flash-up,
#price-table .price-flash-down,
#price-table .mobile-price-up,
#price-table .mobile-price-down {
    animation: none !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .page-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .search-trigger-header:hover {
        transform: none;
    }
}

/* =================================================================
   GLOBAL SEARCH BUTTON IN SITE HEADER
   ================================================================= */

/* Global search trigger button in site header */
.global-search-trigger {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    margin-left: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 6px;
}

.global-search-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}

.global-search-trigger:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.global-search-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive adjustments for global search */
@media (max-width: 768px) {
    .global-search-trigger {
        margin-left: 12px;
        min-width: 40px;
        height: 40px;
        padding: 6px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .global-search-trigger {
        margin-left: 8px;
        min-width: 36px;
        height: 36px;
        padding: 4px;
        font-size: 14px;
    }
}

/* =================================================================
   TOKEN SELECTOR POPUP MODIFICATIONS
   ================================================================= */

/* Update search overlay for token selector */
.search-overlay .search-container {
    max-width: 500px;
}

.search-overlay .search-title {
    font-size: 20px;
}

.search-overlay .search-title i {
    font-size: 18px;
}

/* Token search results container */
.token-results-container {
    max-height: 400px;
    overflow-y: auto;
    background: transparent;
    border-radius: 0 0 12px 12px;
    display: none;
}

/* Token Results Container - Just the container styling */
.token-results-container .performer-item {
    margin-bottom: 2px !important;
}


/* Empty token search state */
.token-search-empty {
    text-align: center;
    padding: 32px 24px;
    color: #64748b;
    font-style: italic;
    background: rgba(15, 23, 42, 0.2);
    border-radius: 0 0 12px 12px;
}

.token-search-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
    display: block;
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .search-input {
        color-scheme: dark;
    }
    
    .rows-select {
        color-scheme: dark;
    }
}

/* =================================================================
   HEADER SEARCH STYLES
   ================================================================= */

/* Header search container */
.header-search-container {
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Search input wrapper */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 30px;
    margin: 0;
    padding: 0;
}

/* Header search input */
.header-search-input {
    background: rgba(26, 31, 44, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: #ffffff;
    font-size: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 6px 10px 6px 28px;
    width: 180px;
    height: 30px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 0;
    vertical-align: middle;
    box-sizing: border-box;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.header-search-input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.15);
    background: rgba(26, 31, 44, 0.95);
    width: 220px;
}

/* Search icon inside input */
.search-icon {
    position: absolute;
    left: 9px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    pointer-events: none;
    z-index: 2;
}

/* Search results dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 18, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 2px;
    min-width: 300px;
}

/* Individual search result item */
.header-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}

.header-search-result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.header-search-result-item:hover {
    background: rgba(0, 229, 255, 0.08);
}

/* Token icon in results */
.header-search-result-item .token-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.header-search-result-item .token-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Token info section */
.header-search-result-item .token-info {
    flex: 1;
    min-width: 0;
}

.header-search-result-item .token-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-result-item .token-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
}

/* Token price info section */
.header-search-result-item .token-price-info {
    text-align: right;
    flex-shrink: 0;
}

.header-search-result-item .token-price {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.header-search-result-item .token-change {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.header-search-result-item .token-change.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.header-search-result-item .token-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Empty search state */
.search-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: rgba(255, 255, 255, 0.6);
}

.search-empty-state i {
    font-size: 20px;
    margin-bottom: 8px;
    opacity: 0.7;
    display: block;
    color: rgba(255, 255, 255, 0.4);
}

.search-empty-state .search-hint {
    font-size: 11px;
    margin-top: 6px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.5);
}

/* More results indicator */
.search-more-results {
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
    font-style: italic;
}

/* Responsive design for header search - REMOVED: Using default styles only */

@media (max-width: 768px) {
    .header-search-container {
        margin-left: 8px;
        margin-right: 8px;
    }
    
    /* Search input styling removed - using default styles only */
    
    .search-results-dropdown {
        min-width: 260px;
    }
    
    .header-search-result-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .header-search-result-item .token-icon {
        width: 24px;
        height: 24px;
    }
    
    .header-search-result-item .token-name {
        font-size: 13px;
    }
    
    .header-search-result-item .token-symbol {
        font-size: 11px;
    }
    
    .header-search-result-item .token-price {
        font-size: 12px;
    }
    
    .header-search-result-item .token-change {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .header-search-container {
        margin-left: 6px;
        margin-right: 4px;
    }
    
    .header-search-input {
        width: 110px;
        padding: 3px 4px 3px 20px;
        height: 22px;
        font-size: 9px;
    }
    
    .header-search-input::placeholder {
        font-size: 8px;
    }
    
    .header-search-input:focus {
        width: 130px;
    }
    
    .search-icon {
        left: 4px;
        font-size: 8px;
    }
    
    .search-results-dropdown {
        min-width: 240px;
    }
}