/* ======================================
   BUTTONS
====================================== */

.btn-primary,
.btn-secondary{
    padding:16px 34px;
    border-radius:50px;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.btn-primary{
    background:#F39C12;
    color:#fff;
    border:none;
}

.btn-primary:hover{
    transform:translateY(-3px);
}

.btn-secondary{
    background:transparent;
    color:#fff;
    border:2px solid #fff;
}

.btn-secondary:hover{
    background:#fff;
    color:#0B3C5D;
}

/* ======================================
   DASHBOARD
====================================== */

.dashboard{
    background:#F5F7FA;
    padding:60px 0;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    background:#fff;
    border-radius:16px;
    padding:30px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);

    border-top:5px solid transparent;

    transition:all .3s ease;
    cursor:pointer;
}

.stat-card:hover{
    transform:translateY(-8px);

    border-top:5px solid #F39C12;

    box-shadow:0 18px 35px rgba(0,0,0,.18);
}

.stat-card h2{
    font-size:42px;
    color:#0B3C5D;
    margin-bottom:10px;

    transition:.3s;
}
.stat-card:hover h2{
    color:#F39C12;
    transform:scale(1.08);
}

.stat-card p{
    color:#666;
    font-size:17px;
}
/* ======================================
   GROUPS PAGE
====================================== */

.page-header{

    padding:35px 0;

    text-align:center;

}

.page-header h1{

    font-size:42px;

    margin-bottom:10px;

}

.page-header p{

    font-size:18px;

}

/* Groups Section */

.groups-section{

    padding:70px 0;
    background:#F5F7FA;

}

.groups-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

.group-card{

    background:#fff;

    border-radius:14px;

    padding:20px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.group-card:hover{

    transform:translateY(-8px);

    border-top:5px solid #F39C12;

    box-shadow:0 18px 35px rgba(0,0,0,.15);

}

.group-card h2{

    color:#0B3C5D;
    margin-bottom:20px;
    font-size:30px;
    text-align:center;

}

.group-card ul{

    list-style:none;

}

.group-card li{

    padding:14px 18px;

    margin-bottom:10px;

    background:#F8FAFC;

    border-radius:10px;

    font-weight:500;

    transition:.3s;

}

.group-card li:hover{

    background:#0B3C5D;

    color:#fff;

}
/* ======================================
   FIXTURES PAGE
====================================== */

.fixtures-section{

    padding:20px 0 40px;

    background:#F5F7FA;

}

.group-title{

    color:#0B3C5D;
    font-size:34px;
    margin-bottom:30px;
    font-weight:700;

}

.fixture-card{

    background:#fff;

    border-radius:14px;

    padding:12px 20px;

    margin-bottom:12px;

    box-shadow:0 6px 15px rgba(0,0,0,.08);

    border-left:5px solid #000;

    transition:.25s;

}

.fixture-card:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 20px rgba(0,0,0,.10);

}

.fixture-top{
    margin-bottom:10px;    /* was 20px */
}

.match-no{

    font-size:15px;

    font-weight:700;

    color:#0B3C5D;

    white-space:nowrap;

}

.status{

    padding:6px 14px;

    border-radius:20px;

    font-size:13px;

}

.upcoming{

    background:#F39C12;

}

.live{

    background:#2ECC71;

}

.completed{

    background:#3498DB;

}

.fixture-card h3{

    font-size:22px;

    margin: bottom 4px;px;

    color:#1F2937;

}

.fixture-info{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    color:#6B7280;

    font-size:15px;

    font-weight:500;

}
/* ===========================
   Standings
=========================== */

.standings-section{
    padding:40px 0;
}

