/* --- RESET & DASAR --- */
* {
    box-sizing: border-box; /* Agar padding tidak merusak lebar elemen */
}

body {
    margin: 0;
    padding: 10px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px; /* Meningkatkan keterbacaan */
    line-height: 1.6;
    color: #333;
    background-attachment: fixed; /* Background tetap diam saat scroll */
    background-size: cover;
    background-position: center;
    width: 100%;
}

/* --- WRAPPER (EFEK KACA PREMIUM) --- */
#wrap {
    width: 95%;
    max-width: 1100px;
    margin: 20px auto;
    border-radius: 15px; /* Sudut melengkung agar modern */
    background-color: rgba(255, 255, 255, 0.65); /* Opasitas diseimbangkan */
    backdrop-filter: blur(10px); /* Blur diperkuat agar lebih elegan */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Border tipis untuk kilauan kaca */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); /* Bayangan halus */
    overflow: hidden;
}

/* --- HEADER --- */
#header {
    min-height: 100px;
    width: 100%;
    padding: 20px;
    background-image: url(../images/);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- TABEL (RAPI & BERSIH) --- */
.table-main, 
.table-common, 
.table-list, 
.table-user {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: transparent;
}

/* Header Tabel */
.table-list th, 
.table-common th, 
.table-user th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #444;
    background: rgba(0, 0, 0, 0.05); /* Overlay gelap tipis pada header */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* Sel Tabel */
.table-main td, 
.table-list td {
    padding: 10px;
    vertical-align: middle; /* Perbaikan dari 'center' ke 'middle' */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* --- FORM & INPUT (OPTIMASI HP/TABLET) --- */
input[type="text"], 
input[type="number"], 
input[type="password"],
select, 
textarea {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 16px; /* Mencegah auto-zoom pada iPhone/iPad */
    transition: 0.3s;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* --- TOMBOL (OPSIONAL AGAR SERASI) --- */
.btn-action, .btn-save {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

/* --- RESPONSIVE (LAYOUT MOBILE) --- */
@media screen and (max-width: 768px) {
    #wrap {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    #header {
        background-position: center;
        height: 80px;
    }

    /* Membuat tabel bisa digeser ke samping jika terlalu lebar */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
