/* ============================================================================
   event-saas3.css — skin frontend "SaaS Brurce 3" untuk aplikasi Event GPIB
   Dibuat untuk replika dev event.brurce.my.id (29 Okt 2026).
   Hanya lapisan tampilan: TIDAK mengubah markup form, nama field, atau aksi.
   Dipakai oleh: resources/views/auth/index, participant/index, admin/app
   Palet & gaya mengikuti ~/saas-brurce3 (MDB UI Kit 6.2.0): primary #1266f1.
   ========================================================================== */

:root {
    --s3-primary: #1266f1;
    --s3-primary-hover: #0b5ed7;
    --s3-primary-dark: #0d47a1;
    --s3-primary-soft: #e8f0fe;
    --s3-primary-softer: #f5f8ff;
    --s3-ink: #23272f;
    --s3-muted: #6b7280;
    --s3-line: #edf0f4;
    --s3-bg: #fbfbfb;
    --s3-white: #ffffff;
    --s3-radius: 14px;
    --s3-radius-sm: 10px;
    --s3-shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
    --s3-shadow-sm: 0 2px 5px 0 rgba(0, 0, 0, .05), 0 2px 10px 0 rgba(0, 0, 0, .05);
    --s3-shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
    --s3-shadow-lg: 0 18px 50px rgba(13, 71, 161, .16);
    --s3-sidebar-w: 268px;
}

/* ---------------------------------------------------------------- 1. DASAR */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background-color: var(--s3-bg);
    color: var(--s3-ink);
    font-size: .95rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -.01em;
    color: #1b1f27;
}

a {
    color: var(--s3-primary);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--s3-primary-hover);
    text-decoration: none;
}

hr {
    border-color: var(--s3-line);
    opacity: 1;
}

.text-muted {
    color: var(--s3-muted) !important;
}

/* ------------------------------------------------------------- 2. TOMBOL */
.btn {
    border-radius: var(--s3-radius-sm);
    font-weight: 500;
    letter-spacing: .01em;
    padding: .5rem 1.05rem;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    border-width: 1px;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus {
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .18);
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--s3-primary);
    border-color: var(--s3-primary);
    box-shadow: 0 4px 12px rgba(18, 102, 241, .24);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--s3-primary-hover) !important;
    border-color: var(--s3-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(18, 102, 241, .3);
}

.bg-primary,
.btn-primary.bg-primary {
    background-color: var(--s3-primary) !important;
}

.text-primary {
    color: var(--s3-primary) !important;
}

.border-primary {
    border-color: var(--s3-primary) !important;
}

.btn-outline-primary {
    color: var(--s3-primary);
    border-color: rgba(18, 102, 241, .45);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
    border-color: var(--s3-primary);
}

.btn-outline-success,
.btn-success {
    border-radius: var(--s3-radius-sm);
}

.btn-light {
    background-color: #f4f6fa;
    border-color: #e6eaf1;
    color: #374151;
}

.btn-light:hover {
    background-color: #e9eef6;
    color: var(--s3-primary-dark);
}

.btn-lg {
    padding: .75rem 1.4rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-sm {
    padding: .3rem .7rem;
    font-size: .8rem;
    border-radius: 8px;
}

.btn-dark {
    background: #263238;
    border-color: #263238;
}

/* -------------------------------------------------------------- 3. KARTU */
.card {
    border: 0;
    border-radius: var(--s3-radius);
    box-shadow: var(--s3-shadow-sm);
    transition: box-shadow .25s ease, transform .25s ease;
    background-color: var(--s3-white);
}

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--s3-line);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-top-left-radius: var(--s3-radius) !important;
    border-top-right-radius: var(--s3-radius) !important;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: .35rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--s3-line);
}

.shadow-sm {
    box-shadow: var(--s3-shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--s3-shadow-lg) !important;
}

.shadow,
.shadow-2 {
    box-shadow: var(--s3-shadow-md) !important;
}

/* --------------------------------------------------------------- 4. FORM */
.form-control,
.form-select,
.custom-select,
select.form-control {
    border-radius: var(--s3-radius-sm);
    border: 1px solid #e2e7ef;
    padding: .55rem .85rem;
    font-size: .925rem;
    color: var(--s3-ink);
    background-color: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control:focus,
.form-select:focus,
.custom-select:focus {
    border-color: var(--s3-primary);
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .12);
}

.form-control::placeholder {
    color: #9aa3b2;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: var(--s3-radius-sm);
}

.form-floating > label {
    color: var(--s3-muted);
    font-size: .9rem;
}

.input-group-text {
    border-radius: var(--s3-radius-sm);
    background-color: #f4f6fa;
    border-color: #e2e7ef;
}

.form-check-input:checked {
    background-color: var(--s3-primary);
    border-color: var(--s3-primary);
}

