:root {
    --bg-dark: #18345b;
    --bg-card: #2c4156;
    --bg-navbar: #0a111a;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --border-color: #DDDDDD;
    --accent-blue: #4C8AC7;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 56px; /* Offset for fixed navbar */
    overflow-x: hidden;
}

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

/* Navbar styles */
.navbar {
    background-color: var(--bg-navbar) !important;
    padding: 0.5rem 1rem;
    z-index: 1040; /* Increased to be above backdrop */
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-logo {
    height: 30px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
}

/* Nav tabs color for player page */
.nav-tabs .nav-link {
    color: var(--text-light) !important;
    background-color: var(--bg-card);
}

.nav-tabs .nav-link.active {
    color: var(--bg-dark) !important;
}

/* Standings section */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.news-section {
    background-color: #132A4A;
    padding: 1rem 0 4rem 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    overflow: hidden;
}

.standings-table-container {
    background-color: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.standings-header {
    background-color: var(--accent-blue);
    color: white;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.table {
    margin-bottom: 0;
    color: var(--text-light);
    background-color: transparent;
    border-collapse: collapse;
}

.table td, .table th {
    border-color: var(--border-color);
    vertical-align: middle;
}

.table thead th {
    background-color: var(--accent-blue);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 8px 4px;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* News Section */
.news-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    color: #333;
    border: none;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1rem;
}

.news-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card .card-meta {
    font-size: 0.75rem;
    color: #666;
}

.news-card .news-time {
    color: #3182ce;
    font-weight: 600;
}

.text-accent {
    color: var(--accent-blue) !important;
}

/* Leaders Section */
.leaders-section {

    padding: 3rem 0 5rem 0;

}
.leader-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    color: #333;
    border: none;
}

.leader-card-header {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.leader-card-body {
    background-color: #5b8dbd;
    color: white;
    padding: 12px;
}

.leader-top-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.leader-list {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 8px;
}

.leader-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leader-list-item:last-child {
    border-bottom: none;
}

.leader-player-info {
    display: flex;
    align-items: center;
}

.leader-player-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #ddd;
}

.leader-player-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.leader-player-team {
    font-size: 0.75rem;
    opacity: 0.8;
}

.leader-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.view-all-link {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Monospace for numbers */
.mono-font, .table td:not(:first-child), .table th:not(:first-child), .leader-value {
    font-family: 'Chivo Mono', monospace;
}

/* Mega Dropdown */
.dropdown-mega {
    position: relative;
}

.dropdown-mega-content {
    background-color: var(--text-light);
    width: 600px;
    right: 0;
    left: auto !important;
    padding: 20px;
    border-radius: 8px 0 8px 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    z-index: 1050; /* Above navbar and backdrop */
}

.team-logo-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--bg-navbar);
}

.dropdown-item:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.dropdown-header {
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding-left: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.dropdown-mega-content .list-group-item {
    background: transparent;
    border: none;
    padding: 2px 0;
}

/* Dropdown Backdrop */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(24, 52, 91, 0.5); /* Semi-transparent version of --bg-dark */
    z-index: 1020; /* Just below fixed navbar (1030) but above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-backdrop.active {
    opacity: 1;
    visibility: visible;
}
