:root {
    --bg-main: #0a0b0d;
    --bg-side: #111418;
    --bg-card: #1a1e23;
    --accent: #00df81;
    /* Emerald green */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
}

.dashboard-wrapper {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-side);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem 1.5rem;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(0, 223, 129, 0.1);
    color: var(--accent);
}

.sidebar-footer {
    padding: 1.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 2rem;
    background: radial-gradient(circle at top right, rgba(0, 223, 129, 0.05), transparent);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-bar h1 {
    font-family: var(--font-header);
    font-size: 1.8rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 223, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card h2 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Standings */
.standings-card {
    grid-column: span 8;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    text-align: left;
    color: var(--text-secondary);
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

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

/* Match Lists */
.results-card,
.upcoming-card {
    grid-column: span 4;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.match-team {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.match-team.home {
    text-align: right;
    margin-right: 12px;
}

.match-team.away {
    text-align: left;
    margin-left: 12px;
}

.match-score {
    background: var(--bg-main);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-header);
    font-weight: 800;
    min-width: 50px;
    text-align: center;
}

.match-time {
    font-size: 0.75rem;
    color: var(--accent);
}

/* Teams Grid */
.teams-card {
    grid-column: span 12;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1.5rem;
}

.team-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: var(--transition);
}

.team-logo-link:hover {
    transform: translateY(-5px);
    background: rgba(0, 223, 129, 0.05);
}

.team-logo-link img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .standings-card {
        grid-column: span 12;
    }

    .results-card,
    .upcoming-card {
        grid-column: span 6;
    }
}

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

    .results-card,
    .upcoming-card {
        grid-column: span 12;
    }
}