/* ============================================ */
/* RESET & VARIABLES                            */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors */
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface2: #f0f2f8;
    --surface3: #e8eaf2;
    --accent: #4f6ef7;
    --accent2: #7c3aed;
    --accent-light: rgba(79, 110, 247, 0.08);
    --accent-hover: #3b5bdb;
    --text: #1a1d2e;
    --text2: #6b7280;
    --text3: #9ca3af;
    --border: #e5e7ef;
    --border2: #d1d5e8;
    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.08);
    --error: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.08);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.08);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.08);
    --radius: 12px;
    --sidebar-w: 260px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ============================================ */
/* BASE STYLES                                  */
/* ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text3);
}

/* ============================================ */
/* AUTH TWO-COLUMN LAYOUT (LOGIN/SIGNUP)       */
/* ============================================ */

.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container-two {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: transparent;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.auth-container-two.swapped {
    flex-direction: row-reverse;
}

/* SISI KIRI - FORM */
.auth-form-side {
    flex: 1;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px 0 0 32px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, border-radius;
    cursor: pointer;
}

.auth-container-two.swapped .auth-form-side {
    border-radius: 0 32px 32px 0;
    animation: formSlideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes formSlideInRight {
    0% {
        opacity: 0.95;
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* SISI KANAN - ILUSTRASI */
.auth-illustration-side {
    width: 45%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 32px 32px 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.auth-container-two.swapped .auth-illustration-side {
    border-radius: 32px 0 0 32px;
    animation: illustrationSlideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes illustrationSlideInLeft {
    0% {
        opacity: 0.95;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.illustration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
    z-index: 0;
}

.illustration-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.illustration-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    align-self: center;
}

.illustration-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.illustration-content p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.feature-item svg {
    flex-shrink: 0;
}

/* Auth Brand */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4f6ef7, #7c3aed);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px -5px rgba(79, 110, 247, 0.4);
}

.auth-brand h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1d2e;
    margin-bottom: 6px;
}

.auth-brand p {
    font-size: 13px;
    color: #6b7280;
}

/* Tab Switch */
.auth-tabs-two {
    display: flex;
    background: #e8eaf0;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}

.tab-two {
    flex: 1;
    padding: 11px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-two.active {
    background: white;
    color: #4f6ef7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.form-two {
    display: none;
}

.form-two.active {
    display: block;
}

.field-two {
    margin-bottom: 20px;
}

.field-two label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1a1d2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.input-icon-two {
    position: relative;
}

.input-icon-two svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.input-icon-two input,
.input-icon-two select {
    width: 100%;
    padding: 13px 14px 13px 44px;
    background: #f8fafc;
    border: 1.5px solid #e5e7ef;
    border-radius: 14px;
    color: #1a1d2e;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.input-icon-two select {
    appearance: none;
    cursor: pointer;
}

.input-icon-two input:focus,
.input-icon-two select:focus {
    border-color: #4f6ef7;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.hint-two {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 6px;
}

.options-two {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-two {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-two input {
    width: 16px;
    height: 16px;
    accent-color: #4f6ef7;
    margin: 0;
}

.link-two {
    background: none;
    border: none;
    color: #4f6ef7;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.link-two:hover {
    text-decoration: underline;
}

.btn-two {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f6ef7, #7c3aed);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-two:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(79, 110, 247, 0.4);
}

.btn-two:active {
    transform: scale(0.98);
}

.btn-two:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.msg-two {
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: none;
}

.msg-two.show {
    display: block;
}

.msg-two.success {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.msg-two.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.msg-two.loading {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.resend-wrap-two {
    display: none;
    margin-top: 12px;
    text-align: center;
}

/* Swap Hint */
.swap-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: all 0.3s;
}

.swap-hint:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.swap-hint svg {
    animation: shakeX 0.5s ease infinite;
}

@keyframes shakeX {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

/* ============================================ */
/* DASHBOARD LAYOUT                             */
/* ============================================ */

.dash-wrap {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar-brand .icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3);
}

.sidebar-brand span {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
}

.sidebar-nav {
    flex: 1;
    padding: 14px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    color: var(--text2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
    border-radius: 10px;
    margin-bottom: 2px;
}

.nav-item:hover {
    color: var(--text);
    background: var(--surface2);
}

.nav-item.active {
    color: var(--accent);
    background: var(--accent-light);
}

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

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

.sidebar-footer {
    padding: 16px 14px;
    border-top: 1px solid var(--border);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* PERUBAHAN DI SINI: hapus nowrap, tambahkan wrap */
.user-chip .user-name {
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
    /* Ganti: nowrap → normal (bisa pindah baris) */
    word-wrap: break-word;
    /* Paksa kata panjang pindah baris */
    word-break: break-word;
    /* Potong kata jika perlu */
    line-height: 1.5;
    /* Jarak antar baris */
    max-width: 140px;
    /* Maksimal lebar sebelum wrap */
    color: var(--text);
}

.user-chip .user-role {
    font-size: 11px;
    color: var(--text2);
    font-weight: 500;
    white-space: normal;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: rgba(220, 38, 38, 0.07);
    color: #dc2626;
    border: 1.5px solid rgba(220, 38, 38, 0.15);
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.13);
}

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

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.page-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.datetime {
    text-align: right;
}

.date-str {
    font-size: 11px;
    color: var(--text2);
    font-weight: 500;
}

.time-str {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.content {
    padding: 26px;
    flex: 1;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Mobile Backdrop */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 49;
}

.mobile-backdrop.show {
    display: block;
}

/* ============================================ */
/* STAT CARDS & CARDS                           */
/* ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.yellow {
    background: rgba(79, 110, 247, 0.1);
    color: var(--accent);
}

.stat-icon.orange {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent2);
}

.stat-icon.green {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.stat-icon.blue {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.stat-val {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 3px;
    color: var(--text);
}

.stat-label {
    font-size: 12px;
    color: var(--text2);
    font-weight: 600;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
}

/* ============================================ */
/* TABLES                                       */
/* ============================================ */

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--surface2);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
}

tr:hover td {
    background: rgba(79, 110, 247, 0.02);
}

.td-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

/* ============================================ */
/* BADGES                                       */
/* ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge-warning {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-info {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-gray {
    background: var(--surface2);
    color: var(--text2);
    border: 1px solid var(--border);
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */

.btn-primary,
.btn-success,
.btn-warning,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 14px rgba(79, 110, 247, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: #16a34a;
    color: white;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-success:hover {
    background: #15803d;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-warning {
    background: #d97706;
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-warning:hover {
    background: #b45309;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border2);
    background: var(--surface2);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1.5px solid rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.15);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ============================================ */
/* FORM ELEMENTS                                */
/* ============================================ */

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
    background: var(--surface);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

/* ============================================ */
/* FILTER BAR                                   */
/* ============================================ */

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    padding: 9px 13px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

/* ============================================ */
/* CAMERA & LOCATION                            */
/* ============================================ */

.camera-wrap {
    text-align: center;
    padding: 20px 0;
}

#video {
    width: 100%;
    max-width: 380px;
    border-radius: 14px;
    background: #000;
    margin: 0 auto;
    border: 2px solid var(--border);
}

.capture-controls {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

#previewImg {
    max-width: 200px;
    border-radius: 12px;
    border: 2px solid var(--accent);
}

.retake-wrap {
    text-align: center;
    margin-top: 12px;
}

.location-info {
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--surface2);
    border-radius: 9px;
    border: 1px solid var(--border);
    color: var(--text2);
    font-weight: 500;
}

.location-info.found {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.25);
    background: rgba(22, 163, 74, 0.06);
}

.location-info.failed {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.06);
}

.attend-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.attend-actions .btn-success,
.attend-actions .btn-warning {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* ============================================ */
/* PROFILE                                      */
/* ============================================ */

.profile-field {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field .pf-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100px;
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-field .pf-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ============================================ */
/* INFO BOX & EMPTY STATE                       */
/* ============================================ */

.info-box {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.info-box.success {
    background: var(--success-bg);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.info-box.warning {
    background: var(--warning-bg);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.info-box.info {
    background: var(--info-bg);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.info-box.error {
    background: var(--error-bg);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text2);
}

.empty-state .icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ============================================ */
/* SECTION HEADER                               */
/* ============================================ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

/* ============================================ */
/* MESSAGES                                     */
/* ============================================ */

.msg {
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13px;
    display: none;
    margin-top: 12px;
    font-weight: 500;
}

.msg.show {
    display: block;
}

.msg.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.msg.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.msg.loading {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ============================================ */
/* MODAL                                        */
/* ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 24px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1d2e;
}

.close-modal {
    background: #f0f2f8;
    border: 1px solid #e5e7ef;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #6b7280;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #1a1d2e;
    border-color: #d1d5e8;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.timer {
    font-size: 12px;
    color: #dc2626;
    margin-top: 8px;
    text-align: center;
}

.otp-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* ============================================ */
/* MODAL KONFIRMASI                             */
/* ============================================ */

#confirmModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

#confirmModal.open {
    opacity: 1;
    visibility: visible;
}

#confirmModal .modal-container {
    background: white;
    border-radius: 24px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.25s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#confirmModal .modal-header {
    padding: 18px 22px 8px 22px;
    border-bottom: 1px solid #eef2ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#confirmModal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

#confirmModal .modal-header .close-modal {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

#confirmModal .modal-header .close-modal:hover {
    color: #ef4444;
}

#confirmModal .modal-body {
    padding: 20px 22px;
}

#confirmModal .modal-body p {
    margin: 0;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

#confirmModal .modal-footer {
    padding: 12px 22px 20px 22px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #eef2ff;
}

#confirmModal .modal-footer .btn-secondary {
    padding: 8px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.9rem;
}

#confirmModal .modal-footer .btn-secondary:hover {
    background: #e5e7eb;
}

#confirmModal .modal-footer .btn-primary {
    padding: 8px 20px;
    background: #dc2626;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
}

#confirmModal .modal-footer .btn-primary:hover {
    background: #b91c1c;
}

/* ============================================ */
/* DARK MODE TOGGLE BUTTON                      */
/* ============================================ */

.dark-mode-toggle {
    margin-left: auto;
    margin-right: 16px;
}

.dark-mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dark-mode-btn:hover {
    background: var(--hover-bg);
    transform: scale(1.02);
}

.dark-mode-btn svg {
    transition: all 0.3s ease;
}

/* ============================================ */
/* DARK MODE STYLES                             */
/* ============================================ */

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-sidebar: #1a1a2e;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-sidebar: #e2e8f0;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f1f5f9;
}

body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-sidebar: #0f0f1a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-sidebar: #e2e8f0;
    --border-color: #334155;
    --card-bg: #1e293b;
    --input-bg: #334155;
    --hover-bg: #334155;
}

body.dark-mode {
    background: var(--bg-primary);
}

body.dark-mode .sidebar {
    background: var(--bg-sidebar);
}

body.dark-mode .main {
    background: var(--bg-primary);
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .modal-box,
body.dark-mode .modal-container {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.dark-mode .card-title,
body.dark-mode .stat-label,
body.dark-mode .stat-val,
body.dark-mode .profile-field .pf-label,
body.dark-mode .profile-field .pf-val {
    color: var(--text-primary);
}

body.dark-mode .info-box {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .info-box.info {
    background: #1e3a5f;
    border-color: #2c5282;
}

body.dark-mode .info-box.success {
    background: #1a4731;
    border-color: #2f6e47;
}

body.dark-mode .info-box.warning {
    background: #4d3a1a;
    border-color: #7c5c2a;
}

body.dark-mode table.data-table {
    background: var(--card-bg);
}

body.dark-mode table.data-table th {
    background: #0f0f1a;
    color: var(--text-sidebar);
}

body.dark-mode table.data-table td {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode input:focus,
body.dark-mode select:focus {
    border-color: var(--accent);
}

body.dark-mode .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

body.dark-mode .btn-secondary:hover {
    background: var(--hover-bg);
}

body.dark-mode .topbar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .page-title {
    color: var(--text-primary);
}

body.dark-mode .datetime .date-str,
body.dark-mode .datetime .time-str {
    color: var(--text-secondary);
}

body.dark-mode .filter-bar input,
body.dark-mode .filter-bar select {
    background: var(--input-bg);
    color: var(--text-primary);
}

body.dark-mode .badge-success {
    background: #1a4731;
    color: #86efac;
}

body.dark-mode .badge-error {
    background: #4a1a2a;
    color: #fca5a5;
}

body.dark-mode .badge-warning {
    background: #4d3a1a;
    color: #fde047;
}

body.dark-mode .badge-info {
    background: #1e3a5f;
    color: #93c5fd;
}

body.dark-mode .empty-state {
    color: var(--text-secondary);
}

body.dark-mode .modal-overlay .modal-box,
body.dark-mode .modal-overlay .modal-container {
    background: var(--card-bg);
}

body.dark-mode .modal-header {
    border-color: var(--border-color);
}

body.dark-mode .modal-header h3 {
    color: var(--text-primary);
}

body.dark-mode .modal-footer {
    border-color: var(--border-color);
}

body.dark-mode .profile-field {
    border-color: var(--border-color);
}

body.dark-mode .user-chip .user-name {
    color: var(--text-sidebar);
}

body.dark-mode .user-chip .user-role {
    color: #94a3b8;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 900px) {
    .auth-container-two {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-container-two.swapped {
        flex-direction: column;
    }

    .auth-form-side {
        border-radius: 32px 32px 0 0;
    }

    .auth-container-two.swapped .auth-form-side {
        border-radius: 32px 32px 0 0;
    }

    .auth-illustration-side {
        width: 100%;
        border-radius: 0 0 32px 32px;
    }

    .auth-container-two.swapped .auth-illustration-side {
        border-radius: 0 0 32px 32px;
    }

    .illustration-content {
        padding: 40px;
    }

    @keyframes formSlideInRight {
        0% {
            opacity: 0.95;
            transform: translateY(10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes illustrationSlideInLeft {
        0% {
            opacity: 0.95;
            transform: translateY(-10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar {
        transform: translateX(-260px);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .content {
        padding: 16px;
    }

    .auth-form-side {
        padding: 32px 24px;
    }

    .illustration-content h2 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .attend-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .td-actions {
        flex-direction: column;
    }

    .topbar {
        padding: 12px 16px;
    }

    .dark-mode-btn .toggle-text {
        display: none;
    }

    .dark-mode-btn {
        padding: 8px 12px;
    }
}

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

    .auth-form-side {
        padding: 28px 20px;
    }

    .illustration-content {
        padding: 32px 24px;
    }

    .illustration-icon {
        width: 70px;
        height: 70px;
    }

    .illustration-content h2 {
        font-size: 22px;
    }
}