/**
 * DosenKampus AI - Pure Tailwind Compatible Internal Design System
 * 
 * Clean, lightweight, and structured to work harmoniously with Tailwind CSS.
 * Zero Bootstrap Dependency.
 */

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

:root {
    --bw-dark-900: #0f172a; /* Academic Deep Navy */
    --bw-dark-800: #172554; /* Royal Navy Dark */
    --bw-dark-700: #1e3a8a; /* Academic Royal Navy */
    
    --bw-slate-50: #f8fafc;
    --bw-slate-100: #f0f4f8;
    --bw-slate-200: #e2e8f0;
    --bw-slate-300: #cbd5e1;
    --bw-slate-400: #94a3b8;
    --bw-slate-500: #64748b;
    --bw-slate-700: #334155;
    --bw-slate-900: #0f172a;

    --bw-primary: #1e3a8a; /* Academic Royal Navy */
    --bw-primary-hover: #172554;
    --bw-accent: #2563eb;

    --bw-success: #10b981;
    --bw-warning: #f59e0b;
    --bw-danger: #ef4444;
    --bw-info: #2563eb;

    --radius-14: 14px;
    --radius-15: 15px;
    --radius-16: 16px;
    --radius-20: 20px;
    --container-max-width: 1220px;
}

/* ============================================================
   TYPOGRAPHY & GLOBAL RESETS
   ============================================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--bw-slate-900);
    letter-spacing: -0.011em;
    line-height: 1.6;
    background-color: var(--bw-slate-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.font-monospace, code, kbd, pre {
    font-family: 'JetBrains Mono', monospace !important;
}

/* ============================================================
   GRID & CONTAINER UTILITY (FLEX/GRID BRIDGE)
   ============================================================ */
.container, .bp-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.g-0 { margin-left: 0; margin-right: 0; }
.g-0 > * { padding-left: 0; padding-right: 0; }
.g-2 { margin-left: -0.25rem; margin-right: -0.25rem; }
.g-2 > * { padding-left: 0.25rem; padding-right: 0.25rem; }
.g-3 { margin-left: -0.5rem; margin-right: -0.5rem; }
.g-3 > * { padding-left: 0.5rem; padding-right: 0.5rem; }
.g-4 { margin-left: -0.75rem; margin-right: -0.75rem; }
.g-4 > * { padding-left: 0.75rem; padding-right: 0.75rem; }

.col-12 { width: 100%; }
.col-6  { width: 50%; }
.col-4  { width: 33.333333%; }
.col-3  { width: 25%; }

