﻿body {
    margin: 0;
}

body {
    margin: 0;
}

/* ================================
   LOGIN PAGE STYLE
================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #0f7c73;
    background-image: linear-gradient(135deg, rgba(15, 124, 115, 0.88), rgba(49, 95, 52, 0.88)), url('../images/wc_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.brand-title {
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
    font-family: Georgia, "Times New Roman", serif;
}

.login-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 24px;
    padding: 42px 38px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-text {
    margin: 0 0 28px;
    text-align: center;
    color: #000000;
    font-size: 24px;
    font-weight: 900;
    font-family: Georgia, "Times New Roman", serif;
}

/* Input wrapper */
.input-box {
    position: relative;
    width: 260px;
    height: 44px;
    margin: 14px auto;
}

    /* Icon inside input */
    .input-box i {
        position: absolute !important;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #000000;
        font-size: 15px;
        z-index: 5;
        pointer-events: none;
    }

/* Textbox */
.login-input {
    width: 100%;
    height: 44px;
    border: 1px solid #d5dfeb;
    border-radius: 14px;
    padding: 0 16px 0 42px;
    box-sizing: border-box;
    outline: none;
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

    .login-input::placeholder {
        color: #667085;
    }

    .login-input:focus {
        border-color: #16a34a;
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.13);
    }

/* Login button */
.login-btn {
    width: 100%;
    max-width: 380px;
    border: none;
    border-radius: 24px;
    padding: 14px;
    background: #16a34a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 18px;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.5px;
}

    .login-btn:hover {
        background: #0f8f3d;
    }

/* Message */
.message {
    display: block;
    margin-top: 14px;
    color: #b91c1c;
    font-weight: 700;
    text-align: center;
}

/* Register */
.register-text {
    margin-top: 24px;
    text-align: center;
    color: #344054;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", serif;
}

    .register-text p {
        margin: 0;
    }

    .register-text a {
        color: #00843D;
        font-weight: 900;
        text-decoration: underline;
    }

        .register-text a:hover {
            color: #16a34a;
        }

/* Mobile */
@media (max-width: 700px) {
    .brand-title {
        font-size: 30px;
    }

    .login-box {
        max-width: 90%;
        padding: 34px 24px;
    }

    .input-box {
        width: 100%;
    }

    .login-btn {
        max-width: 100%;
    }
}
/* ================================
   KNOCKOUT TREE PAGE
================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;600;700;800;900&display=swap');

.tree-page {
    min-height: 100vh;
    padding: 30px;
    background: linear-gradient(135deg, #00a3a3 0%, #7ac943 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.tree-header {
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

    .tree-header h1 {
        margin: 0;
        font-size: 46px;
        font-weight: 900;
        letter-spacing: 1px;
        color: #06183f;
        text-transform: uppercase;
    }

    .tree-header p {
        margin-top: 8px;
        font-size: 18px;
        color: white;
        font-weight: 600;
    }

.tree-board {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    overflow-x: auto;
}

.tree-grid {
    min-width: 1500px;
    display: grid;
    grid-template-columns: 250px 220px 200px 280px 200px 220px 250px;
    gap: 24px;
    align-items: center;
}

.tree-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

    .tree-column h3 {
        text-align: center;
        color: #0046c7;
        font-size: 14px;
        font-weight: 900;
        margin: 0 0 6px;
        text-transform: uppercase;
    }

.qf-left,
.qf-right {
    gap: 110px;
}

.sf-left,
.sf-right {
    gap: 0;
}

.tree-match {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(6, 24, 63, 0.12);
    border: 1px solid #e5eaf5;
}

.r16-left .tree-match::after,
.qf-left .tree-match::after,
.sf-left .tree-match::after {
    content: "";
    position: absolute;
    right: -24px;
    top: 50%;
    width: 24px;
    height: 2px;
    background: #2563eb;
}

.r16-right .tree-match::before,
.qf-right .tree-match::before,
.sf-right .tree-match::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    width: 24px;
    height: 2px;
    background: #2563eb;
}

.team-row {
    display: grid;
    grid-template-columns: 1fr 36px;
    gap: 8px;
    align-items: center;
    min-height: 34px;
}

    .team-row + .team-row {
        margin-top: 8px;
    }

    .team-row label {
        margin: 0;
        color: #0f172a;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .team-row input[type="radio"] {
        margin-right: 6px;
        accent-color: #16a34a;
    }

.score-input {
    width: 34px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #d9e1ef;
    background: #f8fbff;
    text-align: center;
    font-weight: 800;
    color: #06183f;
    outline: none;
}

    .score-input:focus {
        border-color: #16a34a;
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    }

    .score-input::-webkit-outer-spin-button,
    .score-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.match-no {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-no {
    left: -36px;
}

.right-no {
    right: -36px;
}

.tree-center {
    text-align: center;
}

.cup-icon {
    font-size: 108px;
    line-height: 1;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.18));
    margin-bottom: 12px;
}

.final-match {
    background: white;
    border: 3px solid #16a34a;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.18);
}

.final-title {
    background: #06183f;
    color: white;
    border-radius: 20px;
    padding: 8px 0;
    width: 140px;
    margin: -40px auto 18px;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
}

.winner-card {
    margin-top: 22px;
    background: linear-gradient(135deg, #06183f, #0046c7);
    color: white;
    border-radius: 24px;
    padding: 24px;
    border: 2px solid #7ac943;
    box-shadow: 0 14px 30px rgba(6, 24, 63, 0.24);
}

    .winner-card span {
        display: block;
        color: #7ac943;
        font-weight: 900;
        font-size: 15px;
        text-transform: uppercase;
    }

    .winner-card strong {
        display: block;
        margin-top: 10px;
        font-size: 30px;
        text-transform: uppercase;
    }

.tree-actions {
    min-width: 1500px;
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.reset-btn,
.save-picks-btn {
    border: none;
    border-radius: 24px;
    padding: 14px 28px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.reset-btn {
    background: white;
    color: #0046c7;
    box-shadow: 0 8px 18px rgba(6, 24, 63, 0.12);
}

    .reset-btn:hover {
        background: #eef6ff;
    }

.save-picks-btn {
    background: #16a34a;
    color: white;
    font-size: 16px;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

    .save-picks-btn:hover {
        background: #0f8f3d;
    }

/* ================================
   MATCHES / PREDICTION
================================ */

