:root {
    --primary-color: #e10600;
    --secondary-color: #15151e;
    --accent-color: #ffd700;
    --f1-red: #e10600;
    --f1-dark: #15151e;
    --f1-silver: #c0c0c0;
    --f1-gold: #ffd700;
    --bg-color: #0f0f23;
    --card-bg: #1a1a2e;
    --text-color: #ffffff;
    --border-color: #333;
    --success-color: #00d2be;
    --warning-color: #ff8c00;
    --danger-color: #e10600;
}

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

body {
    font-family: 'Formula1 Display', 'Titillium Web', 'Arial Black', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images6.alphacoders.com/112/thumb-1920-1120089.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(0.2px);
    opacity: 0.8;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(10, 10, 26, 0.95) 100%),
        radial-gradient(circle at 20% 80%, rgba(225, 6, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, var(--f1-red) 0%, #b30000 50%, var(--f1-dark) 100%);
    color: white;
    padding: 25px 0;
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow:
        0 8px 32px rgba(225, 6, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    background: linear-gradient(135deg, var(--f1-red) 0%, #b30000 100%);
    color: white;
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #ff0800 0%, var(--f1-red) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 6, 0, 0.5);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #555;
}

.btn-success {
    background: var(--success-color);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-color);
}

.btn-danger {
    background: var(--danger-color);
}

.card {
    background: rgba(255, 255, 255, 0.98);
    color: #15151e;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(225, 6, 0, 0.1);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--f1-red), var(--f1-gold), var(--f1-red)) 1;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--f1-red), var(--f1-gold), var(--f1-red));
}

.card h2, .card h3, .card h4 {
    color: var(--f1-dark);
    margin-bottom: 15px;
}

.card p, .card div {
    color: #333;
}

.nav-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--f1-red);
}

.nav-tab {
    padding: 14px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #15151e;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 14px;
    min-width: 120px;
    text-align: center;
}

.nav-tab:hover {
    background: rgba(225, 6, 0, 0.15);
    color: var(--f1-red);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--f1-red), #b30000);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.5);
    transform: translateY(-1px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    color: #15151e;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
}

.form-control[readonly] {
    background: rgba(225, 6, 0, 0.05) !important;
    border: 2px dashed rgba(225, 6, 0, 0.3) !important;
    color: #666;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Track Selection Container */
.track-selection-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.track-selection-container .form-control {
    flex: 1;
}

.add-track-btn {
    background: rgba(225, 6, 0, 0.1);
    color: var(--f1-red);
    border: 2px solid rgba(225, 6, 0, 0.3);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.add-track-btn:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: var(--f1-red);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(225, 6, 0, 0.3);
}

/* Success message animations */
@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;
    }
}

.form-group label {
    color: #15151e;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Events should display in single column */
#eventsList.grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.track-card, .driver-card, .event-card {
    background: rgba(255, 255, 255, 0.95);
    color: #15151e;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid rgba(225, 6, 0, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.track-card:hover, .driver-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(225, 6, 0, 0.3);
    border-color: var(--f1-red);
}

.track-card h3, .driver-card h3, .event-card h3 {
    color: var(--f1-red);
    margin-bottom: 10px;
}

.track-card p, .driver-card p, .event-card p,
.track-card div, .driver-card div, .event-card div {
    color: #333;
}

/* Drivers List Container - Single Column Layout */
.drivers-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Driver Row Layout */
.driver-row {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: all 0.3s ease;
    border: 2px solid rgba(225, 6, 0, 0.2);
    position: relative;
    overflow: visible; /* Changed from hidden to visible to allow tooltips */
}

.driver-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--f1-red), #ff6b35);
}

.driver-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--f1-red);
}

/* Driver Info Section */
.driver-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
}

.driver-main-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.driver-name {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--f1-red);
    margin: 0;
    letter-spacing: 0.5px;
}

