:root {
    --ink: #0f172a;
    --muted: #475569;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-strong: rgba(255, 255, 255, 0.88);
    --line: rgba(255, 255, 255, 0.9);
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at -5% -10%, rgba(125, 211, 252, 0.55), transparent 58%),
        radial-gradient(760px 420px at 105% 0%, rgba(196, 181, 253, 0.5), transparent 55%),
        radial-gradient(700px 380px at 70% 110%, rgba(167, 243, 208, 0.45), transparent 50%),
        #eef4fb;
    background-attachment: fixed;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0f172a !important;
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-light .navbar-nav .nav-link,
.glass-nav .navbar-nav .nav-link {
    color: #0f172a;
    font-weight: 600;
}

.dropdown-menu {
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
}

.dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    color: var(--ink);
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.12);
}

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 64px);
}

.menu-btn {
    width: 42px;
    height: 42px;
    margin-right: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.menu-btn-bar {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 99px;
    background: #0f172a;
}

#sidebarMenu.sidebar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border-right: 1px solid rgba(255, 255, 255, 0.85);
    width: 250px;
    flex: 0 0 250px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 1.25rem 0 2rem;
}

.sidebar-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 1.4rem 0.6rem;
}

#sidebarMenu .nav-link {
    color: #0f172a;
    font-weight: 600;
    border-radius: 12px;
    margin: 4px 12px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sidebarMenu .nav-link:hover,
#sidebarMenu .nav-link:focus,
#sidebarMenu .nav-link.active,
#sidebarMenu .nav-link[aria-current="page"] {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

#sidebarMenu .feather {
    stroke: #334155;
    width: 16px;
    height: 16px;
}

#sidebarMenu .nav-link.active .feather,
#sidebarMenu .nav-link[aria-current="page"] .feather,
#sidebarMenu .nav-link:hover .feather {
    stroke: #1d4ed8;
}

main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(100vh - 64px);
    padding: 28px 22px 48px;
    background: transparent;
}

.app-guest main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 36px 16px 56px;
}

.app-guest main > .container {
    width: min(440px, 100%);
    margin: 0 auto;
}

.app-guest main .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

.app-guest main [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
}

.app-guest main .row.mb-3,
.app-guest main .row.mb-0 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.app-guest main .col-form-label {
    text-align: left !important;
    padding-bottom: 4px;
}

.app-guest main .btn {
    margin-top: 4px;
}

main > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.page-head {
    margin-bottom: 22px;
    color: #0f172a;
}

.page-head h1,
.judul,
main > .container h1,
main > .container .judul {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-head h1 {
    font-size: 2rem;
    margin: 0 0 6px;
}

.page-head p,
.eyebrow {
    margin: 0;
}

.eyebrow {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.judul {
    font-size: 1.45rem;
    margin: 4px 4px 16px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.glass-action {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
    min-height: 112px;
    transition: transform 0.18s ease, background 0.18s ease;
}

.glass-action span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glass-action strong {
    font-size: 1.15rem;
    line-height: 1.3;
}

.glass-action:hover {
    transform: translateY(-3px);
    color: var(--ink);
    background: var(--glass-strong);
}

.tone-blue span { color: #1d4ed8; }
.tone-amber span { color: #b45309; }
.tone-rose span { color: #be123c; }

main .card {
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    color: var(--ink);
    overflow: hidden;
}

main .card-header {
    background: rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    font-weight: 700;
    padding: 16px 20px;
}

main .card-body {
    padding: 20px;
}

main .card h2,
main .card h5,
main .card-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.step-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.step-list li::marker {
    font-weight: 700;
    color: #1d4ed8;
}

main .table-responsive,
main .table {
    color: var(--ink);
}

main .table-responsive {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 8px;
}

main .table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.28);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.42);
}

main .table thead th {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

main .table td,
main .table th {
    vertical-align: middle;
    padding: 12px 10px;
}

main .form-control,
main input[type="text"],
main input[type="email"],
main input[type="password"],
main input[type="number"],
main input[type="date"],
main input[type="Date"],
main select,
main textarea {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    min-height: 44px;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

main textarea {
    min-height: 120px;
    padding: 10px 12px;
}

main .form-control:focus,
main input:focus,
main select:focus,
main textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

main label,
main .col-form-label,
main strong {
    font-weight: 600;
    color: #1e293b;
}

main .btn {
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    padding: 8px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

main .btn-primary,
main .btn-info {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
}

main .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1f2937;
}

main .btn-danger {
    background: linear-gradient(135deg, #e11d48, #fb7185);
    color: #fff;
}

main .btn-success {
    background: linear-gradient(135deg, #059669, #34d399);
    color: #fff;
}

main .btn-link {
    background: transparent;
    box-shadow: none;
    color: #1d4ed8;
}

main .input-group {
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 420px;
    margin-bottom: 16px;
}

main .input-group .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
}

main dt {
    font-weight: 700;
    color: #334155;
    margin-top: 12px;
}

main dd {
    margin-bottom: 0;
    color: var(--ink);
}

main .card form br {
    display: none;
}

main .card form label,
main .card form h5 {
    display: block;
    margin-top: 14px;
}

.stat-grid,
.dash-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: #0f172a;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
}

.stat-card span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.stat-card strong {
    font-size: 1.8rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-card:hover {
    background: var(--glass-strong);
    color: #0f172a;
}

.bar-row + .bar-row {
    margin-top: 12px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.bar-fill.tone-amber {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: #0f172a;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.list-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.list-row span {
    display: flex;
    flex-direction: column;
}

.list-row small,
.list-row em,
.empty-note {
    color: #64748b;
    font-style: normal;
    font-size: 0.82rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
}

.chip b {
    margin-left: 6px;
    color: #1d4ed8;
}

.list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.list-head .page-head {
    margin-bottom: 0;
}

.list-head .btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.record strong {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
}

.record p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 0.86rem;
}

.row-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
}

.row-actions .btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    box-shadow: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
    margin: 0;
}

.detail-grid > div {
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.detail-grid .span-2 {
    grid-column: 1 / -1;
}

.detail-grid dt {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.detail-grid dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.form-shell {
    max-width: 960px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.form-grid .span-2,
.form-section {
    grid-column: 1 / -1;
}

.form-section {
    margin: 4px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    font-size: 1rem;
    font-weight: 700;
}

.form-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.field label,
.field strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

main .card:has(table),
main .table-responsive {
    overflow-x: auto;
}

main table.table {
    min-width: 640px;
}

.pagination {
    flex-wrap: wrap;
    gap: 4px;
}

img,
svg,
video {
    max-width: 100%;
}

@media (max-width: 1100px) {
    .stat-grid,
    .action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    #sidebarMenu.sidebar {
        position: fixed;
        z-index: 1040;
        top: 64px;
        left: 0;
        width: min(280px, 86vw);
        flex: none;
        height: calc(100vh - 64px);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow);
    }

    #sidebarMenu.sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 64px 0 0 0;
        z-index: 1035;
        background: rgba(15, 23, 42, 0.35);
    }

}

@media (max-width: 767.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 12px;
        left: 12px;
        padding: 8px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--shadow);
    }
}

@media (max-width: 760px) {
    .action-grid,
    .stat-grid,
    .dash-grid,
    .detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .list-head,
    .record,
    .detail-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .record .row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .page-head h1 {
        font-size: 1.55rem;
    }

    main,
    .app-guest main {
        padding: 18px 14px 36px;
    }

    main .input-group {
        max-width: none;
    }

    main .card-body {
        padding: 16px;
    }
}