.match-message {
    display: block;
    margin: 0 auto 16px;
    max-width: 700px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
}

    .match-message.success {
        background: #dcfce7;
        color: #15803d;
        border: 1px solid #86efac;
    }

    .match-message.error {
        background: #fee2e2;
        color: #b91c1c;
        border: 1px solid #fca5a5;
    }

.matches-table-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow-x: auto;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

    .matches-table th {
        background: #06183f;
        color: white;
        padding: 14px;
        text-align: left;
        font-size: 14px;
    }

    .matches-table td {
        padding: 13px 14px;
        border-bottom: 1px solid #e5eaf5;
        color: #0f172a;
        font-weight: 600;
    }

    .matches-table tr:hover td {
        background: #f3f8ff;
    }

.locked-label {
    display: inline-block;
    margin: 8px 0 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
}

.prediction-option input:disabled {
    cursor: not-allowed;
}

.prediction-option:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.daily-filter-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .daily-filter-card h3 {
        margin: 0;
        color: #06183f;
        font-weight: 900;
    }

.date-input {
    height: 42px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 700;
}

.filter-btn {
    border: none;
    border-radius: 22px;
    padding: 11px 20px;
    background: #16a34a;
    color: white;
    font-weight: 900;
    cursor: pointer;
}

    .filter-btn.secondary {
        background: #06183f;
    }

    .filter-btn:hover {
        opacity: 0.9;
    }

