/* ===================================
   BLAZORSCORE - MODERN DESIGN SYSTEM
   Version: 2.0
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Light Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E9ECEF;
    --text-primary: #1A1A1A;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;
    
    /* Accent Colors */
    --accent-primary: #0066FF;
    --accent-success: #00C853;
    --accent-warning: #FFA000;
    --accent-danger: #FF1744;
    --accent-live: #FF1744;
    
    /* Match Status Colors */
    --status-live: #FF1744;
    --status-finished: #6C757D;
    --status-upcoming: #0066FF;
    --status-win: #00C853;
    --status-draw: #6C757D;
    --status-loss: #FF1744;
    
    /* Border & Shadows */
    --border-color: #E0E0E0;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-tertiary: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --border-color: #333333;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* ===== HEADER STYLES ===== */
.modern-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-top {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-success));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text h1 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text small {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modern Search Bar */
.modern-search {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.modern-search input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.modern-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.modern-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-fast);
}

.modern-search button:hover {
    color: var(--accent-primary);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: rotate(20deg);
}

.dropdown-toggle-modern {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle-modern:hover {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

/* Sports Navigation */
.sports-nav-modern {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sports-nav-modern::-webkit-scrollbar {
    display: none;
}

.sport-btn-modern {
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sport-btn-modern:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 102, 255, 0.05);
}

.sport-btn-modern.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Live Indicator Badge */
.live-badge-header {
    position: relative;
    padding-left: 20px;
}

.live-badge-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--status-live);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.2); }
}

/* ===== SIDEBAR STYLES ===== */
.modern-sidebar {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-section {
    margin-bottom: var(--spacing-xl);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 10px;  /* Уменьшено с 12px */
    font-weight: var(--font-weight-bold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;  /* Уменьшено с 1px */
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 6px;  /* Уменьшено с 8px */
}

.league-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;  /* Уменьшено с 12px */
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.league-item-modern:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.league-item-modern.pinned {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 200, 83, 0.1));
    border-left: 3px solid var(--accent-primary);
}

.league-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.league-flag {
    font-size: 16px;  /* Уменьшено с 20px */
}

.league-name {
    font-weight: var(--font-weight-medium);
    font-size: 12px;  /* Уменьшено с 14px */
    color: var(--text-primary);
}

.league-count {
    font-size: 10px;  /* Уменьшено с 12px */
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 2px 6px;  /* Уменьшено с 2px 8px */
    border-radius: 10px;  /* Уменьшено с 12px */
}

