:root {
    --green: #00843D;
    --gold: #FFD100;
    --red: #C8102E;
    --blue: #0057B8;
    --dark: #101820;
    --white: #ffffff;
    --light: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #006341, #00843D, #101820);
    min-height: 100vh;
    color: #222;
}

a {
    text-decoration: none;
}

.page {
    max-width: 1100px;
    margin: auto;
    padding: 14px;
}

.card {
    background: var(--white);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.logo-title {
    color: white;
    text-align: center;
    padding: 20px 10px;
}

.logo-title h1 {
    margin: 0;
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.nav a {
    background: white;
    color: var(--green);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    border: 0;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--green);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.btn-gold {
    background: var(--gold);
    color: #111;
}

.btn-red {
    background: var(--red);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8dee9;
    border-radius: 12px;
    margin: 6px 0 12px;
    font-size: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.match-card {
    border: 2px solid #e7efe9;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.teams {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.score-box {
    display: flex;
    gap: 10px;
}

.score-box input {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--gold);
    color: #111;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 700px) {
    .page {
        padding: 10px;
    }

    .card {
        padding: 14px;
        border-radius: 14px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 12px;
        background: #fff;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 3px 12px rgba(0,0,0,.08);
    }

    td {
        border: none;
        padding: 6px 0;
    }

    .teams {
        flex-direction: column;
        text-align: center;
    }
}




.schedule-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    border: 1px solid #edf2f7;
}

.schedule-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.schedule-badge {
    background: #0057b8;
    color: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.schedule-time {
    background: #f1f5f9;
    color: #111827;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.schedule-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 8px;
}

.schedule-team {
    width: 42%;
}

.schedule-flag {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 6px;
}

.schedule-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.schedule-vs {
    width: 16%;
    font-weight: 900;
    color: #94a3b8;
    font-size: 18px;
}

.schedule-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.status-pill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-scheduled {
    background: #e0f2fe;
    color: #075985;
}

.status-live {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #f3f4f6;
    color: #374151;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 10px;
}

@media(max-width:600px) {
    .schedule-card {
        padding: 12px;
    }

    .schedule-flag {
        font-size: 34px;
    }

    .schedule-name {
        font-size: 13px;
    }

    .schedule-vs {
        font-size: 14px;
    }
}

.flag-img {
    width: 74px;
    height: 50px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid #d1d5db;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
    background: #fff;
}

.flag-placeholder {
    font-size: 44px;
}

.schedule-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    border: 1px solid #edf2f7;
}

.schedule-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.schedule-badge {
    background: #0057b8;
    color: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.schedule-time {
    background: #f1f5f9;
    color: #111827;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.schedule-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 8px;
}

.schedule-team {
    width: 42%;
}

.schedule-flag {
    margin-bottom: 6px;
}

.schedule-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.schedule-vs {
    width: 16%;
    font-weight: 900;
    color: #94a3b8;
    font-size: 18px;
}

.schedule-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.status-pill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-scheduled {
    background: #e0f2fe;
    color: #075985;
}

.status-live {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #f3f4f6;
    color: #374151;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 10px;
}

@media(max-width:600px) {
    .flag-img {
        width: 58px;
        height: 40px;
    }

    .flag-placeholder {
        font-size: 36px;
    }

    .schedule-card {
        padding: 12px;
    }

    .schedule-name {
        font-size: 13px;
    }

    .schedule-vs {
        font-size: 14px;
    }
}