* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f8;
}

/* ===================== */
/* LAYOUT 1 KOLOM */
/* ===================== */

.wrapper {
    display: flex;
    flex-direction: column; /* ⬅️ 1 kolom */
    min-height: 100vh;
}

/* ===================== */
/* TOPBAR / SIDEBAR ATAS */
/* ===================== */

.sidebar {
    width: 100%;
    background: #0d47a1;
    color: white;
    padding: 15px 20px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sidebar h2 {
    margin-right: 20px;
    font-size: 18px;
    white-space: nowrap;
}

/* menu */
.sidebar a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.sidebar a:hover {
    background: #ff9800;
}

/* ===================== */
/* KONTEN */
/* ===================== */

.content {
    flex: 1;
    padding: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===================== */
/* UMUM */
/* ===================== */

h1 {
    margin-bottom: 15px;
}

.btn {
    padding: 8px 14px;
    background: #0d47a1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn:hover {
    background: #ff9800;
}

/* ===================== */
/* TABEL */
/* ===================== */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th {
    background: #0d47a1;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.aksi {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.aksi a {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
}

.btn-edit {
    background: #1976d2;
}

.btn-hapus {
    background: #d32f2f;
}

.btn-edit:hover {
    background: #1565c0;
}

.btn-hapus:hover {
    background: #b71c1c;
}

/* ===================== */
/* FORM */
/* ===================== */

.form-group {
    margin-bottom: 15px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 768px) {

    .sidebar {
        justify-content: center;
    }

    .sidebar h2 {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .content {
        padding: 15px;
    }
}

@media (max-width: 480px) {

    .sidebar a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .aksi {
        flex-direction: column;
    }

    .aksi a {
        width: 100%;
    }
}