.driver-nickname {
    font-size: 1.1em;
    font-weight: 600;
    color: #666;
    font-style: italic;
    background: rgba(225, 6, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.driver-bio {
    color: #555;
    font-size: 0.95em;
    line-height: 1.4;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* Driver Achievements Section */
.driver-achievements {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
}

.driver-achievements h4 {
    font-size: 1em;
    color: var(--f1-red);
    margin: 0 0 12px 0;
    font-weight: 600;
    text-align: center;
}

.driver-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* Removed duplicate .driver-achievement-badge rules - using the ones below at line 729 */

.badge-tier {
    font-size: 10px;
    position: absolute;
    top: -2px;
    right: -2px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon {
    font-size: 16px;
}

.no-achievements {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
}

.more-badges {
    background: rgba(225, 6, 0, 0.1);
    color: var(--f1-red);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Driver Actions Section */
.driver-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.driver-actions .btn {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.driver-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive Design for Driver Cards */
@media (max-width: 768px) {
    .driver-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .driver-achievements {
        max-width: none;
        min-width: auto;
    }

    .driver-actions {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }

    .driver-main-info {
        justify-content: center;
        text-align: center;
    }

    .driver-bio {
        text-align: center;
    }
}

.driver-row:hover {
    transform: translateY(-2px);
    border-color: var(--f1-red);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(225, 6, 0, 0.3);
}

.driver-info {
    flex: 1;
    min-width: 200px;
}

.driver-main-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.driver-name {
    color: var(--f1-red);
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.driver-nickname {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.driver-bio {
    color: #555;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.driver-achievements {
    flex: 2;
    min-width: 300px;
}

.driver-achievements h4 {
    color: #2C1810;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.driver-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.driver-achievement-badge {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    transition: transform 0.2s ease;
    cursor: help;
    position: relative;
}

.driver-achievement-badge:hover {
    transform: scale(1.05);
    z-index: 1000;
}

/* Enhanced tooltip support for achievement badges */
.driver-achievement-badge {
    position: relative;
}

.driver-achievement-badge::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
    pointer-events: none;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.driver-achievement-badge::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.driver-achievement-badge:hover::before,
.driver-achievement-badge:hover::after {
    opacity: 1;
    visibility: visible;
}

.driver-achievement-badge.bronze {
    background: linear-gradient(135deg, #f4e4bc, #f7e7c1);
    border-color: #CD7F32;
}

.driver-achievement-badge.silver {
    background: linear-gradient(135deg, #e8e8e8, #f0f0f0);
    border-color: #C0C0C0;
}

.driver-achievement-badge.gold {
    background: linear-gradient(135deg, #fff8dc, #fffacd);
    border-color: #FFD700;
}

.badge-tier, .badge-icon {
    font-size: 1em;
}

.no-achievements {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

.more-badges {
    color: #666;
    font-size: 0.8em;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.driver-row .driver-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .driver-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .driver-achievements {
        min-width: auto;
    }

    .driver-row .driver-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    color: #15151e;
    margin: 2% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--f1-red);
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--f1-red);
    margin-bottom: 15px;
}

.modal-content p {
    color: #333;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--f1-red);
    font-weight: bold;
    transition: all 0.3s ease;
}

.close:hover {
    color: #b30000;
    transform: scale(1.1);
}

/* Driver selection modal specific styles */
#driverSelectionList .driver-card {
    margin-bottom: 15px; /* Add spacing between driver cards */
}

#driverSelectionList .driver-card:last-child {
    margin-bottom: 0; /* Remove margin from last card */
}

.hidden {
    display: none !important;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.leaderboard-table tr:hover {
    background: rgba(255, 68, 68, 0.1);
}

.position-1 { color: var(--accent-color); font-weight: bold; }
.position-2 { color: #c0c0c0; font-weight: bold; }
.position-3 { color: #cd7f32; font-weight: bold; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #ff6666);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background images for dashboard cards only */
.stat-card.card-races {
    background-image: url('https://www.atlantamotorsportspark.com/wp-content/uploads/MG_8522-2-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stat-card.card-drivers {
    background-image: url('https://blog.demon-tweeks.com/wp-content/uploads/2023/05/Picture15-1024x682.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stat-card.card-tracks {
    background-image: url('https://files.guidedanmark.org/files/439/322731_Action_House_-_gokart.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay for text readability - only for dashboard cards */
.stat-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(225, 6, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* Content positioning - only for dashboard cards */
.stat-card .card-content {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
    width: 100%;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    color: #ffffff !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 1);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffffff !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}

.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(225, 6, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-card.clickable-card:hover .card-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(225, 6, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.stat-card.clickable-card:hover .stat-number {
    transform: scale(1.1);
    color: #ffffff !important;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
}

.stat-card.clickable-card:hover .stat-label {
    transform: scale(1.05);
    color: #ffffff !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 1);
}
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.1), transparent);
    transition: left 0.5s;
}

.clickable-card:hover::before {
    left: 100%;
}

.clickable-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(225, 6, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--f1-red);
}

.clickable-card:active {
    transform: translateY(-2px) scale(1.01);
}

/* Help/Tutorial Button */
.help-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--f1-red), #b30000);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.6);
}

@media (max-width: 768px) {
    .help-btn {
        display: none;
    }
}

/* Version Info in Bug Report */
.version-info {
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid rgba(225, 6, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.version-info p {
    margin: 5px 0;
    color: #333;
}

.version-info strong {
    color: var(--f1-red);
}

/* Release Logs Section */
.release-logs-section {
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.release-logs {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.release-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.release-item.current {
    border-left-color: var(--f1-red);
    background: rgba(225, 6, 0, 0.05);
}

.release-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.release-version {
    font-weight: bold;
    color: var(--f1-red);
    font-size: 1.1em;
}

.release-date {
    color: #666;
    font-size: 0.9em;
}

.release-notes {
    color: #333;
}

.release-notes p {
    margin: 8px 0;
    font-weight: 600;
}

.release-notes ul {
    margin: 10px 0;
    padding-left: 20px;
}

.release-notes li {
    margin: 5px 0;
    color: #555;
}

.bug-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.bug-item {
    background: rgba(225, 6, 0, 0.05);
    border: 1px solid rgba(225, 6, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
}

.bug-item h4 {
    color: var(--f1-red);
    margin-bottom: 8px;
}

.bug-item p {
    margin-bottom: 10px;
    color: #666;
}

.bug-item .bug-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.solve-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.solve-btn:hover {
    background: #00b8a5;
    transform: translateY(-1px);
}

/* Help/Tutorial Modal Styles */
.help-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.help-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    gap: 5px;
}

.help-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.help-tab-btn:hover {
    color: var(--f1-red);
    background: rgba(225, 6, 0, 0.05);
}

.help-tab-btn.active {
    color: var(--f1-red);
    border-bottom-color: var(--f1-red);
    background: rgba(225, 6, 0, 0.1);
}

.help-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.help-tab-content.active {
    display: block;
}

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

.tutorial-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(225, 6, 0, 0.02);
    border-left: 4px solid var(--f1-red);
    border-radius: 8px;
}

.tutorial-section h4 {
    color: var(--f1-red);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tutorial-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step-number {
    background: var(--f1-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: var(--f1-red);
    display: block;
    margin-bottom: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--f1-red);
}

.feature-icon {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--f1-red);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 5px 0;
    color: #555;
    font-size: 0.9em;
    position: relative;
    padding-left: 20px;
}

.feature-card li:before {
    content: "✓";
    color: var(--f1-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-voting {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.status-to-be-booked {
    background: rgba(0, 123, 255, 0.2);
    color: #004085;
    border: 1px solid rgba(0, 123, 255, 0.5);
}

.status-booked {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.status-done {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.5);
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

/* New status styles */
.status-planning {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

/* Organizer control panel styles */
.organizer-control-panel {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.2);
}

.status-update-btn {
    background: linear-gradient(135deg, var(--primary-color), #cc0500) !important;
    color: white !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

.status-update-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.6) !important;
    background: linear-gradient(135deg, #ff1a1a, #e60000) !important;
}

/* F1 Statistics Page Styling */
.statistics-f1-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.f1-championship-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.f1-table-header {
    background: linear-gradient(135deg, var(--primary-color), #cc0500);
    color: white;
    padding: 20px;
    text-align: center;
}

.f1-table-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.f1-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
}

.f1-standings-table thead th {
    background: #2c3e50;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--primary-color);
}

.f1-standings-table .pos-col { width: 60px; }
.f1-standings-table .driver-col { width: 200px; text-align: left; }
.f1-standings-table .points-col { width: 80px; }
.f1-standings-table .races-col { width: 100px; }
.f1-standings-table .wins-col { width: 100px; }
.f1-standings-table .podiums-col { width: 100px; }

.f1-driver-row {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.f1-driver-row:hover {
    background: rgba(225, 6, 0, 0.05);
    transform: translateX(5px);
}

.f1-driver-row.podium-row {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.9));
    border-left: 4px solid var(--accent-color);
}

.f1-standings-table td {
    padding: 15px 10px;
    text-align: center;
    vertical-align: middle;
}

.position-cell {
    font-weight: bold;
}

.position-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
}

.position-number.podium-position {
    background: linear-gradient(135deg, var(--accent-color), #ffed4e);
    color: var(--secondary-color);
}

.driver-cell {
    text-align: left !important;
    font-weight: 600;
    color: #2c3e50;
}

.points-cell {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.races-cell, .wins-cell, .podiums-cell {
    color: #7f8c8d;
    font-weight: 500;
}

.no-data-message {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 1.1em;
}

/* F1 Track Records Styling */
.f1-track-records {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.track-records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
}

.f1-track-card {
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.f1-track-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(225, 6, 0, 0.3);
}

.track-card-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px;
    text-align: center;
}

.track-card-header h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.track-record-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9em;
}

.record-badge {
    font-size: 1.2em;
}

.record-holder {
    font-weight: bold;
}

.record-time {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.f1-track-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.f1-track-table thead th {
    background: #2c3e50;
    color: white;
    padding: 10px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f1-track-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.track-record-row {
    transition: all 0.3s ease;
}

.track-record-row:hover {
    background: rgba(225, 6, 0, 0.05);
}

.track-record-row.fastest-lap {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 255, 255, 0.9));
    border-left: 4px solid var(--accent-color);
}

.track-record-row.podium-lap {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.9));
    border-left: 2px solid var(--accent-color);
}

.pos-cell {
    font-weight: bold;
    width: 50px;
}

.driver-cell {
    text-align: left !important;
    font-weight: 600;
    color: #2c3e50;
}

.time-cell {
    font-family: monospace;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-cell {
    font-size: 0.8em;
    color: #7f8c8d;
}

.no-records {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .track-records-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .f1-standings-table {
        font-size: 0.8em;
    }

    .f1-standings-table .driver-col {
        width: 150px;
    }

    .statistics-f1-container {
        padding: 10px;
    }
}

.status-date-selected {
    background: rgba(0, 123, 255, 0.2);
    color: #004085;
    border: 1px solid rgba(0, 123, 255, 0.5);
}

.status-race-awaiting {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--f1-dark) 0%, #0a0a1a 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 3px solid var(--f1-red);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--f1-gold), transparent);
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
}

.footer .copyright {
    font-weight: 600;
    color: white;
}

.footer .creator {
    color: white;
    font-style: italic;
}

.footer .fun-message {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

/* Custom scrollbar styling */
.modal-content::-webkit-scrollbar,
#proposedDates::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
#proposedDates::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
#proposedDates::-webkit-scrollbar-thumb {
    background: var(--f1-red);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
#proposedDates::-webkit-scrollbar-thumb:hover {
    background: #b30000;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 95vh;
    }

    .help-btn {
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .release-logs {
        max-height: 300px;
    }

    .release-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .version-info {
        padding: 10px;
    }

    /* Help Modal Mobile Styles */
    .help-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .help-tabs {
        flex-wrap: wrap;
        gap: 2px;
    }

    .help-tab-btn {
        font-size: 12px;
        padding: 10px 8px;
        min-width: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tutorial-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        font-size: 2em;
    }
}

/* Date picker responsive styles */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95% !important;
        margin: 2% auto !important;
    }

    #proposedDates {
        padding: 10px !important;
    }

    .date-option {
        min-width: 100px !important;
        padding: 10px 4px !important;
        min-height: 100px !important;
    }

    .time-input {
        width: 60px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    .date-option {
        min-width: 80px !important;
        padding: 8px 2px !important;
        min-height: 90px !important;
    }

    .time-input {
        width: 50px !important;
        font-size: 9px !important;
    }
}

/* Enhanced Date Picker Styles */
.date-picker-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(225, 6, 0, 0.2);
}

.date-picker-header {
    text-align: center;
    margin-bottom: 20px;
    color: var(--f1-red);
    font-weight: bold;
    font-size: 16px;
}

/* Global Time Section */
.global-time-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.global-time-header {
    font-weight: bold;
    color: var(--f1-red);
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.global-time-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.global-time-input {
    padding: 10px 15px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 6px;
    background: white;
    color: #333;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.global-time-input:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
}

.global-time-presets {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.time-preset-btn {
    background: rgba(225, 6, 0, 0.1);
    color: var(--f1-red);
    border: 1px solid rgba(225, 6, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.time-preset-btn:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: var(--f1-red);
    transform: translateY(-1px);
}

.weeks-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.week-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(225, 6, 0, 0.1);
}

.week-header {
    font-weight: bold;
    color: var(--f1-red);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.day-option {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(225, 6, 0, 0.2);
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.day-option:hover {
    border-color: var(--f1-red);
    background: rgba(225, 6, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3);
}

.day-option.selected {
    background: linear-gradient(135deg, var(--f1-red), #b30000);
    color: white;
    border-color: var(--f1-red);
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.4);
    transform: scale(1.05);
}

.day-option.selected .day-time-display {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px 4px;
    margin-top: 3px;
}

.day-time-input {
    margin-top: 4px;
}

.individual-day-time {
    width: 60px;
    font-size: 9px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.individual-day-time:focus {
    outline: none;
    background: white;
    border-color: var(--f1-red);
    box-shadow: 0 0 4px rgba(225, 6, 0, 0.3);
}

.day-option.disabled {
    background: rgba(200, 200, 200, 0.3);
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.day-option.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #ddd;
    background: rgba(200, 200, 200, 0.3);
}

.day-name {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
    opacity: 0.8;
}

.day-number {
    font-size: 16px;
    font-weight: bold;
}

.day-month {
    font-size: 9px;
    opacity: 0.7;
    margin-top: 2px;
}

.time-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.time-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.time-input {
    padding: 8px 12px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 6px;
    background: white;
    color: #333;
    font-weight: bold;
    text-align: center;
    width: 80px;
    transition: all 0.3s ease;
}

.time-input:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
}



.date-picker-actions {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.quick-select-btn {
    background: rgba(225, 6, 0, 0.1);
    color: var(--f1-red);
    border: 2px solid rgba(225, 6, 0, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quick-select-btn:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: var(--f1-red);
    transform: translateY(-1px);
}

/* Selected Dates Counter */
.selected-dates-counter {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(225, 6, 0, 0.2);
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.selected-dates-counter #selectedCount {
    font-size: 18px;
    font-weight: bold;
    color: var(--f1-red);
}

/* Custom Date Section */
.custom-date-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.custom-date-header {
    font-weight: bold;
    color: var(--f1-red);
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.custom-date-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.custom-date-input {
    padding: 8px 12px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 6px;
    background: white;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-date-input:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
}

.custom-time-input {
    padding: 8px 12px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 6px;
    background: white;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    width: 100px;
    transition: all 0.3s ease;
}

.custom-time-input:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
}

/* Custom Dates Display */
.custom-dates-display {
    margin-top: 15px;
    padding: 15px;
    background: rgba(225, 6, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(225, 6, 0, 0.3);
}

.custom-dates-header {
    font-weight: bold;
    color: var(--f1-red);
    margin-bottom: 10px;
    font-size: 14px;
}

.custom-dates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-date-item {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(225, 6, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: all 0.3s ease;
}

.custom-date-item:hover {
    border-color: var(--f1-red);
    box-shadow: 0 2px 8px rgba(225, 6, 0, 0.2);
}

.custom-date-text {
    font-weight: bold;
    font-size: 14px;
    flex: 1;
}

.custom-date-time {
    padding: 4px 8px;
    border: 1px solid rgba(225, 6, 0, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
    width: 80px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.custom-date-time:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 4px rgba(225, 6, 0, 0.3);
    background: white;
}

.remove-custom-date-btn {
    background: var(--f1-red);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-custom-date-btn:hover {
    background: #b30000;
    transform: scale(1.1);
}

/* Voting Interface Styles */
.date-voting-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(225, 6, 0, 0.2);
}

.proposed-dates-grid {
    display: grid;
    gap: 10px;
    margin: 15px 0;
}

.proposed-date-option {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.proposed-date-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3);
}

.proposed-date-option.voted {
    background: linear-gradient(135deg, var(--f1-red), #b30000);
    color: white;
    border-color: var(--f1-red);
    font-weight: bold;
}

.proposed-date-option.voted::after {
    content: '✅';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}



/* Voting Button Styles */
.vote-btn {
    background: var(--f1-red);
    color: white;
    border: 1px solid var(--f1-red);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(225, 6, 0, 0.3);
}

.vote-btn.voted {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.vote-btn.voted:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Time Section Styling */
.time-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.voting-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive adjustments for date picker */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95% !important;
        margin: 2% auto !important;
    }

    .days-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }

    .day-option {
        min-height: 60px;
        padding: 5px 2px;
        font-size: 12px;
    }

    .day-number {
        font-size: 14px;
    }

    .time-selector {
        flex-direction: column;
        gap: 5px;
    }

    .time-input {
        width: 100px;
    }

    .date-picker-actions {
        flex-direction: column;
        gap: 8px;
    }

    .quick-select-btn {
        width: 100%;
        padding: 10px;
    }

    .global-time-controls {
        flex-direction: column;
        gap: 10px;
    }

    .global-time-input {
        min-width: 100px;
        font-size: 14px;
    }

    .global-time-presets {
        gap: 5px;
    }

    .time-preset-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .date-info {
        gap: 5px;
    }

    .time-edit-section {
        gap: 5px;
    }

    .track-selection-container {
        flex-direction: column;
        gap: 8px;
    }

    .add-track-btn {
        min-width: auto;
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .time-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .voting-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vote-btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 12px;
    }



    .individual-day-time {
        width: 50px;
        font-size: 8px;
        padding: 1px;
    }

    .day-option {
        min-height: 70px;
    }

    .custom-date-controls {
        flex-direction: column;
        gap: 8px;
    }

    .custom-date-input,
    .custom-time-input {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .custom-date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .custom-date-time {
        width: 100px;
        margin: 0;
    }

    .remove-custom-date-btn {
        align-self: flex-end;
    }
}

/* Additional utility classes */
.modal-actions {
    margin-top: 20px;
}

.add-driver-form {
    display: none;
    margin-top: 20px;
    border-top: 2px solid var(--f1-red);
    padding-top: 20px;
}

.dashboard-buttons {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-stats {
    background: linear-gradient(135deg, #666, #444);
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-leaderboard {
    background: linear-gradient(135deg, var(--f1-red), #b30000);
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.btn-leaderboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.button-group .btn {
    margin: 0;
}
    gap: 15px;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-selector label {
    font-weight: bold;
    color: var(--f1-red);
    white-space: nowrap;
}

.year-selector select {
    padding: 8px 12px;
    border: 2px solid var(--f1-red);
    border-radius: 6px;
    background: white;
    color: var(--f1-dark);
    font-weight: 600;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-selector select:hover {
    background: rgba(225, 6, 0, 0.05);
    border-color: #cc0500;
}

.year-selector select:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
}

/* Season Champions Podium */
.season-champions {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(225, 6, 0, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.champion-podium {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.champion-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.champion-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 3px solid #ffd700;
    order: 2;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.champion-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    border: 3px solid #c0c0c0;
    order: 1;
}

.champion-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    border: 3px solid #cd7f32;
    order: 3;
}

.champion-medal {
    font-size: 2em;
    margin-bottom: 8px;
}

.champion-name {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--f1-dark);
    margin-bottom: 5px;
}

.champion-points {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.champion-title {
    font-size: 0.8em;
    font-weight: bold;
    color: var(--f1-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .champion-podium {
        flex-direction: column;
        gap: 15px;
    }

    .champion-1 {
        order: 1;
        transform: none;
    }

    .champion-2 {
        order: 2;
    }

    .champion-3 {
        order: 3;
    }
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.bug-reports-section {
    margin-top: 30px;
}

/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary-color) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(225, 6, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
}

.password-container {
    background: linear-gradient(145deg, var(--card-bg), rgba(26, 26, 46, 0.95));
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 15px 35px rgba(225, 6, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: 20px;
    padding: 3px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.password-logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.password-logo-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease;
}

/* Responsive scaling for different screen sizes */
@media (max-width: 768px) {
    .password-logo-img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .password-logo-img {
        max-height: 60px;
    }

    .password-logo {
        margin-bottom: 20px;
        padding: 0 10px;
    }
}

@media (min-width: 1200px) {
    .password-logo-img {
        max-height: 140px;
    }
}

.password-subtitle {
    color: var(--accent-color);
    margin-bottom: 35px;
    font-size: 1.2em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.password-racing-line {
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 25%,
        var(--accent-color) 50%,
        var(--primary-color) 75%,
        transparent 100%);
    margin: 25px 0 35px 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.password-racing-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: racingLineMove 2s linear infinite;
}

@keyframes racingLineMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

.password-form-group {
    margin-bottom: 30px;
    text-align: left;
    position: relative;
}

.password-form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(145deg, var(--bg-color), rgba(15, 15, 35, 0.8));
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    box-sizing: border-box;
    position: relative;
}

.password-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.3);
    background: linear-gradient(145deg, rgba(15, 15, 35, 0.9), var(--bg-color));
}

.password-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.password-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(45deg, var(--primary-color), #ff4444, var(--primary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.password-btn:hover {
    background: linear-gradient(45deg, #ff4444, var(--primary-color), #ff4444);
}

.password-btn:active {
    box-shadow: 0 2px 8px rgba(225, 6, 0, 0.4);
}

.password-error {
    color: var(--primary-color);
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(145deg, rgba(225, 6, 0, 0.1), rgba(225, 6, 0, 0.05));
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.password-footer {
    margin-top: 35px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Track Statistics Styling */
.track-stats-detailed {
    margin-top: 30px;
}

.track-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(225, 6, 0, 0.1);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.1);
}

.track-header h5 {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
}

.track-summary {
    display: flex;
    gap: 15px;
    align-items: center;
}

.track-races {
    background: rgba(225, 6, 0, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.track-best-time {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: monospace;
}

.track-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.track-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(225, 6, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.track-stat-item .stat-label {
    font-weight: 500;
    color: #666;
}

.track-stat-item .stat-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.race-history h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

.race-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.race-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(225, 6, 0, 0.1);
    transition: all 0.2s ease;
}

.race-history-item:hover {
    background: rgba(225, 6, 0, 0.05);
    transform: translateX(5px);
}

.race-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.race-title {
    font-weight: 600;
    color: var(--secondary-color);
}

.race-date {
    font-size: 0.85em;
    color: #666;
}

.race-results {
    display: flex;
    gap: 10px;
    align-items: center;
}

.race-position {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.race-position.podium {
    background: linear-gradient(45deg, var(--accent-color), #ffed4e);
    color: var(--secondary-color);
}

.race-time, .race-avg {
    font-family: monospace;
    font-size: 0.9em;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

.no-stats {
    text-align: center;
    padding: 40px 20px;
    background: rgba(225, 6, 0, 0.05);
    border-radius: 12px;
    margin-top: 20px;
}

.no-stats h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-stats p {
    color: #666;
    font-size: 1.1em;
}

/* Enhanced Leaderboard Styling */
.leaderboard-enhanced {
    max-width: 1200px;
    margin: 0 auto;
}

.championship-standings {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(225, 6, 0, 0.1);
}

.championship-standings h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.standings-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.standings-header {
    display: grid;
    grid-template-columns: 80px 1fr 80px 80px 80px 80px;
    gap: 15px;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.standings-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px 80px 80px 80px;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(225, 6, 0, 0.1);
    transition: all 0.2s ease;
    align-items: center;
}

.standings-row:hover {
    background: rgba(225, 6, 0, 0.05);
    transform: translateX(5px);
}

.standings-row.podium-position {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.9));
    border-left: 4px solid var(--accent-color);
}

.standings-row:last-child {
    border-radius: 0 0 8px 8px;
}

.standings-row .position {
    font-weight: bold;
    text-align: center;
}

.standings-row .driver-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.standings-row .points {
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.1em;
}

.standings-row .races,
.standings-row .wins,
.standings-row .podiums {
    text-align: center;
    color: #666;
}

.track-leaderboards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.track-leaderboards h4 {
    grid-column: 1 / -1;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
    text-align: center;
}

.track-intro {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1em;
}

/* Enhanced Track Leaderboard Styling */
.track-leaderboard-enhanced {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(225, 6, 0, 0.1);
    transition: all 0.3s ease;
}

.track-leaderboard-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(225, 6, 0, 0.2);
}

.track-header-enhanced {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(225, 6, 0, 0.1);
}

.track-header-enhanced h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
    font-weight: bold;
}

.track-champion {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.champion-label {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.9em;
}

.champion-name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.champion-time {
    font-family: monospace;
    font-weight: bold;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 1.1em;
}

.track-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.track-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(225, 6, 0, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.track-stat .stat-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.track-stat .stat-value {
    font-weight: bold;
    color: var(--primary-color);
}

.track-records-enhanced h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    background: rgba(225, 6, 0, 0.05);
    border-radius: 6px;
}

.track-records-enhanced .track-record {
    display: grid;
    grid-template-columns: 40px 1fr auto auto auto;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(225, 6, 0, 0.1);
    align-items: center;
    transition: all 0.2s ease;
}

.track-records-enhanced .track-record:hover {
    background: rgba(225, 6, 0, 0.05);
    transform: translateX(3px);
}

.track-records-enhanced .track-record.fastest {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 255, 255, 0.9));
    border: 2px solid var(--accent-color);
    font-weight: bold;
    transform: scale(1.02);
}

.track-records-enhanced .track-record.podium {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.9));
    border-left: 4px solid var(--accent-color);
}

.record-stats {
    font-size: 0.8em;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.track-leaderboard {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(225, 6, 0, 0.1);
}

.track-leaderboard h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.1);
}

.track-records {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-record {
    display: grid;
    grid-template-columns: 30px 1fr auto auto;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(225, 6, 0, 0.1);
    align-items: center;
    transition: all 0.2s ease;
}

.track-record:hover {
    background: rgba(225, 6, 0, 0.05);
    transform: translateX(3px);
}

.track-record.fastest {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 255, 255, 0.9));
    border: 2px solid var(--accent-color);
    font-weight: bold;
}

.record-position {
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
}

.record-driver {
    font-weight: 500;
    color: var(--secondary-color);
}

.record-time {
    font-family: monospace;
    font-weight: bold;
    color: var(--primary-color);
    background: rgba(225, 6, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.record-badge {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.no-leaderboard {
    text-align: center;
    padding: 40px 20px;
    background: rgba(225, 6, 0, 0.05);
    border-radius: 12px;
    margin-top: 20px;
}

.no-leaderboard h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-leaderboard p {
    color: #666;
    font-size: 1.1em;
}

/* Enhanced Statistics Input Styling */
.time-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: rgba(225, 6, 0, 0.05);
    border-radius: 8px;
    border: 2px solid rgba(225, 6, 0, 0.1);
}

.time-input-container input[type="number"] {
    width: 80px;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    font-family: monospace;
    transition: all 0.2s ease;
}

.time-input-container input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

/* Specific styling for milliseconds input (3 digits) */
.time-input-container input[type="number"]#bestLapMilliseconds,
.time-input-container input[type="number"]#avgLapMilliseconds {
    width: 95px;
}

.time-separator {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    font-family: monospace;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-container label {
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    margin: 0;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
}

.form-group select option {
    padding: 10px;
    font-weight: 500;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

/* Input validation styling */
.time-input-container input[type="number"]:invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.time-input-container input[type="number"]:valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* Leaderboard Controls */
.leaderboard-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-sync {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-sync:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-sync:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-sync:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Sync button animation */
.btn-sync.syncing {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    pointer-events: none;
}

.btn-sync.syncing::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 6px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Track Leaderboards for Tabella Page */
.track-leaderboards-tabella {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid rgba(225, 6, 0, 0.2);
}

.track-leaderboards-tabella h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    font-weight: bold;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.track-podium-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(225, 6, 0, 0.1);
    transition: all 0.3s ease;
}

.track-podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(225, 6, 0, 0.3);
}

.track-podium-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.1);
}

.track-podium-header h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
}

.track-podium-subtitle {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.track-podium {
    display: flex;
    justify-content: space-around;
    align-items: end;
    gap: 15px;
    min-height: 180px;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.podium-position.position-1 {
    order: 2;
    transform: translateY(-20px);
}

.podium-position.position-2 {
    order: 1;
    transform: translateY(-10px);
}

.podium-position.position-3 {
    order: 3;
    transform: translateY(0px);
}

.podium-position.empty {
    opacity: 0.3;
}

.podium-medal {
    font-size: 2.5em;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.podium-driver {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.95em;
    min-height: 20px;
}

.podium-time {
    font-family: monospace;
    font-weight: bold;
    color: var(--primary-color);
    background: rgba(225, 6, 0, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9em;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podium-rank {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(225, 6, 0, 0.3);
}

.podium-position.position-1 .podium-rank {
    background: linear-gradient(45deg, var(--accent-color), #ffed4e);
    color: var(--secondary-color);
    width: 35px;
    height: 35px;
    font-size: 1em;
}

.podium-position.position-2 .podium-rank {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    color: var(--secondary-color);
}

.podium-position.position-3 .podium-rank {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: white;
}

/* Mobile responsiveness for time inputs */
@media (max-width: 768px) {
    .time-input-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .time-input-container input[type="number"] {
        width: 100px;
        font-size: 20px;
        padding: 12px 16px;
    }

    .time-separator {
        display: none;
    }

    .time-input-container::before {
        content: "Perc : Másodperc . Ezredmásodperc";
        font-size: 12px;
        color: #666;
        font-weight: normal;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .track-podium {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        min-height: auto;
    }

    .podium-position {
        transform: none !important;
        order: initial !important;
        width: 100%;
        max-width: 250px;
    }

    .track-podium-card {
        padding: 20px;
    }
}

/* F1-Style Statistics Page */
.stats-overview {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
}

.stats-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    animation: f1-pulse 2s ease-in-out infinite;
}

@keyframes f1-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.stats-overview h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Override existing stats-grid for F1 style */
#profile .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    #profile .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #profile .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Override existing stat-card for F1 style */
#profile .stat-card {
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background-image: none !important;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#profile .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

#profile .stat-card:hover::before {
    left: 100%;
}

#profile .stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(225, 6, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#profile .stat-card .stat-label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

#profile .stat-card .stat-number {
    font-size: 3.2em;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color) !important;
    font-family: Arial, sans-serif;
    display: block;
}

/* Statistics explanation styling */
.stats-explanation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
}

.stats-explanation p {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
}

.stats-explanation p:first-child {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.stats-explanation p:last-child {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* No stats message styling */
.no-stats {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    margin-top: 30px;
}

.no-stats h4 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.no-stats p {
    color: #888;
    font-style: italic;
    line-height: 1.5;
}

/* F1-Style Track Statistics */
.track-stats-detailed {
    margin-top: 30px;
}

.track-stats-detailed h4 {
    color: black;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    text-align: center;
}

.track-stat-card {
    background: white !important;
    border: 2px solid rgba(225, 6, 0, 0.3) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

.track-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
}

.track-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4) !important;
    border-color: var(--accent-color) !important;
}

.track-header h5 {
    color: #333 !important;
    font-size: 1.3em !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
}

.track-summary {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
}

.track-races {
    background: rgba(248, 248, 248, 0.8) !important;
    color: #333 !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    border: 1px solid rgba(225, 6, 0, 0.3);
}

.track-best-time {
    background: rgba(225, 6, 0, 0.2) !important;
    color: var(--primary-color) !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    border: 1px solid rgba(225, 6, 0, 0.4);
}

.track-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.track-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    color: white;
}

.track-stat-item:last-child {
    border-bottom: none;
}

.track-stat-label {
    font-weight: 600;
    color: white;
}

.track-stat-value {
    font-weight: bold;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 1.1em;
}

/* Race History Styling */
.race-history {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 30px;
    border: none;
    box-shadow: none;
}

.race-history h6 {
    color: var(--f1-red);
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    margin-top: 25px;
    text-align: left;
    border-bottom: 2px solid var(--f1-red);
    padding-bottom: 8px;
}

.race-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.race-history-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(225, 6, 0, 0.2);
    border-radius: 0;
    padding: 15px 0;
    transition: all 0.2s ease;
    position: relative;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.race-history-item:hover {
    background: rgba(225, 6, 0, 0.05);
    border-bottom-color: var(--f1-red);
}

.race-history-item:last-child {
    border-bottom: none;
}

.race-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.race-title {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.race-date {
    color: #666;
    font-size: 0.9em;
}

.race-results {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.race-position {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.race-position.podium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.race-time, .race-avg {
    background: rgba(225, 6, 0, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 0.9em;
    border: 1px solid rgba(225, 6, 0, 0.4);
}

/* No stats message styling */
.no-stats {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.no-stats h4 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.no-stats p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Achievement System Styles */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 3px solid #FF6B35;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    z-index: 10000;
    max-width: 350px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.achievement-notification.show {
    transform: translateX(0);
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-icon {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: achievementPulse 2s infinite;
}

@keyframes achievementPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.achievement-text h4 {
    margin: 0 0 5px 0;
    color: #8B0000;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.achievement-text p {
    margin: 2px 0;
    color: #2C1810;
    font-weight: 500;
}

.achievement-text p:first-of-type {
    font-weight: bold;
    font-size: 1.1em;
}

/* Achievement Badge Styles */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin: 4px;
    transition: transform 0.2s ease;
}

.achievement-badge:hover {
    transform: scale(1.05);
}

.achievement-badge.bronze {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: white;
    border: 2px solid #8B4513;
}

.achievement-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: #2F4F4F;
    border: 2px solid #708090;
}

.achievement-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    border: 2px solid #FF6347;
}

.achievement-badge.platinum {
    background: linear-gradient(135deg, #E5E4E2, #D3D3D3);
    color: #2F4F4F;
    border: 2px solid #4682B4;
}

.achievement-badge.legendary {
    background: linear-gradient(135deg, #FF6B35, #FF4500);
    color: white;
    border: 2px solid #DC143C;
    animation: legendaryGlow 3s infinite;
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6); }
}

/* Achievement Section Styles */
.achievements-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.achievements-section h3 {
    color: #2C1810;
    margin-bottom: 20px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.achievement-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid #FF6B35;
}

.achievement-category h4 {
    color: #2C1810;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Comprehensive Achievement Section */
.comprehensive-achievement-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comprehensive-achievement-section h4 {
    color: #2C1810;
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.achievement-category {
    margin-bottom: 25px;
}

.achievement-category h5 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.achievement-badge {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.achievement-badge.earned {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.achievement-badge.in-progress {
    background: linear-gradient(135deg, #fff3cd, #fef9e7);
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.achievement-badge.available {
    background: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.7;
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.achievement-tier {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.achievement-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.achievement-name {
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.achievement-help {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: center;
    padding: 0 5px;
}

.achievement-status {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.achievement-progress {
    margin-top: 8px;
}

.achievement-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.achievement-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffcd39);
    transition: width 0.3s ease;
}

.achievement-progress span {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .achievement-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .achievement-badge {
        padding: 12px;
        min-height: 100px;
    }

    .achievement-icon {
        font-size: 1.3em;
    }

    .achievement-name {
        font-size: 0.8em;
    }
}

.achievement-badge {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.achievement-badge.earned {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.achievement-badge.in-progress {
    background: linear-gradient(135deg, #fff3cd, #fef9e7);
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.achievement-badge.available {
    background: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.7;
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.achievement-tier {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.achievement-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.achievement-name {
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.achievement-status {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.achievement-progress {
    margin-top: 8px;
}

.achievement-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.achievement-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffcd39);
    transition: width 0.3s ease;
}

.achievement-progress span {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .achievement-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .achievement-badge {
        padding: 12px;
        min-height: 100px;
    }

    .achievement-icon {
        font-size: 1.3em;
    }

    .achievement-name {
        font-size: 0.8em;
    }
}

.achievement-progress {
    margin-top: 20px;
}

.achievement-progress h4 {
    color: #2C1810;
    margin-bottom: 15px;
}

.progress-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #FF6B35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-title {
    font-weight: bold;
    color: #2C1810;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-percentage {
    font-size: 0.9em;
    color: #666;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FFA500);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.progress-details {
    font-size: 0.8em;
    color: #888;
}

/* Responsive Design for Achievements */
@media (max-width: 768px) {
    .achievement-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .achievement-notification.show {
        transform: translateY(0);
    }

    .achievement-categories {
        grid-template-columns: 1fr;
    }

    .achievement-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .achievement-icon {
        font-size: 2em;
    }
}

/* Achievement Selection Styles */
.achievement-category-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}





/* Notification Center Styles */
.notification-center {
    position: relative;
    margin-right: 15px;
    z-index: 900;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.bell-icon {
    font-size: 22px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notification-dropdown {
    position: fixed;
    top: 60px;
    right: 15px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 900;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.notification-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

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

.notification-actions .btn-small {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-actions .btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-filters {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.filter-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.filter-btn.active {
    background: #dc3545;
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #e9ecef;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
}

.notification-content {
    margin-left: 15px;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.notification-type {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.notification-type.pending {
    background: #fff3cd;
    color: #856404;
}

.notification-type.race {
    background: #d1ecf1;
    color: #0c5460;
}

.notification-type.system {
    background: #d4edda;
    color: #155724;
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-notifications p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        right: 10px;
        top: 55px;
    }
}

/* News Section Styles - Simplified */
.news-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(225, 6, 0, 0.2);
}

.news-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.news-header-simple h1 {
    color: var(--primary-color);
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-generate-news {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-generate-news:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-generate-news:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-clear-news {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-clear-news:hover {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.ai-badge {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ai-news-card {
    border: 2px solid rgba(76, 175, 80, 0.3) !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(255, 255, 255, 0.9)) !important;
}

.ai-news-card .placeholder-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Simplified News Content */
.news-content-area {
    margin-top: 30px;
}

.generated-news-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-left: 6px solid #4CAF50;
}

.generated-news-card:last-child {
    margin-bottom: 0;
}

.generated-news-card h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-text {
    color: #333;
    font-size: 1em;
    line-height: 1.8;
    white-space: pre-line;
    margin-bottom: 20px;
}

.news-timestamp {
    text-align: right;
    color: #999;
    font-size: 0.9em;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Welcome Message */
.news-welcome {
    margin-top: 30px;
}

.welcome-card {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.05), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(225, 6, 0, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.welcome-card h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
}

.welcome-card p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.welcome-features span {
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.news-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(225, 6, 0, 0.1);
    transition: all 0.3s ease;
}

.news-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(225, 6, 0, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.1);
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coming-soon-badge {
    background: linear-gradient(45deg, #ffc107, #ffed4e);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.news-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(225, 6, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(225, 6, 0, 0.3);
}

.news-card.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.9));
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-image-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), #ff4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.placeholder-icon {
    font-size: 3em;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.news-content h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-content h4 {
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 12px;
}

.news-category {
    background: rgba(225, 6, 0, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    color: #999;
    font-style: italic;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.fact-card {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.fact-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.fact-content h4 {
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.fact-content p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.championship-preview {
    background: rgba(225, 6, 0, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.preview-card h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.preview-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.preview-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-card li {
    color: #666;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.preview-card li::before {
    content: '🏁';
    position: absolute;
    left: 0;
    top: 5px;
}

.coming-soon-notice {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(225, 6, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.notice-content h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notice-content p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(225, 6, 0, 0.2);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 1.2em;
}

.feature-item span:last-child {
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .news-header-simple {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .news-header-simple h1 {
        font-size: 1.5em;
    }

    .generated-news-card {
        padding: 20px;
    }

    .generated-news-card h2 {
        font-size: 1.2em;
    }

    .welcome-features {
        flex-direction: column;
        gap: 10px;
    }

    .welcome-features span {
        display: block;
    }
}