.standings-table{

    width:100%;
    border-collapse:collapse;
    margin-bottom:40px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.standings-table th{

    background:#ff7a00;
    color:#fff;
    padding:12px;
    text-align:center;

}

.standings-table td{

    padding:10px;
    text-align:center;
    border-bottom:1px solid #eee;

}

.standings-table tr:hover{

    background:#fafafa;

}

.player-name{

    text-align:left !important;
    font-weight:600;

}
.btn-result{

    margin-top:15px;
    padding:10px 18px;

    border:none;

    background:#ff7a00;

    color:#fff;

    border-radius:6px;

    cursor:pointer;

    transition:.3s;

}

.btn-result:hover{

    background:#e86d00;

}
/* ===========================
   Result Modal
=========================== */

.modal{

    display:none;

    position:fixed;

    left:0;
    top:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.5);

    z-index:9999;

}

.modal-content{

    width:420px;

    max-width:90%;

    margin:80px auto;

    background:#fff;

    padding:25px;

    border-radius:12px;

    position:relative;

}

.modal-content h2{

    margin-bottom:20px;

}

.modal-content label{

    font-weight:bold;

}

.modal-content select{

    width:100%;

    padding:10px;

    margin-top:8px;

    border:1px solid #ddd;

    border-radius:6px;

}

.close-modal{

    position:absolute;

    right:15px;

    top:10px;

    font-size:28px;

    cursor:pointer;

}
/* ======================================
   Tournament Progress Card
====================================== */

.progress-card{

    margin-top:35px;

    background:#ffffff;

    border-radius:12px;

    padding:25px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.progress-card h3{

    margin-bottom:18px;

    text-align:center;

}

.progress-bar{

    width:100%;

    height:18px;

    background:#ececec;

    border-radius:50px;

    overflow:hidden;

}

.progress-fill{

    width:0%;

    height:100%;

    background:#2ecc71;

    transition:width .5s ease;

}

.progress-card p{

    margin-top:15px;

    text-align:center;

    font-weight:600;

}
/* ======================================
   Result Entry
====================================== */

.score-entry{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-top:20px;

}

.player-score{

    flex:1;

    display:flex;

    flex-direction:column;

}

.player-score label{

    font-weight:600;

    margin-bottom:10px;

    text-align:center;

}

.player-score input{

    padding:12px;

    text-align:center;

    font-size:22px;

    border-radius:8px;

    border:1px solid #ccc;

}

.vs-text{

    font-size:24px;

    font-weight:700;

}
.fixture-toolbar{

    display:flex;
    flex-wrap:wrap;
    gap:15px;

    margin-bottom:25px;

    align-items:center;

}

.fixture-toolbar input,
.fixture-toolbar select{

    padding:10px 14px;

    border:1px solid #ccc;

    border-radius:6px;

    min-width:220px;

    font-family:Poppins,sans-serif;

}

.fixture-toolbar button{

    padding:10px 18px;

}
.badge{

display:inline-block;

padding:5px 12px;

border-radius:20px;

font-size:12px;

font-weight:600;

}

.badge-success{

background:#d1fae5;

color:#065f46;

}

.badge-warning{

background:#fef3c7;

color:#92400e;

}
.qualified-row{
    background:#e8f8ee;
}

.third-row{
    background:#fff8db;
}

.qualified-row:hover{
    background:#daf2e3;
}

.third-row:hover{
    background:#fff2bf;
}
.fixture-row{

    display:grid;

    grid-template-columns:
        110px
        1fr
        140px
        170px
        140px;

    align-items:center;

    gap:18px;

}

.players{

    font-size:18px;

    font-weight:700;

    white-space:nowrap;

}

.fixture-result{

    font-size:15px;

    text-align:center;

    white-space:nowrap;

}

.fixture-actions{

    display:flex;

    justify-content:flex-end;

}
.btn-danger{

    background:#d32f2f;

    color:#fff;

    border:none;

    padding:8px 16px;

    border-radius:6px;

    cursor:pointer;

}

.btn-danger:hover{

    background:#b71c1c;

}
.btn-reset{

    background:#d32f2f;

    color:#fff;

    border:none;

    padding:8px 14px;

    border-radius:5px;

    cursor:pointer;

    margin-left:8px;

}

.btn-reset:hover{

    background:#b71c1c;

}
