*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f1f5f9;
}

/* ===================================================== */
/* GLOBAL */
/* ===================================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

    font-family:'Segoe UI',sans-serif;
}

body{

    background:#f1f5f9;

    display:flex;
}

/* ===================================================== */
/* SIDEBAR */
/* ===================================================== */

.sidebar{

    width:260px;

    min-height:100vh;

    background:linear-gradient(
        180deg,
        #1e3a8a,
        #172554
    );

    padding:25px 18px;

    position:fixed;

    left:0;

    top:0;

    overflow-y:auto;

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

.sidebar-logo{

    text-align:center;

    margin-bottom:35px;
}

.sidebar-logo img{

    width:80px;

    height:80px;

    object-fit:contain;

    margin-bottom:10px;
}

.sidebar-logo h2{

    color:#fff;

    font-size:24px;

    margin-bottom:5px;
}

.sidebar-logo p{

    color:#cbd5e1;

    font-size:13px;
}

/* ===================================================== */
/* MENU */
/* ===================================================== */

.sidebar ul{

    list-style:none;
}

.sidebar ul li{

    margin-bottom:10px;
}

.sidebar ul li a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 16px;

    border-radius:14px;

    text-decoration:none;

    color:#e2e8f0;

    font-size:15px;

    font-weight:600;

    transition:0.3s ease;
}

.sidebar ul li a:hover{

    background:rgba(255,255,255,0.12);

    transform:translateX(5px);
}

