:root {
    --f1-red: #e10600;
    --dark-bg: #15151e;
    --card-bg: #1f1f27;
    --text-gold: #ffc107;
    --bingo-blue: #00d2ff;
}

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container { max-width: 1000px; margin: 0 auto; }

header {
    text-align: center;
    border-bottom: 4px solid var(--f1-red);
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    background: var(--card-bg);
    border: none;
    color: #aaa;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px 4px 0 0;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--f1-red);
    color: white;
}

.view { display: none; background: var(--card-bg); padding: 20px; border-radius: 8px; }
.view.active { display: block; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    text-align: left;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #888;
    padding: 10px;
    border-bottom: 1px solid #333;
}

td { padding: 12px 10px; border-bottom: 1px solid #2a2a32; }

.pos { font-weight: 900; font-style: italic; color: #888; width: 40px; }
.driver-name { font-weight: bold; font-size: 1.1rem; }
.pts { font-weight: bold; color: var(--f1-red); text-align: right; }

.filter-section { margin-bottom: 20px; text-align: center; }
select {
    background: #2a2a32;
    color: white;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
}

.meta { font-size: 0.85rem; color: #666; margin-top: 15px; text-align: center; }
#top-nav {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

#home-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--f1-red);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px; /* The rounded look */
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#home-link:hover {
    background-color: #ff1e18; /* A slightly brighter red on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3);
}

#home-link:active {
    transform: translateY(0);
}

/* Optional: styling the arrow specifically */
#home-link span {
    margin-right: 8px;
    font-size: 1.1rem;
    line-height: 0;
}