/* ===============================
   RESET & BASE
=============================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #333;
    line-height: 1.5;
}

/* ===============================
   HEADER ADMIN
=============================== */
.admin-header {
    background: #0b3c5d;
    color: #fff;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 20px;
    margin: 0;
    font-weight: bold;
}

.admin-header a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.admin-header a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===============================
   CONTAINER
=============================== */
.container {
    padding: 30px;
    max-width: 1200px;
    margin: auto;
}

/* ===============================
   ACTION BUTTON
=============================== */
.actions {
    margin-bottom: 20px;
}

.actions a {
    display: inline-block;
    padding: 10px 16px;
    background: #0b3c5d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.actions a:hover {
    background: #092f48;
}

.actions a.logout {
    background: #c0392b;
}

.actions a.logout:hover {
    background: #a93226;
}

/* ===============================
   STATISTIK
=============================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stat-card h4 {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.stat-card p {
    margin-top: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #0b3c5d;
}

/* ===============================
   TABLE BOX
=============================== */
.table-box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===============================
   TABLE
=============================== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #f0f2f5;
    text-align: left;
    padding: 12px 10px;
    font-size: 14px;
    color: #333;
}

table td {
    padding: 12px 10px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

table tr:hover {
    background: #f9fafb;
}

table a {
    color: #0b3c5d;
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    text-decoration: underline;
}

/* ===============================
   EMPTY STATE
=============================== */
.empty {
    padding: 30px;
    text-align: center;
    color: #777;
    font-style: italic;
}

/* ===============================
   FORM (LOGIN & TAMBAH / EDIT)
=============================== */
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #0b3c5d;
}

button {
    cursor: pointer;
}
