/* ==============================================
   GLOBAL STYLES
   ============================================== */

:root {
    /* Color Palette */
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --success: #4caf50;
    --warning: #ff9800;
    --info: #2196f3;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    
    /* Background Colors */
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #2a2a2a;
    --bg-input: #2a2a2a;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: var(--spacing-lg);
}

.billiard-ball {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a, #8b0000);
    border-radius: 50%;
    animation: bounce 1s infinite;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.3),
        inset 0 -10px 20px rgba(0,0,0,0.3);
}

.loading-text {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    animation: pulse 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 -10px 20px rgba(0,0,0,0.3);
    }
    50% { 
        transform: translateY(-30px); 
        box-shadow: 0 30px 40px rgba(0,0,0,0.4), inset 0 -10px 20px rgba(0,0,0,0.3);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hidden {
    display: none !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.toast {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    border-left: 4px solid var(--info);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, #1a1a1a 0%, #1a3a1a 100%);
}

.toast.error {
    border-left-color: var(--highlight);
    background: linear-gradient(135deg, #1a1a1a 0%, #3a1a1a 100%);
}

.toast.warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a1a 100%);
}

.toast.info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a3a 100%);
}

.toast-message {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--text-sm);
    padding: 4px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}
/* ==============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================== */

/* Base mobile styles (default) */
:root {
    --touch-target: 44px;
    --mobile-padding: 16px;
    --tablet-padding: 24px;
}

/* Ensure all touch targets are large enough */
button, 
.btn,
.action-card,
.routine-card,
.student-card,
.session-card {
    min-height: var(--touch-target);
}

/* ==============================================
   MOBILE (< 480px)
   ============================================== */
