@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-solid: #050b14;
    --line: rgba(255, 255, 255, 0.10);
    --muted: #94a3b8;
    --text: #e2e8f0;
    --white: #ffffff;
    --emerald: #00ff87;
    --emerald-soft: rgba(0, 255, 135, 0.12);
    --red: #fb7185;
    --yellow: #fbbf24;
    --blue: #38bdf8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 255, 135, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 28%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        var(--bg);
    background-size: auto, auto, 34px 34px, 34px 34px, auto;
    color: var(--text);
    min-height: 100vh;
}

input,
textarea,
select,
button {
    font-family: 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* =========================
   LOGO REPORTIFY FIX
   ========================= */

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none !important;
    transform-origin: center;
    filter:
        drop-shadow(0 0 8px rgba(0, 255, 135, 0.28))
        drop-shadow(0 0 16px rgba(0, 255, 135, 0.12));
}

.brand-mark.small .brand-logo {
    transform: none !important;
}

.brand-word {
    font-weight: 900;
    letter-spacing: 0.22em;
    color: white;
    line-height: 1;
}

/* =========================
   NAVIGATION
   ========================= */

.nav-link,
.nav-active {
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link {
    color: #94a3b8;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.nav-active {
    color: #020617;
    background: var(--emerald);
    box-shadow: 0 0 25px rgba(0, 255, 135, 0.25);
}

/* =========================
   BUTTON
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    color: #020617;
    background: var(--emerald);
    box-shadow: 0 0 28px rgba(0, 255, 135, 0.20);
}

.btn-primary:hover {
    background: #54ffad;
    transform: translateY(-1px);
}

.btn-secondary {
    color: white;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    border-color: rgba(0, 255, 135, 0.4);
    background: rgba(0, 255, 135, 0.08);
}

.btn-danger {
    color: #fda4af;
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(251, 113, 133, 0.24);
}

.btn-danger:hover {
    color: white;
    background: rgba(225, 29, 72, 0.28);
}

/* =========================
   PANEL & CARD
   ========================= */

.panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.84));
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    border-radius: 26px;
}

.stat-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.86));
    border-radius: 24px;
    padding: 22px;
    min-height: 130px;
    transition: 0.2s ease;
}

.stat-card span {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    color: white;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 135, 0.26);
}

/* =========================
   TABLE
   ========================= */

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th {
    text-align: left;
    padding: 16px 18px;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(2, 6, 23, 0.62);
    border-bottom: 1px solid var(--line);
}

.data-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 14px;
    vertical-align: top;
}

.data-table tr:hover td {
    background: rgba(0, 255, 135, 0.035);
}

.empty-cell {
    text-align: center;
    color: #64748b !important;
    padding: 35px !important;
    font-family: 'JetBrains Mono', monospace;
}

.table-action {
    color: #5eead4;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.table-action:hover {
    color: white;
    text-decoration: underline;
}

.table-action.danger {
    color: #fb7185;
}

/* =========================
   BADGE
   ========================= */

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid transparent;
    font-family: 'JetBrains Mono', monospace;
}

.badge-green {
    color: #86efac;
    background: rgba(22, 101, 52, 0.23);
    border-color: rgba(34, 197, 94, 0.24);
}

.badge-yellow {
    color: #fde68a;
    background: rgba(113, 63, 18, 0.25);
    border-color: rgba(245, 158, 11, 0.24);
}

.badge-red {
    color: #fda4af;
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(244, 63, 94, 0.28);
}

.badge-blue {
    color: #7dd3fc;
    background: rgba(12, 74, 110, 0.25);
    border-color: rgba(14, 165, 233, 0.25);
}

.badge-gray {
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.35);
    border-color: rgba(148, 163, 184, 0.18);
}

/* =========================
   SEARCH
   ========================= */

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 18px;
    padding: 8px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid var(--line);
}

.search-input {
    width: 100%;
    background: transparent;
    outline: none;
    color: white;
    padding: 10px 12px;
    font-size: 14px;
    border: none;
}

