body{
    font-family:Segoe UI;
    background:#f4f6f9;
    margin:0;
}
.navbar{
    background:#1e3a8a;
    color:white;
    padding:15px;
}
.container{
    width:90%;
    margin:30px auto;
}
.card{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    margin-bottom:20px;
}
button{
    background:#2563eb;
    color:white;
    border:none;
    padding:8px 15px;
    border-radius:6px;
    cursor:pointer;
}
button:hover{
    background:#1d4ed8;
}
table{
    width:100%;
    border-collapse:collapse;
}
table th{
    background:#1e3a8a;
    color:white;
    padding:10px;
}
table td{
    padding:10px;
    border-bottom:1px solid #ddd;
}
input,select{
    padding:8px;
    width:100%;
    margin-bottom:10px;
}
a{text-decoration:none;}

/* ====== GLOBAL ====== */
body{
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg,#1e3a8a,#2563eb);
    margin:0;
    min-height:100vh;
}

.container{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
}

.card{
    background:white;
    width:100%;
    max-width:700px;
    padding:35px;
    border-radius:15px;
    box-shadow:0 15px 40px rgba(0,0,0,0.2);
    animation:fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn{
    from{opacity:0; transform:translateY(20px);}
    to{opacity:1; transform:translateY(0);}
}

.card h2{
    text-align:center;
    margin-bottom:25px;
    color:#1e3a8a;
}

/* ====== FORM STYLE ====== */

.form-group{
    margin-bottom:18px;
}

label{
    font-weight:600;
    font-size:14px;
    display:block;
    margin-bottom:6px;
}

input, select{
    width:100%;
    padding:10px 12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:14px;
    transition:0.3s;
}

input:focus, select:focus{
    border-color:#2563eb;
    box-shadow:0 0 5px rgba(37,99,235,0.5);
    outline:none;
}

.form-row{
    display:flex;
    gap:15px;
}

.form-row .form-group{
    flex:1;
}

/* BUTTON */
button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:white;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    background:#1e40af;
    transform:translateY(-2px);
}

/* READONLY FIELD */
.readonly{
    background:#f3f4f6;
    font-weight:bold;
    color:#1e3a8a;
}
.btn-kembali{
    display:inline-block;
    padding:10px 20px;
    background:#6c757d;
    color:white;
    text-decoration:none;
    border-radius:6px;
    text-align:center;
}

.btn-kembali:hover{
    background:#545b62;
}

.btn-simpan{
    background:#2e59d9;
    color:white;
    border:none;
    padding:10px 20px;
    border-radius:6px;
    cursor:pointer;
}

.btn-simpan:hover{
    background:#1c3faa;
}
.btn-group{
    display:flex;
    gap:12px;
    margin-top:20px;
}

/* Tombol Kembali */
.btn-kembali{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 22px;
    background:#6c757d;
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-weight:500;
    transition:all 0.3s ease;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.btn-kembali .icon{
    transition:transform 0.3s ease;
}

/* Hover Effect */
.btn-kembali:hover{
    background:#545b62;
    transform:translateY(-3px);
    box-shadow:0 6px 15px rgba(0,0,0,0.2);
}

.btn-kembali:hover .icon{
    transform:translateX(-5px);
}

/* Tombol Simpan */
.btn-simpan{
    padding:10px 22px;
    background:#2e59d9;
    color:white;
    border:none;
    border-radius:8px;
    font-weight:500;
    cursor:pointer;
    transition:all 0.3s ease;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}
.btn-center{
    display:flex;
    justify-content:center;
    margin-top:25px;
}

.btn-simpan:hover{
    background:#1c3faa;
    transform:translateY(-3px);
    box-shadow:0 6px 15px rgba(0,0,0,0.2);
}
.btn-group{
    display:flex;
    gap:12px;
    margin-top:20px;
}

/* Tombol Seragam */
.btn-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 22px;
    background:#2e59d9;
    color:white;
    border:none;
    border-radius:8px;
    font-weight:500;
    text-decoration:none;
    cursor:pointer;
    transition:all 0.3s ease;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

/* Hover Effect */
.btn-action:hover{
    background:#1c3faa;
    transform:translateY(-3px);
    box-shadow:0 6px 15px rgba(0,0,0,0.2);
}
top-action{
    margin-bottom:20px;
}

.btn-dashboard{
    display:inline-block;
    background:#6c757d;
    color:white;
    padding:8px 15px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    transition:0.3s;
}

.btn-dashboard:hover{
    background:#495057;
    transform:translateX(-3px);
}

.btn-group{
    display:flex;
    justify-content:center;
    margin-top:20px;
}

.btn-simpan{
    background:#2e59d9;
    color:white;
    border:none;
    padding:10px 25px;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

.btn-simpan:hover{
    background:#1c3faa;
    transform:scale(1.05);
}

/* ===============================
   SIDEBAR MOBILE DROPDOWN
================================= */
@media (max-width: 768px){

    .sidebar{
        position:fixed;
        top:60px;
        left:0;
        width:100%;
        height:auto;
        display:none;
        border-radius:0 0 15px 15px;
    }

    .sidebar.active{
        display:block;
    }

    .content{
        margin-left:0;
    }

}

/* ===============================
   STATISTIK RESPONSIVE
================================= */
.stat-card h3{
    font-size:clamp(18px, 4vw, 28px);
}

/* ===============================
   CHART RESPONSIVE
================================= */
@media (max-width:768px){

    canvas{
        max-height:220px !important;
    }

}

@media (max-width:768px){

    .stat-card{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        padding:15px;
    }

    .stat-card div:last-child{
        font-size:20px;
    }

}

@media (max-width:480px){

    .stat-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .stat-card div:last-child{
        align-self:flex-end;
        margin-top:-30px;
        font-size:18px;
    }

}