*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f1f5f9;
}

/* TOPBAR */

.topbar{
    width:100%;
    height:70px;
    background:#0f172a;
    color:white;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.logo{
    font-size:24px;
    font-weight:bold;
}

.logout-btn{
    background:#ef4444;
    color:white;
    padding:10px 18px;
    text-decoration:none;
    border-radius:8px;
    transition:0.3s;
}

.logout-btn:hover{
    background:#dc2626;
}

/* LAYOUT */

.wrapper{
    display:flex;
}

/* SIDEBAR */

.sidebar{
    width:250px;
    min-height:100vh;
    background:#1e293b;
    padding-top:30px;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:15px 25px;
    margin:8px 15px;
    border-radius:10px;
    transition:0.3s;
    font-size:16px;
}

.sidebar a:hover{
    background:#3b82f6;
}

/* CONTENT */

.content{
    flex:1;
    padding:30px;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.card{
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h2{
    font-size:35px;
    color:#2563eb;
}

.card p{
    margin-top:10px;
    color:#555;
}

/* FORM */

.form-box{
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    margin-bottom:30px;
}

.form-box h2{
    margin-bottom:20px;
}

input,
select{
    width:100%;
    padding:14px;
    margin-top:12px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    transition:0.3s;
    font-size:15px;
}

input:focus,
select:focus{
    border-color:#3b82f6;
}

button{
    width:100%;
    padding:14px;
    border:none;
    background:#2563eb;
    color:white;
    border-radius:10px;
    margin-top:15px;
    cursor:pointer;
    font-size:16px;
    transition:0.3s;
}

button:hover{
    background:#1d4ed8;
}

/* TABLE */

.table-box{
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    overflow:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#2563eb;
    color:white;
    padding:14px;
    text-align:left;
}

table td{
    padding:14px;
    border-bottom:1px solid #eee;
}

table tr:hover{
    background:#f8fafc;
}

/* BUTTONS */

.action-btn{
    background:#10b981;
    color:white;
    padding:8px 14px;
    border-radius:8px;
    text-decoration:none;
    display:inline-block;
}

.action-btn:hover{
    background:#059669;
}

/* LOGIN */

.login-page{
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#2563eb,#1e3a8a);
}

.login-box{
    width:400px;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 40px rgba(0,0,0,0.2);
}

.login-box h1{
    text-align:center;
    margin-bottom:25px;
    color:#1e293b;
}

.error{
    color:red;
    margin-top:15px;
    text-align:center;
}

/* MOBILE */

@media(max-width:900px){

    .wrapper{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
        min-height:auto;
        display:flex;
        overflow:auto;
    }

    .sidebar a{
        white-space:nowrap;
    }

}