/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#f5f7fb;
    color:#2d3748;
}

a{
    text-decoration:none;
}

.dashboard{
    display:flex;
    min-height:100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
    width:260px;
    background:#ffffff;
    border-right:1px solid #edf0f5;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    overflow-y:auto;
}

.logo{
    padding:30px;
    border-bottom:1px solid #edf0f5;
}

.logo h2{
    color:#2563eb;
    font-weight:800;
    font-size:26px;
}

.sidebar ul{
    list-style:none;
    padding:20px 0;
}

.sidebar li{
    padding:14px 30px;
    display:flex;
    align-items:center;
    gap:14px;
    color:#64748b;
    cursor:pointer;
    transition:.3s;
    font-size:15px;
}

.sidebar li:hover{
    background:#f3f6ff;
    color:#2563eb;
}

.sidebar li.active{
    background:#eef3ff;
    color:#2563eb;
    border-left:4px solid #2563eb;
    font-weight:600;
}

.sidebar li i{
    width:20px;
}

/* =========================
   MAIN
========================= */

.main-content{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:30px;
}

/* =========================
   TOPBAR
========================= */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.topbar h1{
    font-size:34px;
    font-weight:700;
}

.top-actions{
    display:flex;
    align-items:center;
    gap:15px;
}

.notification{
    width:45px;
    height:45px;
    border-radius:12px;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
    cursor:pointer;
}

.profile{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#7c3aed;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.add-btn{
    border:none;
    background:#22c55e;
    color:white;
    padding:12px 18px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

/* =========================
   STATS
========================= */

.stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-bottom:25px;
}

.card{
    padding:25px;
    border-radius:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.card h2{
    font-size:40px;
    font-weight:800;
}

.card p{
    margin-top:5px;
}

.stat-icon{
    font-size:40px;
    opacity:.2;
}

.pink{
    background:#fff0f4;
}

.purple{
    background:#f4efff;
}

.blue{
    background:#eef6ff;
}

.pink h2{
    color:#ff3f7d;
}

.purple h2{
    color:#7c3aed;
}

.blue h2{
    color:#2563eb;
}

/* =========================
   MAIN GRID
========================= */

.main-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    margin-bottom:25px;
}

/* =========================
   PANELS
========================= */

.announcement-panel,
.attendance-card,
.widget{
    background:white;
    border-radius:20px;
    padding:25px;
    box-shadow:0 5px 20px rgba(0,0,0,.04);
}

.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.panel-header h3{
    font-size:20px;
}

.panel-header a{
    color:#2563eb;
    font-size:14px;
}

/* =========================
   ANNOUNCEMENTS
========================= */

.announcement-row{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px 0;
    border-bottom:1px solid #f1f5f9;
}

.avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.blue-avatar{
    background:#3b82f6;
}

.orange-avatar{
    background:#f59e0b;
}

.purple-avatar{
    background:#8b5cf6;
}

.announcement-info h4{
    margin-bottom:5px;
}

.announcement-info span{
    color:#94a3b8;
    font-size:13px;
}

/* =========================
   ATTENDANCE
========================= */

.attendance-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.attendance-header select{
    border:none;
    background:#f8fafc;
    padding:10px;
    border-radius:10px;
}

.clock-card{
    background:#1e2f7a;
    border-radius:20px;
    padding:30px;
    text-align:center;
    margin-bottom:20px;
}

#clock{
    color:white;
    font-size:38px;
    font-weight:700;
}

.attendance-details{
    margin-bottom:20px;
}

.row{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
}

.row span{
    color:#64748b;
}

.progress-item{
    margin-top:15px;
}

.progress-item span{
    font-size:14px;
}

.bar{
    width:100%;
    height:8px;
    background:#edf2f7;
    border-radius:30px;
    margin-top:8px;
    overflow:hidden;
}

.green-bar,
.orange-bar,
.red-bar{
    height:100%;
}

.green-bar{
    background:#22c55e;
}

.orange-bar{
    background:#f59e0b;
}

.red-bar{
    background:#ef4444;
}

.attendance-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:25px;
}

.attendance-footer h2{
    font-size:28px;
}

#checkBtn{
    border:none;
    background:#22c55e;
    color:white;
    padding:14px 24px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

/* =========================
   BOTTOM WIDGETS
========================= */

.bottom-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:25px;
}

.widget h3{
    margin-bottom:20px;
}

.birthday-card{
    background:#ff7a3c;
    border-radius:15px;
    color:white;
    padding:20px;
}

.birthday-card h4{
    margin-bottom:10px;
}

.status-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.status-box{
    background:#f8fafc;
    padding:20px;
    border-radius:15px;
    text-align:center;
}

.status-box h2{
    margin-bottom:5px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

    .main-grid{
        grid-template-columns:1fr;
    }

    .bottom-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:992px){

    .sidebar{
        display:none;
    }

    .main-content{
        width:100%;
        margin-left:0;
    }

    .stats{
        grid-template-columns:1fr;
    }

}

@media(max-width:576px){

    .topbar{
        flex-direction:column;
        gap:20px;
        align-items:flex-start;
    }

    .attendance-footer{
        flex-direction:column;
        gap:15px;
    }

}