/* =============================================================================
   Simpati Hape — Admin Design System (PostHog-inspired)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
    /* Surfaces */
    --c-parchment:   #faf4e4;
    --c-sage-cream:  #f0e8d4;
    --c-light-sage:  #e5d9c2;
    --c-warm-tan:    #d2bc9c;
    --c-hover-white: #f5f0e6;

    /* Text */
    --c-olive:       #4d4535;
    --c-deep-olive:  #231f12;
    --c-muted-olive: #6b6050;
    --c-placeholder: #9e9280;

    /* Borders */
    --c-border:      #c8b896;
    --c-border-alt:  #bfac88;

    /* Brand */
    --c-orange:      #F54E00;
    --c-amber:       #F7A501;
    --c-dark:        #D6C9AF;
    --c-gold-border: #b17816;
    --c-focus-blue:  #3b82f6;

    /* Elevation */
    --shadow-float: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.08);

    /* Layout */
    --sidebar-w:     260px;
    --topbar-h:      60px;

    /* Typography */
    --font-sans: 'IBM Plex Sans', -apple-system, system-ui, 'Avenir Next', Avenir,
                 'Segoe UI', 'Helvetica Neue', Helvetica, Ubuntu, Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
                 'Liberation Mono', 'Courier New', monospace;
}

/* ─── Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.50;
    color: var(--c-olive);
    background-color: var(--c-parchment);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--c-deep-olive); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--c-orange); }

h1, h2, h3, h4, h5, h6 {
    color: var(--c-deep-olive);
    font-weight: 700;
    line-height: 1.33;
}

/* ─── Admin Shell ────────────────────────────────────────────────────────── */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.admin-sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background-color: var(--c-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 22px 20px 20px;
    border-bottom: 1px solid rgba(35, 31, 18, 0.07);
    flex-shrink: 0;
}

.sidebar-brand-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-deep-olive);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.sidebar-logo {
    width: 36px;
    height: auto;
    object-fit: contain;
}

.sidebar-brand-sub {
    font-size: 11px;
    color: rgba(35, 31, 18, 0.5);
    font-weight: 400;
    display: block;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(35, 31, 18, 0.5);
    padding: 14px 20px 5px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(35, 31, 18, 0.7);
    text-decoration: none;
    transition: all 0.12s ease;
    cursor: pointer;
    border-left: 2px solid transparent;
}

.nav-item:hover {
    color: var(--c-orange);
    background-color: rgba(35, 31, 18, 0.04);
    border-left-color: rgba(245, 78, 0, 0.4);
}

.nav-item.active {
    color: var(--c-orange);
    background-color: rgba(245, 78, 0, 0.08);
    font-weight: 600;
    border-left-color: var(--c-orange);
}

.nav-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(35, 31, 18, 0.07);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.sidebar-user:hover {
    background-color: rgba(35, 31, 18, 0.05);
}

.sidebar-user.active {
    background-color: rgba(35, 31, 18, 0.1);
}

.sidebar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebar-user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-deep-olive);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    font-size: 10px;
    color: rgba(35, 31, 18, 0.5);
    display: block;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 0;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: rgba(35, 31, 18, 0.6);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    text-align: left;
}

.btn-logout:hover { color: var(--c-orange); }

/* ─── Main Content Area ──────────────────────────────────────────────────── */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.admin-topbar {
    height: var(--topbar-h);
    background-color: var(--c-parchment);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}

.topbar-breadcrumb {
    flex: 1;
    font-size: 13px;
    color: var(--c-muted-olive);
}

