/* =========================================================
   ATTENDANCE
========================================================= */


/* =========================================================
   ATTENDANCE STATS
========================================================= */

.attendance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    background: #f6f7fb;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1c2674;
}


/* =========================================================
   ATTENDANCE COLOUR STATES
========================================================= */

.stat-box.red {
    background: #ffe5e5;
    color: #b00020;
}

.stat-box.orange {
    background: #fff3cd;
    color: #8a6d3b;
}

.stat-box.green {
    background: #e3f7e8;
    color: #1f7a3d;
}


/* =========================================================
   ATTENDANCE PROGRESS BAR
========================================================= */

.attendance-bar {
    height: 10px;
    border-radius: 999px;
    background: #eee;
    overflow: hidden;
    margin-bottom: 25px;
}

.attendance-fill {
    height: 100%;
    background: #1c2674;
}


/* =========================================================
   ATTENDANCE SUMMARY
========================================================= */

.attendance-summary {
    display: flex;
    gap: 25px;
    margin: 15px 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.present-count {
    color: #14853b;
}

.absent-count {
    color: #c62828;
}


/* =========================================================
   ATTENDANCE HISTORY
========================================================= */

.history-list {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}


/* Scrollbar */

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}


/* =========================================================
   ATTENDANCE STATUS ICONS
========================================================= */

.status-icon {
    width: 18px;
    display: inline-block;
    font-weight: 700;
}

.status-icon.present {
    color: limegreen;
}

.status-icon.absent {
    color: red;
}


/* =========================================================
   GIRL ATTENDANCE LISTS
========================================================= */

.girl-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
    margin: 15px 0;
}

.girl-list-grid .person {
    display: flex;
    align-items: center;
    padding: 8px;
}


/* =========================================================
   ATTENDANCE GIRL STATES
========================================================= */

.person.missed-3 {
    color: #c40000;
}

.person.missed-3 input {
    accent-color: #c40000;
}


/* =========================================================
   GIRL SWITCHER ATTENDANCE
========================================================= */

.girl-switcher-attendance {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
}

/* =========================================================
   PERMISSIONS KEY
========================================================= */

.permissions {
    display: flex;
    gap: 25px;
    margin: 15px 0 20px;
    font-size: 18px;
    font-weight: 600;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .attendance-stats {
        grid-template-columns: 1fr;
    }

    .attendance-summary {
        flex-wrap: wrap;
        gap: 15px;
    }

    .girl-list-grid {
        grid-template-columns: 1fr;
    }
}