/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

/* =========================
   BODY
========================= */
body{
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    min-height:100vh;
    overflow-x:hidden;
}

/* =========================
   LOGIN PAGE
========================= */
.login-container{
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.login-card{
    width:400px;
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,0.2);
    border-radius:25px;
    padding:40px;
    box-shadow:0 8px 32px rgba(0,0,0,0.2);
    color:#fff;
    animation:fadeIn 1s ease;
}

.login-card h2{
    text-align:center;
    margin-bottom:30px;
    font-weight:600;
}

.form-control,
.form-select{
    height:50px;
    border-radius:12px;
    border:none;
    margin-bottom:20px;
    padding-left:15px;
}

.form-control:focus,
.form-select:focus{
    box-shadow:none;
    border:2px solid #fff;
}

.btn-login{
    width:100%;
    height:50px;
    border:none;
    border-radius:12px;
    background:#fff;
    color:#2563eb;
    font-size:16px;
    font-weight:600;
    transition:0.3s;
}

.btn-login:hover{
    background:#2563eb;
    color:#fff;
}

/* =========================
   DASHBOARD
========================= */
.dashboard{
    display:flex;
    min-height:100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar{
    width:250px;
    background:#1e293b;
    color:#fff;
    padding:20px;
    position:fixed;
    height:100%;
    overflow-y:auto;
}

.sidebar h3{
    text-align:center;
    margin-bottom:40px;
    font-weight:600;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    margin:20px 0;
}

.sidebar ul li a{
    text-decoration:none;
    color:#fff;
    display:block;
    padding:12px 15px;
    border-radius:10px;
    transition:0.3s;
}

.sidebar ul li a:hover{
    background:#2563eb;
}

/* =========================
   MAIN CONTENT
========================= */
.main-content{
    margin-left:250px;
    padding:30px;
    width:100%;
}

/* =========================
   TOPBAR
========================= */
.topbar{
    background:#fff;
    padding:20px;
    border-radius:15px;
    margin-bottom:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.topbar h2{
    color:#1e293b;
}

/* =========================
   CARDS
========================= */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.card-box{
    background:#fff;
    padding:25px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.card-box:hover{
    transform:translateY(-5px);
}

.card-box h4{
    margin-bottom:10px;
    color:#64748b;
}

.card-box h2{
    color:#2563eb;
}

/* =========================
   TABLE
========================= */
.table-container{
    margin-top:30px;
    background:#fff;
    padding:20px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#2563eb;
    color:#fff;
    padding:15px;
    text-align:left;
}

table td{
    padding:15px;
    border-bottom:1px solid #ddd;
}

table tr:hover{
    background:#f1f5f9;
}

/* =========================
   BUTTONS
========================= */
.btn-primary-custom{
    background:#2563eb;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:10px;
    transition:0.3s;
}

.btn-primary-custom:hover{
    background:#1d4ed8;
}

/* =========================
   ATTENDANCE STATUS
========================= */
.present{
    color:#10b981;
    font-weight:600;
}

.absent{
    color:#ef4444;
    font-weight:600;
}

/* =========================
   REPORT FILTER
========================= */
.filter-box{
    background:#fff;
    padding:20px;
    border-radius:20px;
    margin-bottom:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){

    .sidebar{
        width:100%;
        position:relative;
        height:auto;
    }

    .main-content{
        margin-left:0;
    }

    .dashboard{
        flex-direction:column;
    }

    .login-card{
        width:100%;
    }
}

/* CHANGE PASSWORD CARD */
.change-password-card{

    background:#fff;

    border-radius:16px;

    box-shadow:
    0 4px 18px rgba(0,0,0,0.08);

    padding:35px;
}

.change-password-card .input-group-text{

    background:#f3f4f6;

    border-right:none;
}

.change-password-card .form-control{

    border-left:none;
}

.change-password-card .form-control:focus{

    box-shadow:none;
}