/* ===== MATCH CARD STYLES ===== */
.tournament-section-modern {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.tournament-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;  /* Уменьшено: было var(--spacing-md) var(--spacing-lg) = 16px 24px */
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.tournament-header-modern:hover {
    background: var(--bg-tertiary);
}

.tournament-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.tournament-flag {
    font-size: 24px;
}

.tournament-details h3 {
    font-size: 13px;  /* Уменьшено с 16px */
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.tournament-details p {
    font-size: 10px;  /* Уменьшено с 12px */
    color: var(--text-secondary);
    margin: 0;
}

.tournament-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.match-count-badge {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 2px 8px;  /* Уменьшено с 4px 12px */
    border-radius: 12px;  /* Уменьшено с 16px */
    font-size: 10px;  /* Уменьшено с 12px */
    font-weight: var(--font-weight-medium);
}

.toggle-icon-modern {
    transition: transform var(--transition-fast);
}

.tournament-header-modern.collapsed .toggle-icon-modern {
    transform: rotate(-90deg);
}

/* Match Row - Ultra Compact Design (в 2 раза меньше) */
.match-row-modern {
    display: grid;
    grid-template-columns: 40px 1fr auto 80px;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 12px;  /* Уменьшено в 2 раза: было 16px 24px */
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.match-row-modern:last-child {
    border-bottom: none;
}

.match-row-modern:hover {
    background: var(--bg-secondary);
}

.match-row-modern.live {
    background: rgba(255, 23, 68, 0.05);
    border-left: 4px solid var(--status-live);
}

/* Match Time */
.match-time-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;  /* Уменьшено с 13px */
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.live-badge-modern {
    background: var(--status-live);
    color: white;
    padding: 2px 4px;  /* Уменьшено с 4px 8px */
    border-radius: 3px;
    font-size: 9px;  /* Уменьшено с 11px */
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.finished-badge-modern {
    background: var(--status-finished);
    color: white;
    padding: 2px 4px;  /* Уменьшено с 4px 8px */
    border-radius: 3px;
    font-size: 9px;  /* Уменьшено с 11px */
    font-weight: var(--font-weight-bold);
}

/* Match Teams */
.match-teams-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;  /* Уменьшено с 8px */
}

.team-row-modern {
    display: flex;
    align-items: center;
    gap: 4px;  /* Уменьшено с var(--spacing-md) = 16px */
}

.team-logo-modern {
    width: 14px;  /* Уменьшено с 24px */
    height: 14px;  /* Уменьшено с 24px */
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;  /* Уменьшено с 12px */
    color: var(--text-secondary);
}

.team-name-modern {
    font-size: 11px;  /* Уменьшено с 14px */
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Match Score */
.match-score-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;  /* Уменьшено с 8px */
    min-width: 30px;  /* Уменьшено с 40px */
}

.score-value {
    font-size: 14px;  /* Уменьшено с 18px */
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.match-row-modern.live .score-value {
    color: var(--status-live);
    animation: scoreUpdate 0.5s ease;
}

@keyframes scoreUpdate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Match Odds */
.match-odds-modern {
    display: flex;
    gap: 3px;  /* Уменьшено с 6px */
}

.odds-item-modern {
    background: var(--bg-secondary);
    padding: 3px 6px;  /* Уменьшено с 6px 10px */
    border-radius: 4px;  /* Уменьшено с 6px */
    font-size: 10px;  /* Уменьшено с 12px */
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    min-width: 28px;  /* Уменьшено с 36px */
    text-align: center;
    transition: all var(--transition-fast);
}

.odds-item-modern:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== MATCH DETAIL PAGE ===== */
.match-header-detail {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.match-score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
}

.team-display {
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.team-logo-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.team-name-large {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.score-display-large {
    font-size: 48px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.match-status-detail {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Stats Section */
.stats-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.stat-values {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.stat-value {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    min-width: 40px;
    text-align: center;
}

.stat-bar {
    width: 200px;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-success));
    transition: width var(--transition-slow);
}

/* ===== FILTERS ===== */
.filters-bar {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.filter-select {
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .modern-sidebar {
        position: relative;
        top: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .match-row-modern {
        grid-template-columns: 35px 1fr auto;  /* Уменьшено с 50px */
        padding: 4px 8px;  /* Еще меньше на планшетах */
    }
    
    .match-odds-modern {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: var(--spacing-sm) 0;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .sports-nav-modern {
        padding: var(--spacing-sm) 0;
    }
    
    .sport-btn-modern {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .match-row-modern {
        grid-template-columns: 1fr;
        gap: 3px;  /* Уменьшено */
        padding: 4px 8px;  /* Уменьшено */
    }
    
    .team-name-modern {
        font-size: 10px;  /* Еще меньше на мобильных */
    }
    
    .score-value {
        font-size: 12px;  /* Уменьшено для мобильных */
    }
    
    .match-score-display {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .score-display-large {
        font-size: 32px;
    }
}

/* ===== UTILITY CLASSES ===== */
.container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideIn var(--transition-normal) ease-out;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.empty-state-title {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ===== FOOTER STYLES ===== */
.footer-modern {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 32px 0 24px;
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--accent-primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.footer-link i {
    font-size: 14px;
    opacity: 0.8;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright p {
    color: var(--text-tertiary);
    font-size: 12px;
    margin: 0;
    opacity: 0.7;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-modern {
        padding: 24px 0 16px;
        margin-top: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-link {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .footer-copyright {
        padding-top: 16px;
    }
    
    .footer-copyright p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .footer-link span {
        font-size: 12px;
    }
    
    .footer-link i {
        font-size: 13px;
    }
}

/* ===== PARAMETER CONTROLS ===== */

/* Timezone Menu */
.timezone-menu {
    max-height: 300px;
    overflow-y: auto;
    width: 200px;
}

.timezone-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.timezone-menu a:hover {
    background-color: var(--bg-secondary);
}

.timezone-menu a.active {
    background-color: var(--accent-primary);
    color: white;
}

.timezone-menu a:last-child {
    border-bottom: none;
}

/* Language Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    min-width: 150px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
}

.dropdown-menu a.active {
    background-color: var(--accent-primary);
    color: white;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Dropdown visibility classes */
.dropdown-hidden {
    display: none !important;
}

.dropdown-visible {
    display: block !important;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .timezone-menu a,
[data-theme="dark"] .dropdown-menu a {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .timezone-menu a:hover,
[data-theme="dark"] .dropdown-menu a:hover {
    background-color: var(--bg-secondary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timezone-menu {
        width: 180px;
        max-height: 250px;
    }
    
    .timezone-menu a,
    .dropdown-menu a {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .timezone-menu {
        width: 160px;
        max-height: 200px;
    }
    
    .timezone-menu a,
    .dropdown-menu a {
        font-size: 11px;
        padding: 5px 8px;
    }
}