@media (min-width: 576px) {
    .col-sm-6 { width: 50%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333333%; }
    .col-md-8 { width: 66.666667%; }
    .col-md-9 { width: 75%; }
    .flex-md-row { flex-direction: row !important; }
    .align-items-md-center { align-items: center !important; }
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .col-lg-2 { width: 16.666667%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-5 { width: 41.666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333333%; }
    .col-lg-8 { width: 66.666667%; }
    .col-lg-10 { width: 83.333333%; }
    .col-lg-12 { width: 100%; }
    .offset-lg-1 { margin-left: 8.333333%; }
}

@media (min-width: 1200px) {
    .col-xl-3 { width: 25%; }
    .col-xl-4 { width: 33.333333%; }
    .col-xl-6 { width: 50%; }
}

/* Flex & Spacing Helpers */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-start { justify-content: flex-start !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Text & Colors */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-uppercase { text-transform: uppercase !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }
.small { font-size: 0.85rem !important; }
.fs-1 { font-size: 2.25rem !important; }
.fs-2 { font-size: 1.75rem !important; }
.fs-3 { font-size: 1.5rem !important; }
.fs-4 { font-size: 1.25rem !important; }
.fs-5 { font-size: 1.1rem !important; }
.fs-6 { font-size: 0.95rem !important; }

.text-dark { color: var(--bw-slate-900) !important; }
.text-muted { color: var(--bw-slate-500) !important; }
.text-white { color: #ffffff !important; }
.text-success { color: var(--bw-success) !important; }
.text-danger { color: var(--bw-danger) !important; }
.text-warning { color: var(--bw-warning) !important; }
.text-info { color: var(--bw-info) !important; }
.text-primary { color: var(--bw-primary) !important; }

.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: var(--bw-slate-50) !important; }
.bg-dark { background-color: var(--bw-dark-900) !important; }
.bg-hitam-utama { background-color: var(--bw-primary) !important; color: #ffffff !important; }
.bg-success-subtle { background-color: #ecfdf5 !important; }
.bg-success { background-color: var(--bw-success) !important; color: #ffffff !important; }

.border { border: 1px solid var(--bw-slate-200) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--bw-slate-200) !important; }
.border-bottom { border-bottom: 1px solid var(--bw-slate-200) !important; }
.border-end { border-right: 1px solid var(--bw-slate-200) !important; }
.border-start { border-left: 1px solid var(--bw-slate-200) !important; }
.border-success { border-color: var(--bw-success) !important; }
.border-success-subtle { border-color: #a7f3d0 !important; }

.rounded-14 { border-radius: 14px !important; }
.rounded-15 { border-radius: 15px !important; }
.rounded-16 { border-radius: 16px !important; }
.rounded-20 { border-radius: 20px !important; }
.rounded-start-15 { border-top-left-radius: 15px !important; border-bottom-left-radius: 15px !important; }
.rounded-end-15 { border-top-right-radius: 15px !important; border-bottom-right-radius: 15px !important; }
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.03) !important; }

/* Spacing Helpers */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.pe-4 { padding-right: 1.5rem !important; }

/* ============================================================
   CARDS & SURFACES (MODERN SLATE MIST)
   ============================================================ */
.card, .bp-card {
    background-color: #ffffff;
    border: 1px solid var(--bw-slate-200);
    border-radius: 16px;
    color: var(--bw-slate-900);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 6px 16px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    border-color: var(--bw-slate-300);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--bw-slate-100);
    padding: 1rem 1.25rem;
    font-weight: 700;
}

.card-body {
    padding: 1.25rem;
}

/* ============================================================
   BUTTONS (ENTERPRISE MONOCHROME)
   ============================================================ */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.62rem 1.35rem;
    border-radius: 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   KHUSUS TOMBOL -> BIRU NAVY (Academic Royal Navy #1e3a8a)
   Teks & heading tetap hitam pekat / dark slate #0f172a
   ============================================================ */
button.bg-slate-900,
button.bg-black,
a.bg-slate-900,
a.bg-black,
.btn-hitam, 
.btn-primary,
.btn-dark,
.btn-slate-900,
button[type="submit"],
input[type="submit"] {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}

button.bg-slate-900:hover,
button.bg-black:hover,
a.bg-slate-900:hover,
a.bg-black:hover,
.btn-hitam:hover, 
.btn-primary:hover,
.btn-dark:hover,
.btn-slate-900:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #172554 !important;
    border-color: #172554 !important;
    color: #ffffff !important;
}

/* Warna teks default */
.text-slate-900 {
    color: #0f172a;
}
.text-white {
    color: #ffffff !important;
}

.btn-putih, .btn-light {
    background: #ffffff !important;
    color: var(--bw-slate-900) !important;
    border: 1px solid var(--bw-slate-300) !important;
}

.btn-putih:hover, .btn-light:hover {
    background: var(--bw-slate-100) !important;
    border-color: var(--bw-slate-400) !important;
    color: var(--bw-slate-900) !important;
}

.btn-sm {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.8rem !important;
    border-radius: 12px !important;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    color: var(--bw-slate-500);
    padding: 0.25rem 0.5rem;
}
.btn-close::before {
    content: "✕";
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--bw-slate-900);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    width: 100%;
    border: 1px solid var(--bw-slate-300) !important;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    background-color: #ffffff !important;
    color: var(--bw-slate-900) !important;
    border-radius: 14px !important;
    outline: none !important;
    transition: all 0.15s ease;
    line-height: 1.5;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bw-primary) !important;
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08) !important;
}

