/* ===========================================
   Reset
=========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background:#0b0e14;
    color:#e8edf3;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

/* ===========================================
   Container
=========================================== */

.container{

    width:100%;
    max-width:1200px;

    background:#1a1f2b;

    border-radius:20px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.6);

}

/* ===========================================
   Login
=========================================== */

#loginScreen{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    min-height:320px;

    text-align:center;

}

#loginScreen h1{

    font-size:32px;

    color:#f0c040;

    margin-bottom:10px;

}

#loginScreen p{

    color:#9aa4b8;

    margin-bottom:30px;

}

.login-box{

    width:100%;

    max-width:420px;

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    justify-content:center;

}

.login-box input{

    flex:1;

    min-width:220px;

    padding:13px 18px;

    background:#10141c;

    color:#fff;

    border:none;

    border-radius:8px;

    font-size:16px;

    transition:.2s;

}

.login-box input:focus{

    outline:none;

    box-shadow:0 0 0 2px #f0c040;

}

.login-box button{

    padding:13px 30px;

    border:none;

    border-radius:8px;

    background:#f0c040;

    color:#111;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.login-box button:hover{

    background:#d8ac37;

}

/* ===========================================
   Login Error
=========================================== */

#loginError{

    display:none;

    margin-top:15px;

    color:#f08a8a;

    font-size:15px;

}

/* ===========================================
   Dashboard
=========================================== */

#dashboard{

    display:none;

}

.dashboard-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:20px;

}

.dashboard-header h1{

    font-size:28px;

    color:#f0c040;

    font-weight:600;

    letter-spacing:1px;

}

.logout-btn{

    padding:10px 22px;

    border:none;

    border-radius:8px;

    background:#6b1a2a;

    color:#f08a8a;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.logout-btn:hover{

    background:#8a2235;

}

.team-label{

    color:#7ae0a0;

    font-size:17px;

    font-weight:600;

    margin-bottom:20px;

}

/* ===========================================
   Status Message
=========================================== */

.status-msg{

    display:none;

    padding:12px 18px;

    border-radius:8px;

    margin-bottom:20px;

    font-size:14px;

}

.status-msg.show{

    display:block;

}

.status-msg.success{

    background:#1a3a2a;

    color:#7ae0a0;

}

.status-msg.error{

    background:#4a1a2a;

    color:#f08a8a;

}

.status-msg.info{

    background:#2a3142;

    color:#f0c040;

}

/* ===========================================
   Default Team Table
=========================================== */

.team-list{

    width:100%;

    border-collapse:collapse;

    margin-top:10px;

}

.team-list th{

    text-align:left;

    padding:14px 12px;

    background:#252c3a;

    color:#bcc6d6;

    border-bottom:2px solid #3b4455;

}

/* ===========================================
   Team Table
=========================================== */

.team-list td{

    padding:14px 12px;

    border-bottom:1px solid #2a3142;

}

.team-list tr:last-child td{

    border-bottom:none;

}

.team-list .sno{

    width:60px;

    font-weight:600;

    color:#5f6a7e;

}

.team-list .tname{

    font-weight:500;

    color:#e8edf3;

}

/* ===========================================
   Standings Table
=========================================== */

.standings-table{

    width:100%;

    border-collapse:collapse;

    margin-top:10px;

    font-size:15px;

}

.standings-table th{

    text-align:left;

    padding:14px 12px;

    background:#252c3a;

    color:#bcc6d6;

    border-bottom:2px solid #3b4455;

}

.standings-table td{

    padding:14px 12px;

    border-bottom:1px solid #2a3142;

    vertical-align:middle;

}

.standings-table tr:last-child td{

    border-bottom:none;

}

.rank-col{

    width:70px;

    font-weight:700;

}

.team-col{

    font-weight:600;

}

/* ===========================================
   Qualification Badge
=========================================== */

.status-badge{

    display:inline-block;

    padding:4px 14px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

}

.status-qualified{

    background:#1a6b3c;

    color:#7ae0a0;

}

.status-eliminated{

    background:#6b1a2a;

    color:#f08a8a;

}

/* ===========================================
   Player Details
=========================================== */

.btn-show{

    background:none;

    border:1px solid #3b82f6;

    color:#3b82f6;

    padding:5px 12px;

    border-radius:6px;

    cursor:pointer;

    font-size:13px;

    transition:.2s;

}

.btn-show:hover{

    background:#3b82f6;

    color:#fff;

}

.player-details{

    display:none;

    margin-top:8px;

    padding:10px 12px;

    background:#10141c;

    border-radius:6px;

    color:#bcc6d6;

    font-size:13px;

    white-space:pre-wrap;

}

.player-details.show{

    display:block;

}

.reason-text{

    margin-top:5px;

    color:#f0d07a;

    font-size:13px;

}

/* ===========================================
   Footer
=========================================== */

.footer-note{

    margin-top:20px;

    text-align:center;

    color:#5f6a7e;

    font-size:14px;

}

/* ===========================================
   Scrollbar
=========================================== */

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-track{

    background:#10141c;

}

::-webkit-scrollbar-thumb{

    background:#3b4455;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#4b5568;

}

/* ===========================================
   Responsive
=========================================== */

@media (max-width:900px){

    .container{

        padding:20px;

    }

    .dashboard-header{

        flex-direction:column;

        align-items:flex-start;

    }

}

@media (max-width:700px){

    .container{

        padding:16px;

    }

    .login-box{

        flex-direction:column;

    }

    .login-box input{

        min-width:100%;

    }

    .login-box button{

        width:100%;

    }

    .standings-table{

        font-size:13px;

    }

    .standings-table th,
    .standings-table td{

        padding:10px 8px;

    }

}

@media (max-width:520px){

    body{

        padding:10px;

    }

    .container{

        border-radius:14px;

        padding:14px;

    }

    .dashboard-header h1{

        font-size:22px;

    }

    #loginScreen h1{

        font-size:26px;

    }

    .footer-note{

        font-size:12px;

    }

}