.sidebar ul li a.active{

    background:#fff;

    color:#1e3a8a;

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

/* ===================================================== */
/* MAIN CONTENT */
/* ===================================================== */

.main-content{

    margin-left:260px;

    padding:25px;

    width:100%;
}

/* ===================================================== */
/* CARDS */
/* ===================================================== */

.card,
.profile-card,
.homework-card,
.summary-box,
.filter-card{

    transition:0.3s ease;
}

.card:hover,
.profile-card:hover,
.homework-card:hover,
.summary-box:hover,
.filter-card:hover{

    transform:translateY(-3px);

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

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media(max-width:768px){

    body{

        display:block;
    }

    .sidebar{

        width:100%;

        height:auto;

        position:relative;

        min-height:auto;
    }

    .main-content{

        margin-left:0;

        padding:15px;
    }

    .sidebar ul li a{

        padding:12px;
    }
}

/* ======================================================
LOGO AREA
====================================================== */

.logo-area{
    text-align:center;
    padding:25px 15px;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.logo-area img{
    width:90px;
    background:white;
    padding:6px;
    border-radius:12px;
}

.logo-area h2{
    color:white;
    margin-top:12px;
    font-size:22px;
    font-weight:600;
}

/* ======================================================
MENU TITLE
====================================================== */

.menu-title{
    color:#cbd5e1;
    font-size:12px;
    padding:20px 25px 8px;
    text-transform:uppercase;
    letter-spacing:1px;
    font-weight:600;
}

/* ======================================================
SIDEBAR MENU
====================================================== */

.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    color:white;
    padding:14px 25px;
    text-decoration:none;
    transition:0.3s;
    font-size:15px;
    border-left:4px solid transparent;
}

.sidebar a i{
    width:20px;
    font-size:16px;
}

/* HOVER */

.sidebar a:hover{
    background:#0f2363;
    border-left:4px solid #60a5fa;
    padding-left:32px;
}

/* ACTIVE */

.sidebar a.active{
    background:#0f2363;
    border-left:4px solid #60a5fa;
}

/* ======================================================
MAIN CONTENT
====================================================== */

.main-content{
    margin-left:270px;
    padding:30px;
}

/* ======================================================
TOPBAR
====================================================== */

.topbar{
    background:white;
    padding:22px 25px;
    border-radius:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.topbar h1{
    color:#142f86;
    font-size:28px;
    margin-bottom:5px;
}

.topbar p{
    color:#64748b;
    font-size:15px;
}

.admin-profile img{
    width:55px;
    height:55px;
    border-radius:50%;
    object-fit:cover;
}

/* ======================================================
CARDS
====================================================== */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:25px;
    margin-top:30px;
}

.card{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.card h2{
    margin-bottom:20px;
    color:#142f86;
    font-size:22px;
}

/* ======================================================
CARD ICONS
====================================================== */

.card-icon{
    width:65px;
    height:65px;
    border-radius:12px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:28px;
    margin-bottom:20px;
}

.blue{
    background:#2563eb;
}

.green{
    background:#16a34a;
}

.orange{
    background:#ea580c;
}

.purple{
    background:#7c3aed;
}

.card-info h2{
    font-size:34px;
    margin-bottom:8px;
}

.card-info p{
    color:#64748b;
    font-size:16px;
}

/* ======================================================
FORMS
====================================================== */

form{
    margin-top:15px;
}

label{
    font-size:15px;
    font-weight:600;
    color:#334155;
    display:block;
    margin-bottom:8px;
}

input,
select,
textarea{
    width:100%;
    padding:14px;
    border:1px solid #d1d5db;
    border-radius:10px;
    margin-bottom:18px;
    font-size:15px;
    transition:0.3s;
    background:white;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,0.1);
}

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

button{
    background:#142f86;
    color:white;
    border:none;
    padding:13px 24px;
    border-radius:10px;
    cursor:pointer;
    font-size:15px;
    transition:0.3s;
}

button:hover{
    background:#0f2363;
}

/* ======================================================
TABLES
====================================================== */

table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:white;
    border-radius:12px;
    overflow:hidden;
}

table thead{
    background:#142f86;
    color:white;
}

table th{
    padding:16px;
    text-align:left;
    font-size:15px;
    font-weight:600;
}

table td{
    padding:15px;
    border-bottom:1px solid #e5e7eb;
    font-size:15px;
    color:#334155;
    vertical-align:middle;
}

table tr:hover{
    background:#f8fafc;
}

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

.btn-edit{
    background:#2563eb;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    margin-right:5px;
    display:inline-block;
}

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

.btn-delete{
    background:#dc2626;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    display:inline-block;
}

.btn-delete:hover{
    background:#b91c1c;
}

.btn-enable{
    background:#16a34a;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    display:inline-block;
    margin-right:5px;
}

.btn-enable:hover{
    background:#15803d;
}

.btn-disable{
    background:#f59e0b;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    display:inline-block;
    margin-right:5px;
}

.btn-disable:hover{
    background:#d97706;
}

/* ======================================================
STATUS BADGES
====================================================== */

.status-active{
    background:#16a34a;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    display:inline-block;
}

.status-disabled{
    background:#dc2626;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    display:inline-block;
}

/* ======================================================
MESSAGES
====================================================== */

.success-msg{
    background:#dcfce7;
    color:#166534;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:15px;
}

.error-msg{
    background:#fee2e2;
    color:#991b1b;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:15px;
}

/* ======================================================
PROFILE IMAGE
====================================================== */

.profile-img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
}

/* ======================================================
FOOTER
====================================================== */