@media (max-width: 480px) {
    /* General layout */
    .dashboard {
        padding: var(--mobile-padding);
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .dashboard-header .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .dashboard-header .header-actions .btn {
        flex: 1;
        min-width: calc(50% - 4px);
        font-size: 14px;
        padding: 12px;
    }
    
    /* Profile section */
    .profile-picture-container img {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Stats grid - 2x2 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Quick actions - stacked */
    .action-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .action-card {
        padding: 16px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .action-icon {
        font-size: 24px;
    }
    
    /* Routine cards - single column */
    .routine-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .routine-card {
        padding: 16px;
    }
    
    .routine-card .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Students grid - single column */
    .students-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Session list */
    .session-card {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .session-stats-detail {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Period selector */
    .period-selector .btn-group {
        width: 100%;
    }
    
    .period-selector .btn {
        flex: 1;
        font-size: 13px;
        padding: 10px;
    }
    
    /* Category filter */
    .category-filter .btn-group {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    
    .category-filter .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Modals - full screen */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 20px;
    }
    
    .modal-actions {
        position: sticky;
        bottom: 0;
        background: var(--bg-primary);
        padding: 16px 0;
        margin-top: 16px;
    }
    
    /* Forms */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px;
    }
    
    /* Practice buttons */
    .practice-page .btn {
        padding: 16px;
        font-size: 16px;
        margin: 4px 0;
    }
    
    /* Ball buttons grid */
    .ball-buttons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    /* Results display */
    .result-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .result-stat {
        padding: 12px;
    }
    
    .result-stat-value {
        font-size: 20px;
    }
    
    /* Schedule - show only current day */
    .schedule-week-view {
        display: none;
    }
    
    .schedule-day-view {
        display: block;
    }
    
    /* Hide scrollbar but keep functionality */
    .horizontal-scroll {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .horizontal-scroll::-webkit-scrollbar {
        display: none;
    }
    
    /* Toast notifications */
    .toast {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        bottom: 16px;
        font-size: 14px;
    }
}

/* ==============================================
   TABLET (481px - 768px)
   ============================================== */
@media (min-width: 481px) and (max-width: 768px) {
    .dashboard {
        padding: var(--tablet-padding);
    }
    
    /* Stats grid - 2x2 or 3x2 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Routine cards - 2 columns */
    .routine-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    
    /* Students grid - 2 columns */
    .students-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    
    /* Action cards - 2 columns */
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Schedule - show current day + next day */
    .schedule-week-view {
        display: none;
    }
    
    .schedule-day-view {
        display: block;
    }
    
    .schedule-day-view .day-card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Modals */
    .modal-content {
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    /* Practice buttons */
    .practice-page .btn {
        padding: 14px;
        font-size: 15px;
    }
    
    /* Ball buttons - 3 columns */
    .ball-buttons-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
}

/* ==============================================
   LAPTOP (769px - 1024px)
   ============================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Stats grid - 4 columns */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Routine cards - 2-3 columns */
    .routine-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Students grid - 3 columns */
    .students-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Schedule - show week view */
    .schedule-week-view {
        display: block;
    }
    
    .schedule-day-view {
        display: none;
    }
    
    /* Modals */
    .modal-content {
        width: 80%;
        max-width: 700px;
    }
}

/* ==============================================
   DESKTOP (> 1024px)
   ============================================== */
@media (min-width: 1025px) {
    /* Routine cards - 3 columns */
    .routine-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Students grid - 4 columns */
    .students-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Schedule - full week view */
    .schedule-week-view {
        display: block;
    }
    
    .schedule-day-view {
        display: none;
    }
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */

/* Hide on mobile */
.hide-mobile {
    display: block;
}

@media (max-width: 480px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: none;
}

@media (max-width: 480px) {
    .show-mobile {
        display: block !important;
    }
}

/* Hide on tablet and below */
.hide-tablet-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-tablet-mobile {
        display: none !important;
    }
}

/* Touch-friendly buttons */
.btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection on interactive elements */
.action-card,
.routine-card,
.student-card,
.session-card,
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Smooth scrolling for horizontal scroll areas */
.horizontal-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
/* ==============================================
   MOBILE BOTTOM NAVIGATION
   ============================================== */

/* Hide mobile nav by default (desktop) */
.mobile-nav {
    display: none;
}

/* Show mobile nav on mobile and tablet */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-secondary, #1a1a2e);
        border-top: 1px solid var(--border-color, #333);
        z-index: 1000;
        padding: 8px;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav button {
        background: none;
        border: none;
        color: var(--text-secondary, #ccc);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        padding: 8px 12px;
        cursor: pointer;
        transition: color 0.3s;
        min-width: 60px;
    }
    
    .mobile-nav button:active {
        color: var(--primary, #4a9eff);
    }
    
    .mobile-nav i {
        font-size: 20px;
    }
    
    /* Add padding to main content to prevent nav overlap */
    .dashboard,
    .schedule-page,
    .practice-page,
    .routines-page {
        padding-bottom: 80px !important;
    }
    
    /* Adjust toast position to not overlap nav */
    .toast {
        bottom: 80px !important;
    }
}
/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary, #1a1a2e);
    border: 2px solid var(--primary, #e94560);
    border-radius: 16px;
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-out;
    max-width: 90%;
    width: 400px;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-banner-icon {
    font-size: 32px;
}

.install-banner-text {
    flex: 1;
}

.install-banner-text h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary, #fff);
}

.install-banner-text p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-secondary, #999);
}

.install-banner-actions {
    display: flex;
    gap: 8px;
}

.install-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.install-btn-primary {
    background: var(--primary, #e94560);
    color: white;
}

.install-btn-primary:hover {
    background: var(--primary-dark, #c73e54);
}

.install-btn-secondary {
    background: transparent;
    color: var(--text-secondary, #999);
    border: 1px solid var(--border, #333);
}

.install-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9800;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10000;
    display: none;
}

.offline-indicator.show {
    display: block;
}

/* PWA install button in settings */
.pwa-install-section {
    padding: 16px;
    background: var(--bg-secondary, #1a1a2e);
    border-radius: 12px;
    margin: 16px 0;
}

.pwa-install-section h3 {
    margin: 0 0 8px;
    color: var(--text-primary, #fff);
    font-size: 18px;
}

.pwa-install-section p {
    margin: 0 0 16px;
    color: var(--text-secondary, #999);
    font-size: 14px;
}
/* ==============================================
   PWA ENHANCEMENTS
   ============================================== */

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary, #1a1a2e);
    border: 2px solid var(--primary, #e94560);
    border-radius: 16px;
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-out;
    max-width: 90%;
    width: 400px;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.install-banner-text {
    flex: 1;
    min-width: 0;
}

.install-banner-text h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary, #fff);
    font-weight: 600;
}

.install-banner-text p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-secondary, #999);
}

.install-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.install-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.install-btn-primary {
    background: var(--primary, #e94560);
    color: white;
}

.install-btn-primary:hover {
    background: var(--primary-dark, #c73e54);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.install-btn-secondary {
    background: transparent;
    color: var(--text-secondary, #999);
    border: 1px solid var(--border, #333);
}

.install-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9800;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10000;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.offline-indicator.show {
    display: block;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile Bottom Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary, #1a1a2e);
    border-top: 1px solid var(--border, #333);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav button {
    background: none;
    border: none;
    color: var(--text-secondary, #999);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 16px;
    transition: color 0.2s;
    font-size: 12px;
}

.mobile-nav button i {
    font-size: 20px;
}

.mobile-nav button:hover,
.mobile-nav button:active {
    color: var(--primary, #e94560);
}

/* Add padding to body for mobile nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    .install-banner {
        bottom: 70px;
    }
}

/* PWA Install Section in Settings */
.pwa-install-section {
    padding: 20px;
    background: var(--bg-secondary, #1a1a2e);
    border-radius: 12px;
    margin: 16px 0;
    border: 1px solid var(--border, #333);
}

.pwa-install-section h3 {
    margin: 0 0 8px;
    color: var(--text-primary, #fff);
    font-size: 18px;
    font-weight: 600;
}

.pwa-install-section p {
    margin: 0 0 16px;
    color: var(--text-secondary, #999);
    font-size: 14px;
    line-height: 1.5;
}

.pwa-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pwa-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success, #4caf50);
}

.pwa-status-indicator.offline {
    background: var(--warning, #ff9800);
}

/* Offline sync button */
.sync-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary, #e94560);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.sync-button:hover {
    background: var(--primary-dark, #c73e54);
    transform: translateY(-1px);
}

.sync-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sync-button i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==============================================
   EXTRA LARGE MODAL FOR STUDENT STATS
   ============================================== */

.modal-xl {
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-card, #1a1a1a);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-xl .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card, #1a1a1a);
}

.modal-xl .modal-title {
    font-size: 22px;
    font-weight: 700;
}

.modal-xl .modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-xl .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.modal-xl .stat-card {
    background: var(--bg-input, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.modal-xl .stat-card:hover {
    border-color: var(--highlight, #e94560);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-xl .stat-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.modal-xl .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-xl .stat-label {
    font-size: 12px;
    color: var(--text-muted, #808080);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-xl .medals-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-input, #2a2a2a);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-xl .medal-item {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.modal-xl .medal-item.gold {
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-xl .medal-item.silver {
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.modal-xl .medal-item.bronze {
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.modal-xl .session-list {
    display: grid;
    gap: 12px;
}

.modal-xl .session-card {
    background: var(--bg-input, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-xl .session-card:hover {
    border-color: var(--highlight, #e94560);
    transform: translateX(4px);
    background: #333;
}

@media (max-width: 768px) {
    .modal-xl {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-xl .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .modal-xl .stat-card {
        padding: 14px;
    }
    
    .modal-xl .stat-value {
        font-size: 22px;
    }
    
    .modal-xl .medals-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .modal-xl .medal-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .modal-xl .session-card {
        flex-direction: column;
        gap: 12px;
    }
}