.match-info {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.match-number,
.match-round {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}

.match-number {
    background: #06183f;
    color: white;
}

.match-round {
    background: #e0f2fe;
    color: #0369a1;
}

.match-city {
    color: #64748b;
    font-weight: 700;
    margin-bottom: 10px;
}

.match-actions {
    margin-top: 24px;
    text-align: center;
}

.score-prediction-row {
    display: grid;
    grid-template-columns: 1fr 58px 20px 58px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.score-box {
    height: 42px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    text-align: center;
    font-weight: 900;
    color: #06183f;
}

.score-dash {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    color: #06183f;
}

.draw-pick {
    max-width: 160px;
    margin: 0 auto;
    justify-content: center;
}

.score-box:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

/* ================================
   LEADERBOARD PAGE
================================ */

.leaderboard-page {
    min-height: 100vh;
    padding: 30px;
    background: linear-gradient(135deg, #0d4ed8 0%, #0b3ea9 45%, #07296d 100%);
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.leaderboard-header {
    margin-bottom: 25px;
}

    .leaderboard-header h1 {
        margin: 0;
        font-family: 'Anton', sans-serif;
        font-size: 64px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #ffffff;
    }

    .leaderboard-header p {
        margin-top: 8px;
        font-size: 18px;
        font-weight: 600;
        color: rgba(255,255,255,0.85);
    }

.leaderboard-card {
    background: rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(2px);
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
    overflow: hidden;
    border-radius: 14px;
}

    .leaderboard-table th {
        background: rgba(255,255,255,0.12);
        color: #ffffff;
        padding: 16px 14px;
        text-align: left;
        font-family: 'Anton', sans-serif;
        font-size: 24px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        border-bottom: 2px solid rgba(255,255,255,0.12);
    }

    .leaderboard-table td {
        padding: 16px 14px;
        font-size: 17px;
        font-weight: 700;
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.10);
    }

    .leaderboard-table tr:nth-child(odd) td {
        background: rgba(0, 0, 0, 0.10);
    }

    .leaderboard-table tr:nth-child(even) td {
        background: rgba(255, 255, 255, 0.04);
    }

    .leaderboard-table tr:hover td {
        background: rgba(255,255,255,0.10);
        transition: 0.2s ease;
    }

    .leaderboard-table td:first-child {
        width: 90px;
        font-family: 'Anton', sans-serif;
        font-size: 28px;
        color: #dbeafe;
    }

    .leaderboard-table td:nth-child(2) {
        font-size: 18px;
        font-weight: 800;
        color: #ffffff;
    }

    .leaderboard-table td:last-child {
        font-family: 'Anton', sans-serif;
        font-size: 28px;
        color: #fde047;
        text-align: right;
    }

    .leaderboard-table tr:nth-child(1) td {
        background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
    }

        .leaderboard-table tr:nth-child(1) td:first-child {
            color: #facc15;
        }

    .leaderboard-table tr:nth-child(2) td:first-child {
        color: #e5e7eb;
    }

    .leaderboard-table tr:nth-child(3) td:first-child {
        color: #fca5a5;
    }

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
    .tree-page {
        padding: 18px;
    }

    .tree-header h1 {
        font-size: 32px;
    }

    .tree-header p {
        font-size: 15px;
    }

    .tree-board {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .leaderboard-page {
        padding: 18px;
    }

    .leaderboard-header h1 {
        font-size: 42px;
    }

    .leaderboard-header p {
        font-size: 15px;
    }

    .leaderboard-card {
        padding: 14px;
    }

    .leaderboard-table th {
        font-size: 20px;
        padding: 12px 10px;
    }

    .leaderboard-table td {
        font-size: 14px;
        padding: 12px 10px;
    }

        .leaderboard-table td:first-child,
        .leaderboard-table td:last-child {
            font-size: 22px;
        }
}

@media (max-width: 700px) {
    .score-prediction-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-title {
        font-size: 32px;
    }

    .login-box {
        padding: 28px 22px;
    }
}



/* FORCE LOGIN INPUT DESIGN */
.login-box .input-box {
    position: relative !important;
    width: 260px !important;
    height: 44px !important;
    margin: 14px auto !important;
    display: block !important;
}

    .login-box .input-box i {
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #000000 !important;
        font-size: 15px !important;
        z-index: 10 !important;
        pointer-events: none !important;
    }

    /* Works for login-input OR old form-control */
    .login-box .input-box input,
    .login-box .login-input,
    .login-box .form-control {
        width: 100% !important;
        height: 44px !important;
        border: 1px solid #d5dfeb !important;
        border-radius: 14px !important;
        padding: 0 16px 0 42px !important;
        box-sizing: border-box !important;
        outline: none !important;
        font-size: 14px !important;
        color: #333333 !important;
        background: #ffffff !important;
        font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif !important;
    }

        .login-box .input-box input::placeholder {
            color: #667085 !important;
        }

        .login-box .input-box input:focus {
            border-color: #16a34a !important;
            box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.13) !important;
        }