.form-control::placeholder {
    color: var(--bw-slate-400);
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 14px;
    background-color: #ffffff;
    border: 1px solid var(--bw-slate-300);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.input-group:focus-within {
    border-color: var(--bw-primary);
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

.input-group .form-control,
.input-group .form-select {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1 1 auto;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bw-slate-500);
    background-color: var(--bw-slate-50);
    border-right: 1px solid var(--bw-slate-200);
    border-left: none;
    border-top: none;
    border-bottom: none;
}

.input-group .btn {
    border-radius: 0 !important;
}

.form-switch .form-check-input {
    width: 2.2rem;
    height: 1.2rem;
    border-radius: 2rem;
    appearance: none;
    background-color: var(--bw-slate-200);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-switch .form-check-input::before {
    content: "";
    position: absolute;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    top: 0.125rem;
    left: 0.125rem;
    background-color: #ffffff;
    transition: transform 0.2s ease;
}

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

.form-switch .form-check-input:checked::before {
    transform: translateX(1rem);
}

/* ============================================================
   TABLES, BADGES & INTERACTIVE TILES
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--bw-slate-700);
    border-collapse: collapse;
}

.table th {
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: var(--bw-slate-500);
    border-bottom: 1px solid var(--bw-slate-200);
    text-align: left;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--bw-slate-100);
}

.table-hover tbody tr:hover {
    background-color: var(--bw-slate-50);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}

.badge-jenjang-sd { background: #e0f2fe !important; color: #0284c7 !important; border: 1px solid #bae6fd !important; }
.badge-jenjang-smp { background: #dbeafe !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; }
.badge-jenjang-sma { background: #f3e8ff !important; color: #7e22ce !important; border: 1px solid #e9d5ff !important; }
.badge-jenjang-sarjana { background: #dcfce7 !important; color: #16a34a !important; border: 1px solid #bbf7d0 !important; }

.icon-box-sd { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.icon-box-smp { background: #dbeafe; color: #2563eb; border: 1px solid #bfdbfe; }
.icon-box-sma { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.icon-box-sarjana { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }

.kotak-kategori-pilih {
    border: 1px solid var(--bw-slate-200);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    transform: none !important;
}

.kotak-kategori-pilih:hover {
    border-color: var(--bw-primary);
    background-color: rgba(30, 58, 138, 0.04);
    box-shadow: 0 1px 3px 0 rgba(30, 58, 138, 0.08);
    transform: none !important;
}

.opsi-jawaban-item {
    border: 1.5px solid var(--bw-slate-200);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
}

.opsi-jawaban-item:hover {
    border-color: var(--bw-slate-400);
    background-color: var(--bw-slate-50);
}

.opsi-jawaban-item.terpilih {
    border-color: #1e3a8a !important;
    background-color: #eff6ff !important;
    box-shadow: 0 0 0 2px #1e3a8a, 0 4px 12px rgba(30, 58, 138, 0.08) !important;
}

.huruf-opsi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bw-slate-100);
    color: var(--bw-slate-700);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.opsi-jawaban-item.terpilih .huruf-opsi {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

.nomor-palette-item {
    width: 38px;
    height: 38px;
    border-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--bw-slate-200);
    background: #ffffff;
    color: var(--bw-slate-900);
    transition: all 0.15s ease;
}

.nomor-palette-item.sudah-jawab {
    background-color: var(--bw-primary);
    border-color: var(--bw-primary);
    color: #ffffff;
}

.nomor-palette-item.ragu-ragu {
    background-color: var(--bw-warning);
    border-color: var(--bw-warning);
    color: #ffffff;
}

.nomor-palette-item.aktif {
    border-color: var(--bw-primary);
    border-width: 2px;
    font-weight: 800;
}

.ai-editor-box, .ai-editor-light {
    background: var(--bw-slate-50) !important;
    border: 1px solid var(--bw-slate-200) !important;
    border-radius: 14px !important;
    padding: 0.85rem 1rem !important;
    color: var(--bw-slate-900) !important;
}

.ai-editor-box:focus-within, .ai-editor-light:focus-within {
    background: #ffffff !important;
    border-color: var(--bw-primary) !important;
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08) !important;
}

.ai-editor-box .form-control, .ai-editor-light .form-control {
    background: transparent !important;
    border: none !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.85rem !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ============================================================
   MODALS, BACKDROP & OFFCANVAS
   ============================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999 !important;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: none;
    padding: 1rem;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .modal {
        padding: 0.75rem;
    }
    .opsi-jawaban-item {
        padding: 0.85rem 1rem;
        gap: 10px;
        border-radius: 14px;
    }
    .huruf-opsi {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
        border-radius: 8px;
    }
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-dialog {
    position: relative;
    width: 100% !important;
    max-width: 480px !important;
    margin: auto !important;
    pointer-events: auto;
    box-sizing: border-box;
    z-index: 10000 !important;
}

.modal-dialog.modal-lg {
    max-width: 760px !important;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    width: 100% !important;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid var(--bw-slate-200) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35) !important;
    outline: 0;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 10001 !important;
    word-wrap: break-word;
    word-break: break-word;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--bw-slate-50) !important;
    border-bottom: 1px solid var(--bw-slate-200) !important;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff !important;
    color: var(--bw-slate-700);
    overflow-y: auto;
    max-height: calc(85vh - 120px);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 1rem 1.25rem;
    background-color: var(--bw-slate-50) !important;
    border-top: 1px solid var(--bw-slate-200) !important;
}

.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998 !important;
}

.drawer-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040 !important;
}

body.modal-open {
    overflow: hidden;
}

.offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    visibility: hidden;
    background-color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: 0;
    overflow: hidden;
}

.offcanvas-start {
    top: 0;
    left: 0;
    width: 288px;
    transform: translateX(-100%);
}

.offcanvas.show {
    transform: none;
    visibility: visible;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
}

.offcanvas-body {
    flex-grow: 1;
    min-height: 0;
    padding: 1rem;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* ============================================================
   INFINITE MARQUEE SLIDER
   ============================================================ */
@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.animate-marquee-infinite {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marquee-scroll 35s linear infinite;
}

.animate-marquee-infinite:hover {
    animation-play-state: paused;
}

/* ============================================================
   FLOATING ILLUSTRATION ANIMATIONS
   ============================================================ */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-16px) rotate(2deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(14px) rotate(-2deg);
    }
}