.footer{
    margin-top:40px;
    background:white;
    padding:18px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.footer p{
    color:#64748b;
    font-size:14px;
}

.footer a{
    color:#142f86;
    text-decoration:none;
    font-weight:600;
}

.footer a:hover{
    text-decoration:underline;
}

/* ======================================================
RESPONSIVE
====================================================== */

@media(max-width:900px){

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

    .main-content{
        margin-left:0;
        padding:20px;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .cards{
        grid-template-columns:1fr;
    }

    table{
        display:block;
        overflow-x:auto;
    }

}

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

.dashboard-cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

    margin-top:30px;
}

.dashboard-card{

    background:#fff;

    border-radius:18px;

    padding:25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 5px 20px rgba(0,0,0,0.06);

    transition:0.3s;
}

.dashboard-card:hover{

    transform:translateY(-5px);
}

.dashboard-card h3{

    font-size:32px;

    color:#1b2a7a;

    margin-bottom:8px;
}

.dashboard-card p{

    color:#666;

    font-size:15px;
}

.dashboard-card i{

    width:70px;

    height:70px;

    background:#eef2ff;

    color:#1b2a7a;

    border-radius:16px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:30px;
}

/* ===================================================== */
/* QUICK ACTIONS */
/* ===================================================== */

.quick-actions{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-top:20px;
}

.quick-actions a{

    background:#f8f9fc;

    border-radius:14px;

    padding:22px;

    text-decoration:none;

    color:#1b2a7a;

    font-weight:600;

    display:flex;

    align-items:center;

    gap:15px;

    transition:0.3s;

    border:1px solid #edf0f7;
}

.quick-actions a:hover{

    background:#1b2a7a;

    color:#fff;

    transform:translateY(-3px);
}

.quick-actions a i{

    font-size:22px;
}

/* ===================================================== */
/* PROFILE IMAGE */
/* ===================================================== */

.profile-img{

    width:50px;

    height:50px;

    border-radius:50%;

    object-fit:cover;
}

/* ===================================================== */
/* STATUS */
/* ===================================================== */

.status-active{

    background:#d4f8e8;

    color:#008a4e;

    padding:8px 14px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;
}

.status-disabled{

    background:#ffe0e0;

    color:#d10000;

    padding:8px 14px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;
}

/* ===================================================== */
/* TABLE */
/* ===================================================== */

table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;
}

table th{

    background:#f4f7fb;

    color:#1b2a7a;

    text-align:left;

    padding:16px;

    font-size:15px;
}

table td{

    padding:16px;

    border-bottom:1px solid #eee;

    color:#444;
}

table tr:hover{

    background:#fafcff;
}

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

.btn-edit,
.btn-delete,
.btn-disable,
.btn-enable{

    padding:8px 14px;

    border-radius:8px;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    margin-right:5px;

    display:inline-block;
}

.btn-edit{

    background:#e8f0ff;

    color:#1b2a7a;
}

.btn-delete{

    background:#ffe3e3;

    color:#c00000;
}

.btn-disable{

    background:#fff3d9;

    color:#b36b00;
}

.btn-enable{

    background:#dff8ea;

    color:#008c52;
}

/* ===================================================== */
/* CARDS */
/* ===================================================== */

.card{

    background:#fff;

    border-radius:18px;

    padding:30px;

    box-shadow:0 5px 20px rgba(0,0,0,0.06);
}

/* ===================================================== */
/* TOPBAR */
/* ===================================================== */

.topbar{

    background:#fff;

    border-radius:18px;

    padding:25px 30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 5px 20px rgba(0,0,0,0.06);

    margin-bottom:25px;
}

.topbar h1{

    color:#1b2a7a;

    font-size:38px;
}

.topbar p{

    color:#666;

    margin-top:8px;
}

.admin-profile img{

    width:70px;
}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */

.footer{

    margin-top:40px;

    text-align:center;

    color:#666;

    padding:20px 0;
}

.footer a{

    color:#1b2a7a;

    text-decoration:none;

    font-weight:bold;
}
/* =========================================================
TOPBAR
========================================================= */

.topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#fff;

    padding:15px 25px;

    border-radius:14px;

    box-shadow:0 2px 10px rgba(0,0,0,0.05);

    margin-bottom:20px;
}

.topbar-left{

    display:flex;

    align-items:center;

    gap:15px;
}

.topbar-right{

    font-weight:600;

    color:#1b2a7a;
}

/* =========================================================
FOOTER
========================================================= */

.footer{

    margin-top:40px;

    padding:20px;

    background:#fff;

    border-radius:14px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 2px 10px rgba(0,0,0,0.05);

    font-size:14px;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media(max-width:768px){

    .topbar,
    .footer{

        flex-direction:column;

        gap:10px;

        text-align:center;
    }
}