.form-label {
    font-weight: 500;
    color: #46505f;
    font-size: .875rem;
}

/* Select2 (dipakai banyak halaman) */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: var(--s3-radius-sm) !important;
    border: 1px solid #e2e7ef !important;
    min-height: 42px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--s3-primary) !important;
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .12) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--s3-primary) !important;
}

/* -------------------------------------------------------------- 5. TABEL */
.table {
    margin-bottom: 0;
    color: var(--s3-ink);
}

.table > :not(:first-child) {
    border-top: 1px solid var(--s3-line);
}

.table thead th {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .06em;
    font-weight: 700;
    color: #4b5563;
    background-color: var(--s3-primary-softer);
    border-bottom: 1px solid var(--s3-line);
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody td {
    vertical-align: middle;
    border-color: var(--s3-line);
    font-size: .9rem;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: #f7faff;
}

.table-sm > :not(caption) > * > * {
    padding: .45rem .5rem;
}

.table-responsive {
    border-radius: var(--s3-radius);
}

/* DataTables */
.dataTables_wrapper {
    font-size: .9rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: .35rem 0;
}

.dataTables_filter input {
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    padding: 6px 12px;
    margin-left: .4rem;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--s3-primary);
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .12);
}

.dt-buttons .btn,
.dt-buttons .dt-button {
    border-radius: 8px !important;
    border: 1px solid #e2e7ef !important;
    background: #fff !important;
    color: #374151 !important;
    font-size: .8rem !important;
    padding: .3rem .7rem !important;
    margin-right: .35rem;
}

.dt-buttons .btn:hover,
.dt-buttons .dt-button:hover {
    background: var(--s3-primary-soft) !important;
    color: var(--s3-primary-dark) !important;
}

.page-link {
    border: 0;
    color: var(--s3-primary);
    border-radius: 8px !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: var(--s3-primary);
    border-color: var(--s3-primary);
}

/* ------------------------------------------------- 6. NAVBAR PESERTA (S3) */
.s3-navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--s3-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    padding: .55rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.s3-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-right: 1rem;
}

.s3-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--s3-primary) 0%, var(--s3-primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 6px 14px rgba(18, 102, 241, .32);
    flex: 0 0 auto;
}

.s3-brand-text {
    line-height: 1.1;
}

.s3-brand-text .s3-brand-title {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: #1b1f27;
    letter-spacing: .01em;
}

.s3-brand-text .s3-brand-sub {
    display: block;
    font-size: .72rem;
    color: var(--s3-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.s3-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s3-nav-links {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}

.s3-nav-links .nav-link {
    color: #46505f;
    font-weight: 500;
    font-size: .875rem;
    border-radius: 9px;
    padding: .4rem .7rem !important;
}

.s3-nav-links .nav-link:hover,
.s3-nav-links .nav-link.active {
    background: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
}

.s3-lang {
    border: 1px solid #e2e7ef;
    border-radius: 9px;
    background: #fff;
    color: #374151;
    font-size: .8rem;
    padding: .32rem .55rem;
    min-width: 92px;
}

.s3-avatar-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .35rem;
    border-radius: 999px;
    transition: background .18s ease;
}

.s3-avatar-link:hover {
    background: #f4f6fa;
}

.s3-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--s3-primary-soft);
}

.s3-avatar-name {
    font-size: .8rem;
    font-weight: 600;
    color: #1b1f27;
    line-height: 1;
}

