/* F1 Championship Dashboard - Base Styles */
:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --accent-blue: #007acc;
    --accent-red: #dc143c;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #444444;
    --table-header-bg: #e8e8e8;
    --table-row-even: #f5f5f5;
    --table-row-odd: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@400;500;600&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: url('../assets/img/fondo.png') center center fixed;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.6;
    min-block-size: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    block-size: auto;
    position: relative;
    padding-block-start: 70px;
}

.dashboard-container {
    max-inline-size: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

.container {
    max-inline-size: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

.header {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 12px 0;
    border-block-end: 2px solid #00E5FF;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 229, 255, 0.1);
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 1000;
    animation: headerSlideDown 0.6s ease-out, headerGlow 3s ease-in-out infinite;
}

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

@keyframes headerGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(0, 229, 255, 0.1);
        border-block-end-color: rgba(0, 229, 255, 0.8);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(0, 229, 255, 0.3);
        border-block-end-color: rgba(0, 229, 255, 1);
    }
}

.header h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #ffffff;
}

.section-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin-block-end: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-inline-start: 4px solid #00E5FF;
    padding-inline-start: 15px;
    animation: fadeInLeft 0.8s ease-out, borderPulse 2s ease-in-out infinite;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes borderPulse {
    0%, 100% {
        border-inline-start-color: #00E5FF;
    }
    50% {
        border-inline-start-color: rgba(0, 229, 255, 0.5);
    }
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    /* margin-block-end: 15px; */
    overflow: hidden;
    /* padding: 6px; */
    gap: 8px;
    animation: fadeInUp 0.7s ease-out;
}

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

.nav-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-tab.active {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(0, 229, 255, 0.4));
    color: #ffffff;
    border: 1px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
    animation: tabGlow 2s ease-in-out infinite;
}

@keyframes tabGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 191, 255, 0.4);
    }
}


/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: start; }
.text-right { text-align: end; }
.mb-20 { margin-block-end: 20px; }
.mt-20 { margin-block-start: 20px; }
.p-20 { padding: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px 20px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-block-end: 10px;
    }
    
    /* Stack layout vertically on mobile */
    .dashboard-content {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .dashboard-content > div {
        flex: none !important;
    }
    
    /* Responsive tabs */
    .nav-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