.topbar-breadcrumb span { color: var(--c-placeholder); margin: 0 5px; }
.topbar-breadcrumb strong { color: var(--c-deep-olive); font-weight: 600; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── Content Wrapper ────────────────────────────────────────────────────── */
.admin-content {
    flex: 1;
    padding: 32px;
}

/* ─── Page Header ────────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-header-text h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-deep-olive);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.page-header-text p {
    font-size: 13px;
    color: var(--c-muted-olive);
    margin-top: 4px;
}

/* ─── Stat Cards ─────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--c-parchment);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 20px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c-muted-olive);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--c-deep-olive);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-desc {
    font-size: 12px;
    color: var(--c-placeholder);
    margin-top: 6px;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
    background-color: var(--c-parchment);
    border: 1px solid var(--c-border);
    border-radius: 6px;
}

.card-body { padding: 24px; }

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-deep-olive);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.12s ease;
    white-space: nowrap;
    line-height: 1.4;
}

/* Primary — dark/CTA */
.btn-primary {
    background-color: var(--c-dark);
    color: var(--c-deep-olive);
    border-radius: 6px;
    border-color: var(--c-dark);
}
.btn-primary:hover { opacity: 0.72; color: var(--c-deep-olive); }
.btn-primary:active { opacity: 0.85; transform: scale(0.98); }

/* Secondary — sage */
.btn-secondary {
    background-color: var(--c-light-sage);
    color: var(--c-olive);
    border-color: var(--c-border);
}
.btn-secondary:hover { background-color: var(--c-hover-white); color: var(--c-orange); }

/* Danger — outlined red */
.btn-danger {
    background-color: transparent;
    color: #b91c1c;
    border-color: #fca5a5;
}
.btn-danger:hover { background-color: #fef2f2; color: var(--c-orange); border-color: #f87171; }

/* Ghost */
.btn-ghost {
    background-color: transparent;
    color: var(--c-muted-olive);
    border-color: var(--c-border);
}
.btn-ghost:hover { background-color: var(--c-light-sage); color: var(--c-orange); }

/* Sizes */
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 20px; font-size: 15px; border-radius: 6px; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-deep-olive);
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--c-deep-olive);
    background-color: var(--c-sage-cream);
    border: 1px solid var(--c-border-alt);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    line-height: 1.5;
}

.form-control::placeholder { color: var(--c-placeholder); }

.form-control:focus {
    border-color: var(--c-focus-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background-color: #fff;
}

.form-control:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: var(--c-light-sage);
}

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Password Toggle */
.password-toggle-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-container .form-control {
    padding-right: 40px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--c-muted-olive);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.password-toggle-btn:hover {
    color: var(--c-orange);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.form-hint {
    font-size: 12px;
    color: var(--c-placeholder);
    margin-top: 5px;
}

.form-error {
    font-size: 12px;
    color: #b91c1c;
    margin-top: 5px;
    font-weight: 500;
}

.form-control-plaintext {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 0;
    line-height: 1.5;
    color: var(--c-deep-olive);
    background-color: var(--c-sage-cream);
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--c-border);
}

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrapper {
    border: 1px solid var(--c-border);
    border-radius: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--c-parchment);
    padding: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead {
    background-color: var(--c-sage-cream);
}

.data-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-muted-olive);
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
}

.data-table td {
    padding: 11px 16px;
    color: var(--c-olive);
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background-color: var(--c-sage-cream); }

.table-actions { display: flex; gap: 6px; align-items: center; }

/* ─── Toolbar (above table) ─────────────────────────────────────────────── */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px 8px 34px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--c-deep-olive);
    background-color: var(--c-sage-cream);
    border: 1px solid var(--c-border-alt);
    border-radius: 4px;
    outline: none;
    width: 260px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box input::placeholder { color: var(--c-placeholder); }

.search-box input:focus {
    border-color: var(--c-focus-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background-color: #fff;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--c-placeholder);
    width: 14px;
    height: 14px;
    pointer-events: none;
}

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.badge-active   { background: #dcfce7; color: #14532d; }
.badge-inactive { background: var(--c-light-sage); color: var(--c-muted-olive); }
.badge-banned   { background: #fee2e2; color: #7f1d1d; }
.badge-info     { background: var(--c-sage-cream); color: var(--c-deep-olive); }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid;
    line-height: 1.5;
}

.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert-info    { background: var(--c-sage-cream); border-color: var(--c-border); color: var(--c-olive); }

/* ─── Auth Layout ────────────────────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    background-color: var(--c-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--c-parchment);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 40px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background-color: var(--c-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    padding: 8px;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-logo svg { color: var(--c-deep-olive); width: 22px; height: 22px; }

.auth-header { text-align: center; margin-bottom: 32px; }

.auth-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-deep-olive);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-header p { font-size: 13px; color: var(--c-muted-olive); }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--c-placeholder);
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state svg {
    width: 40px;
    height: 40px;
    color: var(--c-border);
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-muted-olive);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    color: var(--c-placeholder);
    margin-bottom: 20px;
}

/* ─── Dashboard Grid ─────────────────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.tindak-lanjut-grid {
    grid-template-columns: 1fr 340px;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ─── Log List ───────────────────────────────────────────────────────────── */
.log-list { list-style: none; }

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-sage-cream);
    font-size: 13px;
}

.log-item:last-child { border-bottom: none; }

.log-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--c-border);
    margin-top: 4px;
    flex-shrink: 0;
}

