html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

/* ================= LOGIN PAGE ================= */
.login-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(
        135deg,
        white,
        #43a047
    );
    position:relative;
}

.login-box{
    width:100%;
    max-width:420px;
    background:#fff;
    padding:40px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,.15);
}

.login-box h2{
    color:#1b5e20;
    margin-bottom:10px;
}

.login-box p{
    color:#666;
    margin-bottom:25px;
}

.login-box input{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    transition:.3s;
}

.login-box input:focus{
    border-color:#4caf50;
    box-shadow:0 0 0 3px rgba(76,175,80,.15);
}

.login-box button{
    width:100%;
}

.login-box small{
    display:block;
    margin-top:15px;
    color:#888;
}

/* ================= BUTTON ================= */
.btn{
    background:#4caf50;
    color:white;
    border:none;
    padding:14px 20px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    background:#2e7d32;
}

/* ================= BACK BUTTON ================= */
.btn-back{
    position:absolute;
    top:25px;
    left:25px;
    text-decoration:none;
    background:white;
    color:#1b5e20;
    padding:10px 18px;
    border-radius:10px;
    font-weight:600;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    transition:.3s;
}

.btn-back:hover{
    background:#f5f5f5;
}

/* ================= SIDEBAR ================= */
.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:250px;
    height:100vh;
    background:#102312;
    padding:30px 20px;
    color:white;
    box-shadow:5px 0 20px rgba(0,0,0,.08);
}

.sidebar h3{
    text-align:center;
    margin-bottom:35px;
    color:#4caf50;
}

.sidebar a{
    display:block;
    text-decoration:none;
    color:white;
    padding:14px 15px;
    border-radius:10px;
    margin-bottom:10px;
    transition:.3s;
}

.sidebar a:hover{
    background:#1b5e20;
}

/* ================= MAIN CONTENT ================= */
.main{
    margin-left:250px;
    min-height:100vh;
    padding:40px;
    background:#f7faf8;
}

/* ================= HEADER ================= */
.admin-header{
    margin-bottom:30px;
}

.admin-header h2{
    color:#1b5e20;
    font-size:32px;
    margin-bottom:5px;
}

.admin-header p{
    color:#666;
}

/* ================= ALERT ================= */
.alert-success{
    background:#43a047;
    color:white;
    padding:14px 18px;
    border-radius:10px;
    margin-bottom:20px;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

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

.box{
    background:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.box:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.box h1{
    font-size:48px;
    color:white;
    margin-bottom:10px;
}

.box p{
    color:#666;
    font-size:16px;
}

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

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

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

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

    .btn-back{
        position:static;
        margin-bottom:20px;
        display:inline-block;
    }

    .login-page{
        flex-direction:column;
    }
}