/* =========================
   RESET DASAR YAAA
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* =========================
   LAYOUT UTAMA
========================= */
.container {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 250px;
    background-color: #1f2937;
    color: #ffffff;
    padding: 20px;
}

.sidebar h2 {
    text-align: center;
    margin: 0 0 30px;
    font-size: 20px;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.sidebar a:hover {
    background-color: #374151;
    color: #ffffff;
}

/* =========================
   CONTENT
========================= */
.content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

h1 {
    margin-top: 0;
    font-size: 24px;
}

h2 {
    margin-top: 0;
}

/* =========================
   CARD
========================= */
.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* =========================
   FORM
========================= */
form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

form textarea {
    resize: vertical;
    min-height: 80px;
}

/* =========================
   BUTTON UMUM
========================= */
button {
    background-color: #2563eb;
    color: #ffffff;
    padding: 10px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #1e40af;
}

/* =========================
   TABLE
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

table th,
table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

table th {
    background-color: #f1f5f9;
    text-align: left;
}

/* =========================
   TEXT WARNA
========================= */
.text-green {
    color: #16a34a;
    font-weight: bold;
}

.text-red {
    color: #dc2626;
    font-weight: bold;
}

/* =========================
   LOGIN
========================= */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    width: 320px;
}

/* =========================
   BUTTON AKSI (EDIT / HAPUS)
========================= */
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 5px;
    color: #ffffff;
}


.btn-edit {
    background-color: #2563eb;
}

.btn-edit:hover {
    background-color: #1e40af;
}

.btn-delete {
    background-color: #dc2626;
}

.btn-delete:hover {
    background-color: #991b1b;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.field {
    display: flex;
    flex-direction: column;
}

.field input,
.field select {
    height: 39px;
}

.action-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