.log-dot.login  { background-color: #22c55e; }
.log-dot.logout { background-color: var(--c-placeholder); }

.log-action {
    font-weight: 600;
    color: var(--c-deep-olive);
    text-transform: capitalize;
}

.log-meta { color: var(--c-muted-olive); font-size: 12px; margin-top: 2px; }

/* ─── Delete Form (inline) ───────────────────────────────────────────────── */
.delete-form { display: inline; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pager {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 16px;
    flex-wrap: wrap;
}

.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--c-olive);
    border: 1px solid var(--c-border);
    text-decoration: none;
    transition: all 0.12s;
}

.pager a:hover { background-color: var(--c-light-sage); color: var(--c-orange); }
.pager .active { background-color: var(--c-dark); color: var(--c-deep-olive); border-color: var(--c-dark); }
.pager .disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ─── Quick Link Grid (Dashboard) ───────────────────────────────────────── */
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: var(--c-sage-cream);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-deep-olive);
    text-decoration: none;
    transition: all 0.12s;
}

.quick-link:hover {
    background-color: var(--c-light-sage);
    color: var(--c-orange);
    border-color: var(--c-border-alt);
}

.quick-link svg {
    width: 16px;
    height: 16px;
    color: var(--c-muted-olive);
    flex-shrink: 0;
}

.quick-link:hover svg { color: var(--c-orange); }

/* ─── Module Nav (Dashboard) ─────────────────────────────────────────────── */
.module-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.module-btn {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background-color: var(--c-parchment);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-deep-olive);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.module-btn svg {
    width: 28px;
    height: 28px;
    color: var(--c-muted-olive);
    transition: color 0.15s;
}

.module-btn:hover {
    background-color: var(--c-light-sage);
    border-color: var(--c-border-alt);
    color: var(--c-orange);
}

.module-btn:hover svg { color: var(--c-orange); }

.module-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Filter Banner ──────────────────────────────────────────────────────── */
.filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background-color: var(--c-sage-cream);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--c-deep-olive);
}

.filter-banner a { font-weight: 600; }

/* ─── Divider ────────────────────────────────────────────────────────────── */
.divider { height: 1px; background-color: var(--c-border); margin: 24px 0; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11px; }
.text-muted   { color: var(--c-muted-olive); }
.text-dim     { color: var(--c-placeholder); }
.text-danger  { color: #b91c1c; }
.text-success { color: #14532d; }
.font-600     { font-weight: 600; }
.font-700     { font-weight: 700; }
.font-mono    { font-family: var(--font-mono); }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full       { width: 100%; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-6        { gap: 6px; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-0  { margin-bottom: 0; }

/* ─── Sidebar Toggle & Overlay ───────────────────────────────────────────── */
.sidebar-toggle, .sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--c-deep-olive);
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s;
}

.sidebar-toggle:hover, .sidebar-close:hover {
    opacity: 0.6;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .tindak-lanjut-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar-toggle { display: block; }
    .sidebar-close { display: block; }
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.2s ease; width: 280px; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-float); }
    .admin-main { margin-left: 0; }
    .admin-topbar { padding: 0 20px; }
    .admin-content { padding: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .table-toolbar { flex-direction: column; align-items: flex-start; }
    .search-box input { width: 100%; }

    .stats-mini-grid { grid-template-columns: 1fr; gap: 0.75rem; }

    /* Detail Table Stacking */
    .detail-table tr { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
    .detail-table tr:last-child { border-bottom: none; }
    .detail-table tr + tr td { border-top: none; }
    .detail-table td { padding: 2px 0; }
    .detail-label { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-placeholder); padding-right: 0; }
    .detail-value { font-size: 14px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }
}

/* ─── Detail Table ───────────────────────────────────────────────────────── */
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table tr + tr td { border-top: 1px solid var(--c-border); }
.detail-table td { padding: 10px 0; vertical-align: top; }
.detail-label { width: 150px; color: var(--c-muted-olive); font-size: 13px; padding-right: 16px; white-space: nowrap; font-weight: 600; }
.detail-value { font-size: 14px; color: var(--c-deep-olive); }

/* ─── File List ──────────────────────────────────────────────────────────── */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid var(--c-border); gap: 1rem; }
.file-list-item:last-child { border-bottom: none; }

/* ─── Laporan Body ───────────────────────────────────────────────────────── */
.laporan-body { background: var(--c-sage-cream); border: 1px solid var(--c-border); border-radius: 6px; padding: 14px 16px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
