/* =========================
   BASIS
========================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    background: linear-gradient(135deg, #111827, #7f1d1d);
    color: #ffffff;
    padding: 18px 20px;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
}

.subinfo {
    margin-top: 4px;
    font-size: 13px;
    color: #e5e7eb;
}

/* =========================
   CARD
========================= */

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.section-note {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: #4b5563;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    background: #1d4ed8;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn:hover {
    background: #1e40af;
}

/* =========================
   BACK LINK
========================= */

.back-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    color: #1d4ed8;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* =========================
   FORM
========================= */

.form-group {
    margin-bottom: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
}

/* =========================
   MESSAGES
========================= */

.message {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.message-success {
    background: #dcfce7;
    color: #166534;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   TABLE
========================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    background: #f9fafb;
    padding: 10px;
    border-bottom: 2px solid #e5e7eb;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover {
    background: #f9fafb;
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.badge-gray {
    background: #e5e7eb;
    color: #111827;
}

/* =========================
   UTILS
========================= */

.muted-text {
    color: #6b7280;
}

.center {
    text-align: center;
}

/* =========================
   LOGIN EXTRA (optional)
========================= */

.login-body {
    font-family: Arial, Helvetica, sans-serif;
}