@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 7s ease-in-out infinite;
}

.animate-float-subtle {
    animation: float-subtle 8s ease-in-out infinite;
}

/* Hide scrollbar for clean mobile horizontal sliders */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================================
   MINI SIDEBAR COMPONENT (DESKTOP) & ZERO-FLICKER SYSTEM
   ============================================================ */
#sidebarDesktop {
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html.sidebar-is-mini #sidebarDesktop,
#sidebarDesktop.sidebar-mini,
aside#sidebarDesktop.sidebar-mini {
    width: 4.75rem !important; /* 76px */
    min-width: 4.75rem !important;
    max-width: 4.75rem !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-text,
html.sidebar-is-mini #sidebarDesktop .sidebar-brand-full,
#sidebarDesktop.sidebar-mini .sidebar-text,
#sidebarDesktop.sidebar-mini .sidebar-brand-full {
    display: none !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-brand-mini,
#sidebarDesktop.sidebar-mini .sidebar-brand-mini {
    display: flex !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-inner-wrap,
#sidebarDesktop.sidebar-mini .sidebar-inner-wrap {
    padding: 0.75rem 0.5rem !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-brand-container,
#sidebarDesktop.sidebar-mini .sidebar-brand-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

html.sidebar-is-mini #sidebarDesktop nav a,
#sidebarDesktop.sidebar-mini nav a {
    width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important; /* rounded-xl */
}

html.sidebar-is-mini #sidebarDesktop nav a i,
#sidebarDesktop.sidebar-mini nav a i {
    margin: 0 !important;
    font-size: 1.15rem !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-footer-wrap,
#sidebarDesktop.sidebar-mini .sidebar-footer-wrap {
    margin: 0.5rem 0.25rem !important;
    padding: 0.5rem 0.25rem !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-profile-card,
#sidebarDesktop.sidebar-mini .sidebar-profile-card {
    background: transparent !important;
    border-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 0.75rem !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-profile-card:hover,
#sidebarDesktop.sidebar-mini .sidebar-profile-card:hover {
    background: #f1f5f9 !important; /* bg-slate-100 */
}

html.sidebar-is-mini #sidebarDesktop .sidebar-profile-card .sidebar-avatar,
#sidebarDesktop.sidebar-mini .sidebar-profile-card .sidebar-avatar {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.625rem !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-logout-btn,
#sidebarDesktop.sidebar-mini .sidebar-logout-btn {
    width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important;
}

html.sidebar-is-mini #sidebarDesktop .sidebar-logout-btn i,
#sidebarDesktop.sidebar-mini .sidebar-logout-btn i {
    font-size: 1.15rem !important;
}

/* ============================================================
   RESPONSIVE VIEWPORT-FIT MODAL COMPONENT
   ============================================================ */
.modal {
    padding: 0.75rem !important;
}

.modal-dialog {
    max-height: calc(100vh - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.modal-dialog .modal-content {
    width: 100% !important;
    max-height: calc(100vh - 2.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
}

.modal-dialog .modal-header {
    width: 100% !important;
    flex-shrink: 0 !important;
}

.modal-dialog .modal-body,
.modal-dialog form > .modal-body,
.modal-dialog .modal-content > form > .modal-body {
    width: 100% !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    max-height: calc(100vh - 12rem) !important;
}

.modal-dialog .modal-footer {
    width: 100% !important;
    flex-shrink: 0 !important;
}

.modal-dialog-scrollable {
    max-height: calc(100vh - 2rem) !important;
}

.modal-dialog-scrollable .modal-content {
    width: 100% !important;
    max-height: calc(100vh - 2.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
}

.modal-dialog-scrollable .modal-body,
.modal-dialog-scrollable form > .modal-body,
.modal-dialog-scrollable .modal-content > form > .modal-body {
    width: 100% !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    max-height: calc(100vh - 12rem) !important;
}