.s3-avatar-role {
    font-size: .68rem;
    color: var(--s3-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Sidebar peserta (partial lama, di-restyle) */
.s3-sidebar-wrap .list-group-item {
    border: 0;
    border-radius: 10px !important;
    margin-bottom: .25rem;
    padding: .55rem .8rem;
    background: transparent;
    transition: background .18s ease, color .18s ease;
}

.s3-sidebar-wrap .list-group-item a {
    color: #3f4753;
    font-size: .885rem;
    font-weight: 500;
}

.s3-sidebar-wrap .list-group-item:hover {
    background: #f2f6ff;
}

.s3-sidebar-wrap .list-group-item:hover a {
    color: var(--s3-primary-dark);
}

.s3-sidebar-wrap .list-group-item.active {
    background: linear-gradient(135deg, var(--s3-primary) 0%, #1a74ff 100%) !important;
    box-shadow: 0 6px 16px rgba(18, 102, 241, .28);
}

.s3-sidebar-wrap .list-group-item.active a,
.s3-sidebar-wrap .list-group-item.active i {
    color: #fff !important;
}

.s3-sidebar-wrap .card {
    border-radius: var(--s3-radius);
}

/* --------------------------------------------------- 7. ADMIN (S3 shell) */
.s3-admin-body {
    background-color: #f6f8fb;
}

.s3-sidebar {
    background: var(--s3-white) !important;
    border-right: 1px solid var(--s3-line);
    box-shadow: none !important;
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 1020;
}

.s3-sidebar-head {
    background: linear-gradient(135deg, var(--s3-primary-dark) 0%, var(--s3-primary) 100%) !important;
    height: 118px !important;
    border-radius: 0 0 18px 0;
    margin-bottom: 1rem;
    box-shadow: 0 10px 26px rgba(13, 71, 161, .28);
    flex-direction: column;
    gap: .15rem;
}

.s3-sidebar-head h4 {
    font-size: .95rem !important;
    letter-spacing: .14em;
    margin-bottom: 0;
    color: #fff;
}

.s3-sidebar-head .s3-sidebar-sub {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.s3-sidebar small.text-muted {
    font-weight: 700;
    letter-spacing: .1em;
}

.s3-sidebar .nav-link {
    color: #3f4753;
    border-radius: 9px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.s3-sidebar .nav-link:hover {
    background: #f2f6ff;
    color: var(--s3-primary-dark) !important;
    transform: translateX(2px);
}

.s3-sidebar .nav-link.bg-primary {
    background: linear-gradient(135deg, var(--s3-primary) 0%, #1a74ff 100%) !important;
    box-shadow: 0 6px 16px rgba(18, 102, 241, .26);
}

.s3-admin-navbar {
    background: rgba(255, 255, 255, .95) !important;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--s3-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
    padding: .45rem 1rem;
    z-index: 1030;
}

.s3-admin-navbar .navbar-brand {
    font-weight: 700;
    color: #1b1f27;
    letter-spacing: .01em;
}

.s3-admin-content {
    padding: 1.25rem;
}

.s3-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.s3-page-title small {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: var(--s3-muted);
    letter-spacing: 0;
    margin-top: .15rem;
}

/* ------------------------------------------------------ 8. HALAMAN LOGIN */
.s3-auth-body {
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(18, 102, 241, .18), transparent 62%),
        radial-gradient(900px 480px at 100% 0%, rgba(13, 71, 161, .16), transparent 60%),
        linear-gradient(180deg, #f7f9ff 0%, #f2f5fb 55%, #eef2f9 100%);
    min-height: 100vh;
}

.s3-auth-topbar {
    display: flex;
    justify-content: flex-end;
    padding: .75rem 1rem;
}

.s3-auth-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2.5rem;
    min-height: calc(100vh - 64px);
}

.s3-auth-hero {
    padding: 1rem 2rem 1rem 0;
}

.s3-auth-logo {
    width: min(320px, 82%);
    display: block;
    margin-bottom: 1.5rem;
}

.s3-auth-hero h1 {
    font-size: 2.15rem;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.s3-auth-hero p {
    color: #546070;
    font-size: 1rem;
    max-width: 46ch;
    margin-bottom: 1.25rem;
}

.s3-auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.s3-auth-points li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .9rem;
    color: #3f4753;
}

.s3-auth-points i {
    color: var(--s3-primary);
    margin-top: .15rem;
}

.s3-auth-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(13, 71, 161, .13), 0 2px 6px rgba(16, 24, 40, .04);
    padding: 2rem 1.75rem;
    border: 1px solid rgba(18, 102, 241, .07);
}

.s3-auth-card h2 {
    font-size: 1.35rem;
    margin-bottom: .25rem;
}

.s3-auth-card .s3-auth-sub {
    color: var(--s3-muted);
    font-size: .875rem;
    margin-bottom: 1.35rem;
}

.s3-auth-footer {
    text-align: center;
    color: var(--s3-muted);
    font-size: .78rem;
    padding: 1rem 0 1.5rem;
}

/* Kartu lama di dalam form (signIn/signUp) dibikin "menyatu" dengan s3-auth-card */
.s3-auth-card .card {
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.s3-auth-card .card:hover {
    box-shadow: none !important;
    transform: none;
}

/* ------------------------------------------------------ 9. LAIN-LAIN */
.alert {
    border: 0;
    border-radius: 12px;
    font-size: .885rem;
    box-shadow: var(--s3-shadow-xs);
}

.alert-success {
    background: #e8f7ee;
    color: #17683a;
}

.alert-danger {
    background: #fdecec;
    color: #9b1c1c;
}

.alert-warning {
    background: #fff6e5;
    color: #8a5b00;
}

.alert-info {
    background: #e9f3ff;
    color: #114b8f;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .35em .75em;
}

.text-bg-light {
    background-color: #fff !important;
    color: var(--s3-primary-dark) !important;
    box-shadow: var(--s3-shadow-xs);
}

.modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
}

.modal-header {
    border-bottom: 1px solid var(--s3-line);
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--s3-line);
}

.dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .14);
    padding: .4rem;
    font-size: .88rem;
}

.dropdown-item {
    border-radius: 9px;
    padding: .5rem .7rem;
}

.dropdown-item:hover {
    background: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
}

.progress {
    border-radius: 999px;
    background-color: #eef1f6;
    height: .55rem;
}

.progress-bar {
    border-radius: 999px;
    background-color: var(--s3-primary);
}

.s3-footer {
    background: #0d1526;
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
    padding: 1rem 0;
    margin-top: 2rem;
}

.s3-footer a {
    color: rgba(255, 255, 255, .78);
}

.s3-footer a:hover {
    color: #fff;
}

/* Scrollbar halus (Chromium/Edge/Safari) */
* {
    scrollbar-width: thin;
    scrollbar-color: #d3dae6 transparent;
}

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

::-webkit-scrollbar-thumb {
    background: #d3dae6;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #b9c3d3;
    background-clip: content-box;
}

/* -------------------------------------------------------- 10. RESPONSIF */
@media (max-width: 991.98px) {
    .s3-auth-shell {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: .5rem;
        text-align: left;
    }

    .s3-auth-hero {
        padding: 0;
        order: 2;
    }

    .s3-auth-hero h1 {
        font-size: 1.5rem;
    }

    .s3-auth-points {
        display: none;
    }

    .s3-auth-card {
        order: 1;
        padding: 1.5rem 1.15rem;
        border-radius: 18px;
    }

    .s3-navbar .s3-brand-sub {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: .92rem;
    }

    .s3-auth-logo {
        width: 70%;
    }

    .s3-navbar {
        padding: .4rem 0;
    }

    .s3-brand-text .s3-brand-title {
        font-size: .85rem;
    }

    .s3-avatar-name,
    .s3-avatar-role {
        display: none;
    }

    .card-body {
        padding: 1rem;
    }

    .s3-admin-content {
        padding: .85rem;
    }

    .table thead th {
        font-size: .7rem;
    }
}

/* Cegah luapan horizontal dari tabel lebar di layar kecil */
@media (max-width: 767.98px) {
    .table-responsive,
    .dataTables_wrapper {
        overflow-x: auto;
    }
}

/* ------------------------------------------------- 11. PENYESUAIAN VIEW */
/* View auth memakai container + vh-100 sendiri; di dalam kartu SaaS3 dinetralkan */
.s3-auth-card .container,
.s3-auth-card .container-fluid {
    min-height: 0 !important;
    padding-left: 0;
    padding-right: 0;
}

.s3-auth-card .vh-100 {
    min-height: 0 !important;
    height: auto !important;
}

.s3-auth-card .card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.s3-auth-card .card-title {
    font-size: 1.3rem;
    color: #1b1f27 !important;
}

/* Sidebar admin: tinggi penuh dan scroll sendiri */
.s3-sidebar {
    max-height: 100vh;
    overflow-y: auto;
}

/* Kerangka konten admin (BS4) */
.s3-admin-body .border-bottom {
    border-color: var(--s3-line) !important;
}

.s3-admin-body .bg-light {
    background-color: #f6f8fb !important;
}

/* ------------------------------------------------- 12. NAVBAR RINGKAS & MENU HP */
.s3-navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: .75rem;
}

