*{
    box-sizing:border-box;
    transition:.2s;
}

body{
    margin:0;
    background:#f4f6f9;
    font-family:'Segoe UI',sans-serif;
    color:#333;
}

.container{
    width:100%;
    max-width:1200px;
}

h1{
    margin-top:0;
    color:#1565c0;
}

h2{
    margin-top:0;
    margin-bottom:10px;
}

h3{
    margin:0 0 5px 0;
    color:#333;
    font-size:18px;
}

small{
    color:#888;
}

p{
    margin:5px 0;
}

label{
    display:block;
    margin-bottom:5px;
    font-weight:bold;
}

select{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:15px;
    font-size:16px;
    background:white;
}

input[type=number]{
    width:100%;
    padding:16px;
    font-size:24px;
    text-align:center;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
}

input[type=number]:focus{
    border-color:#2196f3;
}

#btnSimpan{
    position:sticky;
    bottom:15px;
    width:100%;
    padding:18px;
    font-size:18px;
    border:none;
    border-radius:15px;
    background:#4caf50;
    color:white;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
}

#btnSimpan:disabled{
    background:#999;
}

#btnSimpan:hover{
    background:#43a047;
}

.progress{
    width:100%;
    height:20px;
    background:#e0e0e0;
    border-radius:20px;
    overflow:hidden;
    margin-top:10px;
}

.progress-bar{
    height:100%;
    background:#4caf50;
    border-radius:20px;
}

#btnCari{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#2196f3;
    color:white;
    font-size:16px;
    font-weight:bold;
    margin-top:10px;

    cursor:pointer;
    transition:.2s;
}

#btnCari:hover{
    background:#1e88e5;
}

#btnCari:active{
    transform:scale(.98);
}

#btnCari:disabled{
    background:#999;
    cursor:not-allowed;
}

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:999;
}

.modal-card{
    background:white;
    width:90%;
    max-width:500px;
    margin:50px auto;
    padding:20px;
    border-radius:15px;
    max-height:80vh;
    overflow:auto;
}

.close{
    float:right;
    cursor:pointer;
    font-size:20px;
}

#cari{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-top:15px;
    font-size:16px;
}

.layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:250px;
    background:#1f2937;
    color:white;
    padding:20px;
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    overflow:auto;
}

.sidebar button{
    width:100%;
    padding:15px;
    margin-bottom:10px;
    border:none;
    border-radius:12px;
    background:transparent;
    color:white;
    text-align:left;
    font-size:15px;
    cursor:pointer;
    transition:.2s;
}

.sidebar button:hover{
    background:#2563eb;
}

.sidebar h2{
    margin-bottom:5px;
}

.sidebar small{
    color:#bbb;
}

.sidebar button{
    font-weight:500;
}

.sidebar button:active{
    transform:scale(.98);
}

.main{
    margin-left:250px;
    padding:25px;
}


.versi{
    margin-top:50px;
    color:#ddd;
}

.card{
    background:#fff;
    border-radius:15px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    transition:.2s;
}

.card:hover{
    transform:translateY(-2px);
}

.header{
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    margin-bottom:20px;
}

.header h1{
    margin:0;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

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

.info-box h2{
    margin:0;
    color:#1565c0;
    font-size:32px;
}

.info-box p{
    color:#777;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#1565c0;
    color:white;
    padding:12px;
}

td{
    padding:12px;
    border-bottom:1px solid #eee;
}

tr:hover{
    background:#f5f7fa;
}

.btn{
    padding:12px 18px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.btn-primary{
    background:#2196f3;
    color:white;
}

.btn-success{
    background:#4caf50;
    color:white;
}

.btn-danger{
    background:#f44336;
    color:white;
}