.search-input::placeholder {
    color: #64748b;
}

.search-button {
    border-radius: 13px;
    background: var(--emerald);
    color: #020617;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 900;
    border: none;
    cursor: pointer;
}

.search-clear {
    color: #fb7185;
    font-size: 12px;
    font-weight: 800;
    padding-right: 8px;
    text-decoration: none;
}

/* =========================
   PAGINATION
   ========================= */

.pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-link {
    min-width: 42px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #94a3b8;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.page-link:hover,
.page-link.active {
    color: #020617;
    background: var(--emerald);
    border-color: var(--emerald);
}

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

.form-control {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(2, 6, 23, 0.72);
    color: white;
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    font-size: 14px;
}

.form-control:focus {
    border-color: rgba(0, 255, 135, 0.50);
    box-shadow: 0 0 0 4px rgba(0, 255, 135, 0.08);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.file-preview {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 135, 0.24);
    background: rgba(2, 6, 23, 0.72);
}

/* =========================
   PROGRAM CARD
   ========================= */

.program-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.9));
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
    transition: 0.2s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 135, 0.30);
}

.program-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(0, 255, 135, 0.22);
    background: rgba(2, 6, 23, 0.72);
}

/* =========================
   AUTH
   ========================= */

.auth-card {
    width: 100%;
    max-width: 440px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.80), rgba(2, 6, 23, 0.92));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    padding: 34px;
}

/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff87;
}

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

@media (max-width: 768px) {
    .brand-mark {
        width: 92px;
        height: 92px;
    }

    .brand-mark.small {
        width: 60px;
        height: 60px;
    }

    .brand-logo {
        transform: scale(2.05);
    }

    .brand-mark.small .brand-logo {
        transform: scale(2.2);
    }

    .brand-word {
        letter-spacing: 0.12em;
    }

    .data-table {
        min-width: 820px;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-button {
        width: 100%;
    }
}

/* =========================
   GLOBAL LOGO OVERRIDE
   Fix agar logo tidak membesar aneh di semua halaman
   ========================= */

header .brand-mark.small {
    width: 42px !important;
    height: 42px !important;
}

header .brand-logo,
.auth-card .brand-logo,
footer .brand-logo {
    transform: none !important;
}

.auth-card .brand-mark {
    width: 92px !important;
    height: 92px !important;
}

footer .brand-mark.small {
    width: 44px !important;
    height: 44px !important;
}

/* =========================
   GLOBAL APP NAVBAR
   Navbar bersih, simetris, tanpa nama/role/saldo di kanan
   ========================= */

.app-navbar-shell,
.app-navbar-shell *,
.app-center-nav,
.app-center-nav *,
.app-navbar .btn,
.app-navbar .brand-mark,
.app-navbar .brand-logo {
    animation: none !important;
}

.app-navbar {
    min-height: 72px;
    position: relative;
}

.app-navbar-left,
.app-navbar-right {
    position: relative;
    z-index: 2;
    min-width: 190px;
    display: flex;
    align-items: center;
}

.app-navbar-left {
    justify-content: flex-start;
}

.app-navbar-right {
    justify-content: flex-end;
}

.app-center-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(16px);
}

.app-center-nav .nav-link,
.app-center-nav .nav-active {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.app-navbar .brand-logo,
.app-navbar .brand-mark.small .brand-logo {
    transform: none !important;
}

.app-navbar .btn:hover,
.app-center-nav .nav-link:hover,
.app-center-nav .nav-active:hover {
    transform: none !important;
}

@media (max-width: 1180px) {
    .app-center-nav {
        gap: 6px;
    }

    .app-center-nav .nav-link,
    .app-center-nav .nav-active {
        padding: 8px 9px;
        font-size: 12px;
    }

    .app-navbar-left,
    .app-navbar-right {
        min-width: 150px;
    }
}

@media (max-width: 980px) {
    .app-navbar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .app-center-nav {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        display: flex !important;
    }

    .app-navbar-left,
    .app-navbar-right {
        min-width: auto;
    }
}
