/* ===========================
   GLOBAL STYLES
=========================== */
body {
    font-family: 'Inter', sans-serif;
    background: #f3f4f6;
    color: #111827;
    margin: 0;
    padding: 0;
}

/* Reset box-sizing supaya width:100% tidak melebar */
*,
*::before,
*::after {
    box-sizing: border-box;
}



/* container umum (dashboard dll) */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}



/* ===========================
   TOPBAR
=========================== */
.topbar {
    background: #111827;
    padding: 16px 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .logo {
    font-size: 18px;
    font-weight: 600;
}

.topbar a {
    color: #ffffff;
    margin-left: 16px;
    text-decoration: none;
    font-size: 14px;
}

.topbar a:hover {
    text-decoration: underline;
}

/* ===========================
   CARD
=========================== */
.card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 18px;
    font-weight: 600;
}

.card p.muted {
    font-size: 13px;
    color: #6b7280;
}

/* ===========================
   FORMS
=========================== */
label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: 0.2s all ease;
    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.form-group {
    margin-bottom: 14px;
}

.form-group:last-of-type {
    margin-bottom: 18px; /* sedikit extra sebelum tombol */
}

/* hilangkan margin-bottom default dari input supaya tidak dobel */
.form-group input,
.form-group textarea,
.form-group select {
    margin-bottom: 0;
}


/* ===========================
   BUTTONS
=========================== */
.btn {
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* ===========================
   TABLES
=========================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

table thead {
    background: #f3f4f6;
}

table th,
table td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

table tr:hover {
    background: #f8f9fb;
}

/* ===========================
   METRIC BOXES (Dashboard)
=========================== */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.metric-box .num {
    font-size: 26px;
    font-weight: 600;
    margin: 6px 0;
}

.metric-box .label {
    font-size: 13px;
    color: #6b7280;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 700px) {
    .container {
        padding: 16px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* ===========================
   AUTH LAYOUT OVERRIDE
   (Login & Signup)
=========================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;      /* BUKAN center lagi */
    padding: 80px 16px 40px;      /* turun sedikit dari atas */
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.auth-card p.muted {
    margin-top: 0;
    margin-bottom: 18px;
}

.auth-card form {
    margin-top: 4px;
}

/* Tabel ringkasan yang lebih compact (Ringkasan Website, dll) */
.table-compact {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.table-compact thead {
    background: #f3f4f6;
}

.table-compact th,
.table-compact td {
    padding: 8px 12px;
    font-size: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Website rata kiri, angka rata tengah */
.table-compact th:first-child,
.table-compact td:first-child {
    text-align: left;
}

.table-compact th:nth-child(2),
.table-compact th:nth-child(3),
.table-compact td:nth-child(2),
.table-compact td:nth-child(3) {
    text-align: center;
    width: 110px;
}

/* Optional hover ringan */
.table-compact tbody tr:hover {
    background: #f9fafb;
}

