:root {
    --primary-color: #ff4b1f;
    /* Vibrant Orange/Red */
    --secondary-color: #1fddff;
    /* Vibrant Cyan */
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-muted: #777;
    --header-bg: #2d3436;
    --border-radius: 12px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Header */
.navbar {
    background-color: var(--header-bg);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Section Controls */
.controls-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Match Cards */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.date-header {
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.match-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.team-score {
    background: #eee;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}

.team-row.winner .team-name {
    color: var(--primary-color);
}

.team-row.winner .team-score {
    background: var(--primary-color);
    color: white;
}

.match-status {
    margin-top: 15px;
    text-align: right;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Standings Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.standings-table th,
.standings-table td {
    padding: 12px 15px;
    text-align: center;
}

.standings-table th {
    background-color: #f8f9fa;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid #ddd;
}

.standings-table td {
    border-bottom: 1px solid #eee;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table .team-col {
    text-align: left;
    font-weight: 600;
}

.rank-cell {
    font-weight: bold;
    color: var(--primary-color);
    width: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 15px;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        margin-left: 0;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .controls-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }

    /* Wrap table in scrollable container */
    .card {
        overflow-x: auto;
    }

    .standings-table {
        min-width: 600px;
        /* Force scroll on small screens */
    }

    .form-group label,
    .form-control {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}