.s3-navbar .s3-lang {
    padding: .26rem .5rem;
    font-size: .78rem;
    height: auto;
    min-width: 84px;
}

.s3-navbar .btn-light {
    padding: .3rem .55rem;
}

@media (max-width: 767.98px) {
    /* Sidebar admin jadi panel geser di HP */
    .s3-sidebar {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 282px;
        max-width: 86vw;
        height: 100vh;
        z-index: 1045;
        transform: translateX(-102%);
        transition: transform .24s ease;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
        border-right: 0;
    }

    body.s3-menu-open .s3-sidebar {
        transform: translateX(0);
    }

    body.s3-menu-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        z-index: 1040;
    }

    .s3-admin-content {
        padding: .85rem !important;
    }
}

/* ------------------------------------------------- 13. NAVBAR SEJAJAR */
/* Tanpa aturan ini brand dan menu menumpuk (header jadi ~100 px) */
.s3-navbar > .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    min-height: 56px;
}

.s3-navbar .s3-nav-links {
    margin-left: auto;
    flex-wrap: wrap;
}

.s3-navbar .navbar-brand {
    flex: 0 1 auto;
    min-width: 0;
}

.s3-navbar .s3-brand-text {
    min-width: 0;
}

.s3-navbar .s3-brand-title,
.s3-navbar .s3-brand-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .s3-navbar > .container-fluid {
        gap: .35rem .5rem;
    }

    .s3-navbar .s3-chip {
        display: none !important;
    }
}
