*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f3f4f6;
}

/* SIDEBAR */

.sidebar{
    width:260px;
    height:100vh;
    background:#111827;
    position:fixed;
    left:0;
    top:0;
    overflow:auto;
}

.logo-section{
    padding:25px;
    border-bottom:1px solid rgba(255,255,255,.1);
}

.logo{
    color:white;
    font-size:28px;
    font-weight:bold;
}

.menu{
    list-style:none;
    padding:20px 0;
}

.menu li{
    padding:5px 20px;
}

.menu li a{
    display:block;
    padding:14px 18px;
    border-radius:12px;
    text-decoration:none;
    color:white;
    font-size:16px;
    transition:.3s;
}

.menu li a:hover{
    background:#2563eb;
}

/* MAIN CONTENT */

.main-content{
    margin-left:260px;
    padding:30px;
}

/* TOPBAR */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.topbar h1{
    font-size:34px;
    color:#111827;
}

.admin-info{
    background:white;
    padding:14px 20px;
    border-radius:14px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    font-weight:bold;
}

/* CARDS */

.dashboard-cards{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.card{
    background:white;
    padding:30px;
    border-radius:20px;
    width:320px;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
}

.card h2{
    color:#6b7280;
    margin-bottom:20px;
    font-size:18px;
}

.card h1{
    font-size:52px;
    color:#2563eb;
}

/* TABLE */

.table-container{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#2563eb;
    color:white;
    padding:18px;
    text-align:left;
}

table td{
    padding:16px;
    border-bottom:1px solid #eee;
}

tr:hover{
    background:#f9fafb;
}

/* BUTTONS */

.edit-btn{
    background:#2563eb;
    color:white;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
}

.delete-btn{
    background:#dc2626;
    color:white;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
}

/* LOGIN PAGE */

.login-body{
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-box{
    width:400px;
    background:white;
    padding:40px;
    border-radius:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.login-box h2{
    text-align:center;
    margin-bottom:30px;
    color:#111827;
}

.login-box input{
    width:100%;
    padding:15px;
    margin-bottom:18px;
    border-radius:12px;
    border:1px solid #d1d5db;
    font-size:16px;
}

.login-box button{
    width:100%;
    padding:15px;
    border:none;
    background:#2563eb;
    color:white;
    border-radius:12px;
    font-size:16px;
    cursor:pointer;
}

.login-box button:hover{
    background:#1d4ed8;
}

/* 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;
    }

    .card{
        width:100%;
    }

    table{
        min-width:900px;
    }
}