/* assets/css/style.css - SvelteForge Financial Edition (2026 Edition) */

/* ==========================================================================
   PENGATURAN UKURAN FONT GLOBAL SISTEM (GLOBAL FONT SCALE)
   --------------------------------------------------------------------------
   Lokasi untuk mengubah ukuran font seluruh halaman Dashboard:
   Ganti nilai persentase '80%' pada selector 'html:not(.login-html)' di bawah:
   - 80%  : Skala Ramping 80% (Aktif saat ini untuk Dashboard)
   - 85%  : Sedikit lebih besar
   - 90%  : Ukuran sedang
   - 100% : Ukuran standar asli 100%
   ========================================================================== */
html:not(.login-html) {
    font-size: 80% !important; /* SKALA FONT DASHBOARD (80% = 12.8px root) */
    -webkit-text-size-adjust: 80%;
    text-size-adjust: 80%;
}

/* Halaman Login: Tetap 100% Ukuran Standar Penuh */
html.login-html {
    font-size: 100% !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Skala proporsional kelas pixel khusus Dashboard (80%) */
html:not(.login-html) [class*="text-\[9px\]"] { font-size: 7.2px !important; }
html:not(.login-html) [class*="text-\[9.5px\]"] { font-size: 7.6px !important; }
html:not(.login-html) [class*="text-\[10px\]"] { font-size: 8px !important; }
html:not(.login-html) [class*="text-\[10.5px\]"] { font-size: 8.4px !important; }
html:not(.login-html) [class*="text-\[11px\]"] { font-size: 8.8px !important; }
html:not(.login-html) [class*="text-\[12px\]"] { font-size: 9.6px !important; }
html:not(.login-html) [class*="text-\[13px\]"] { font-size: 10.4px !important; }
html:not(.login-html) [class*="text-\[14px\]"] { font-size: 11.2px !important; }
html:not(.login-html) [class*="text-\[15px\]"] { font-size: 12px !important; }
html:not(.login-html) [class*="text-\[16px\]"] { font-size: 12.8px !important; }
html:not(.login-html) [class*="text-\[18px\]"] { font-size: 14.4px !important; }
html:not(.login-html) [class*="text-\[20px\]"] { font-size: 16px !important; }
html:not(.login-html) [class*="text-\[24px\]"] { font-size: 19.2px !important; }
html:not(.login-html) [class*="text-\[28px\]"] { font-size: 22.4px !important; }
html:not(.login-html) [class*="text-\[32px\]"] { font-size: 25.6px !important; }

:root {
    --font-sans: 'Inter', Arial, sans-serif;
    --font-display: 'Inter', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --brand-primary: #0f172a;
    --brand-primary-hover: #1e293b;
    --brand-teal: #0d9488;
    --brand-emerald: #10b981;
    --brand-rose: #f43f5e;
    --brand-amber: #f59e0b;
    --canvas-bg: #f8fafc;
}

body {
    font-family: var(--font-sans);
    letter-spacing: -0.012em;
    background-color: var(--canvas-bg);
}

h1, h2, h3, h4, h5, h6, .font-display, .brand-title, .kpi-title, input, select, button, textarea {
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* Subtle Ambient Gradient on Main Content Canvas */
.main-wrapper {
    background-color: #f8fafc;
    background-attachment: fixed;
}

/* ========================================================
   DARK MODE STYLES & OVERRIDES (html.dark)
   ======================================================== */
html.dark {
    color-scheme: dark;
    background-color: #0b1120 !important;
}
html.dark body {
    background-color: #0b1120 !important;
    color: #f1f5f9 !important;
}
html.dark .main-wrapper {
    background-color: #0b1120 !important;
}
html.dark main {
    background-color: #0b1120 !important;
}
html.dark aside#appSidebar {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}
html.dark header.topbar-header {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}
html.dark .bg-white {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}
html.dark .border-slate-200,
html.dark .border-slate-100,
html.dark .border-slate-300,
html.dark [class*="border-slate-100"],
html.dark [class*="border-slate-200"],
html.dark [class*="border-slate-300"] {
    border-color: #1e293b !important;
}
html.dark .text-slate-900 {
    color: #f8fafc !important;
}
html.dark .text-slate-800 {
    color: #f1f5f9 !important;
}
html.dark .text-slate-700 {
    color: #e2e8f0 !important;
}
html.dark .text-slate-600 {
    color: #cbd5e1 !important;
}
html.dark .text-slate-500 {
    color: #94a3b8 !important;
}
html.dark .bg-slate-50,
html.dark [class*="bg-slate-50"] {
    background-color: #131b2e !important;
}
html.dark .bg-slate-100,
html.dark [class*="bg-slate-100"] {
    background-color: #1e293b !important;
}
html.dark label {
    color: #cbd5e1 !important;
}
html.dark input:not([type="checkbox"]):not([type="radio"]), 
html.dark select, 
html.dark textarea {
    background-color: #131b2e !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html.dark select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
html.dark table thead th {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
html.dark table tbody tr {
    border-color: #1e293b !important;
}
html.dark table tbody tr:hover,
html.dark table tbody tr.mitra-row:hover,
html.dark tr.hover\:bg-slate-50:hover,
html.dark tr.hover\:bg-slate-50\/70:hover,
html.dark tr.hover\:bg-slate-100:hover,
html.dark tr.hover\:bg-slate-100\/80:hover {
    background-color: rgba(30, 41, 59, 0.75) !important;
}

/* Dark Mode Global Hover Utilities */
html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-50\/70:hover,
html.dark .hover\:bg-slate-100:hover,
html.dark .hover\:bg-white:hover {
    background-color: rgba(30, 41, 59, 0.7) !important;
}
html.dark .hover\:bg-blue-50:hover {
    background-color: rgba(30, 58, 138, 0.4) !important;
}
html.dark .hover\:bg-rose-50:hover {
    background-color: rgba(136, 19, 55, 0.4) !important;
}
html.dark .hover\:bg-emerald-50:hover {
    background-color: rgba(6, 78, 59, 0.4) !important;
}
html.dark .hover\:bg-amber-50:hover {
    background-color: rgba(120, 53, 15, 0.4) !important;
}

/* Dark Mode Global Input Focus */
html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus,
html.dark .focus\:bg-white:focus {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #3b82f6 !important;
}

/* Dark Mode Global Badges & Pills (50 & 100) */
html.dark [class*="bg-emerald-50"],
html.dark [class*="bg-emerald-100"],
html.dark .badge-emerald {
    background-color: rgba(6, 78, 59, 0.45) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
}
html.dark [class*="bg-blue-50"],
html.dark [class*="bg-blue-100"],
html.dark .badge-blue {
    background-color: rgba(30, 58, 138, 0.45) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}
html.dark [class*="bg-rose-50"],
html.dark [class*="bg-rose-100"],
html.dark .badge-rose {
    background-color: rgba(136, 19, 55, 0.45) !important;
    border-color: rgba(244, 63, 94, 0.35) !important;
    color: #fda4af !important;
}
html.dark [class*="bg-amber-50"],
html.dark [class*="bg-amber-100"],
html.dark .badge-amber {
    background-color: rgba(120, 53, 15, 0.45) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fde68a !important;
}
html.dark [class*="bg-indigo-50"],
html.dark [class*="bg-indigo-100"],
html.dark .badge-indigo {
    background-color: rgba(49, 46, 129, 0.5) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #c7d2fe !important;
}
html.dark [class*="bg-purple-50"],
html.dark [class*="bg-purple-100"],
html.dark .badge-purple {
    background-color: rgba(88, 28, 135, 0.45) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    color: #d8b4fe !important;
}

/* Dedicated Login Screen Viewport Fix across iPad, Tablet, Mobile, and Desktop */
html.login-html {
    height: 100% !important;
}
body.login-body {
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    max-height: 100% !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    body.login-body {
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow-y: auto !important;
    }
}

/* Dedicated Login Screen Dark Mode Protections */
.login-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
}
html.dark .login-card {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}
.login-feature-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
}
html.dark .login-feature-card {
    background-color: rgba(15, 23, 42, 0.75) !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}
html.dark .text-emerald-700,
html.dark .text-emerald-800,
html.dark .text-emerald-900,
html.dark .text-emerald-950 {
    color: #6ee7b7 !important;
}
html.dark .text-rose-700,
html.dark .text-rose-800,
html.dark .text-rose-900,
html.dark .text-rose-950 {
    color: #fda4af !important;
}
html.dark .text-blue-700,
html.dark .text-blue-800,
html.dark .text-blue-900,
html.dark .text-blue-950 {
    color: #93c5fd !important;
}
html.dark .text-indigo-700,
html.dark .text-indigo-800,
html.dark .text-indigo-900,
html.dark .text-indigo-950 {
    color: #c7d2fe !important;
}
html.dark .text-amber-700,
html.dark .text-amber-800,
html.dark .text-amber-900,
html.dark .text-amber-950 {
    color: #fde68a !important;
}
html.dark .text-purple-700,
html.dark .text-purple-800,
html.dark .text-purple-900,
html.dark .text-purple-950 {
    color: #d8b4fe !important;
}

/* Radio & Form Card Selection in Dark Mode */
html.dark label:has(input[type="radio"]:checked) {
    border-color: #3b82f6 !important;
    background-color: rgba(30, 58, 138, 0.35) !important;
    color: #93c5fd !important;
}
html.dark label:has(input[type="radio"]:checked) span,
html.dark label:has(input[type="radio"]:checked) div {
    color: #bfdbfe !important;
}
html.dark label:has(input[type="radio"]:not(:checked)) {
    border-color: #334155 !important;
    background-color: #131b2e !important;
    color: #cbd5e1 !important;
}

/* Dark Mode Action Icon Buttons in Tables */
html.dark td a.text-slate-500,
html.dark td a.text-slate-600,
html.dark td button.text-slate-400 {
    color: #94a3b8 !important;
}
html.dark td a.text-slate-500:hover,
html.dark td a.text-slate-600:hover,
html.dark td a.hover\:text-blue-600:hover {
    color: #60a5fa !important;
}
html.dark td button.text-slate-400:hover,
html.dark td button.hover\:text-rose-600:hover {
    color: #f87171 !important;
}

/* Custom styling for spreadsheet table */
.spreadsheet-container {
    max-height: calc(100vh - 220px);
    overflow: auto;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
}
html.dark .spreadsheet-container {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

/* Sticky top header */
.spreadsheet-container thead th {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: #f8fafc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
html.dark .spreadsheet-container thead th {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

/* Sticky first column (row labels) */
.sticky-col {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: inherit;
    box-shadow: 2px 0 4px -1px rgba(0, 0, 0, 0.06);
}
html.dark .sticky-col {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #1e293b !important;
}

/* Sticky header corner (top-left) */
.sticky-corner {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 40 !important;
    background-color: #f1f5f9 !important;
}
html.dark .sticky-corner {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

/* Row Dasar Bagi Hasil in dark mode */
html.dark .row-dasar-bagi-hasil {
    background-color: rgba(180, 83, 9, 0.22) !important;
    color: #fde68a !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}
html.dark .row-dasar-bagi-hasil td {
    border-color: rgba(245, 158, 11, 0.25) !important;
    color: #fde68a !important;
}
html.dark .row-dasar-bagi-hasil .sticky-col,
html.dark .row-dasar-bagi-hasil td.sticky-col {
    background-color: #1c1917 !important;
    color: #fde047 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Row Porsi Mitra Tertentu (Indigo Tint) */
.row-porsi-mitra-tertentu {
    background-color: #f5f7ff !important;
}
.row-porsi-mitra-tertentu td {
    background-color: #f5f7ff !important;
}
.row-porsi-mitra-tertentu .sticky-col,
.row-porsi-mitra-tertentu td.sticky-col {
    background-color: #eef2ff !important;
}
html.dark .row-porsi-mitra-tertentu {
    background-color: rgba(49, 46, 129, 0.28) !important;
}
html.dark .row-porsi-mitra-tertentu td {
    background-color: transparent !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}
html.dark .row-porsi-mitra-tertentu .sticky-col,
html.dark .row-porsi-mitra-tertentu td.sticky-col {
    background-color: #12192e !important;
    color: #c7d2fe !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Row Dasar Pool Umum */
.row-dasar-bagi-hasil-pool {
    background-color: #fef08a !important;
}
.row-dasar-bagi-hasil-pool td {
    background-color: #fef08a !important;
}
.row-dasar-bagi-hasil-pool .sticky-col,
.row-dasar-bagi-hasil-pool td.sticky-col {
    background-color: #fde68a !important;
}
html.dark .row-dasar-bagi-hasil-pool {
    background-color: rgba(217, 119, 6, 0.28) !important;
}
html.dark .row-dasar-bagi-hasil-pool td {
    background-color: transparent !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #fef08a !important;
}
html.dark .row-dasar-bagi-hasil-pool .sticky-col,
html.dark .row-dasar-bagi-hasil-pool td.sticky-col {
    background-color: #231b0c !important;
    color: #fef08a !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

/* Bagi Hasil Rows: Clean & Balanced (Matches Mockup) */
.row-bagi-hasil {
    background-color: #ffffff;
}
.row-bagi-hasil td {
    background-color: transparent;
}
.row-bagi-hasil td.sticky-col,
.row-bagi-hasil .sticky-col {
    background-color: #ffffff !important;
}
.row-bagi-hasil:hover,
.row-bagi-hasil:hover td {
    background-color: #f8fafc !important;
}
.row-bagi-hasil:hover td.sticky-col,
.row-bagi-hasil:hover .sticky-col {
    background-color: #f8fafc !important;
}

html.dark .row-bagi-hasil {
    background-color: #0f172a !important;
}
html.dark .row-bagi-hasil td {
    background-color: transparent !important;
    border-color: #1e293b !important;
}
html.dark .row-bagi-hasil td.sticky-col,
html.dark .row-bagi-hasil .sticky-col {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #1e293b !important;
}
html.dark .row-bagi-hasil:hover,
html.dark .row-bagi-hasil:hover td {
    background-color: rgba(30, 41, 59, 0.5) !important;
}
html.dark .row-bagi-hasil:hover td.sticky-col,
html.dark .row-bagi-hasil:hover .sticky-col {
    background-color: #1e293b !important;
}
html.dark .row-bagi-hasil .font-bold.text-slate-900 {
    color: #f8fafc !important;
}

/* Row Total Realisasi Pembayaran Bagi Hasil */
.row-total-realisasi {
    background-color: #ecfdf5 !important;
}
.row-total-realisasi td {
    background-color: #ecfdf5 !important;
}
.row-total-realisasi .sticky-col,
.row-total-realisasi td.sticky-col {
    background-color: #d1fae5 !important;
}
html.dark .row-total-realisasi {
    background-color: rgba(6, 78, 59, 0.35) !important;
}
html.dark .row-total-realisasi td {
    background-color: transparent !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
html.dark .row-total-realisasi .sticky-col,
html.dark .row-total-realisasi td.sticky-col {
    background-color: #062b20 !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Row Profit Operasional in dark mode */
html.dark .row-profit-operasional {
    background-color: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
html.dark .row-profit-operasional .sticky-col {
    background-color: #111e38 !important;
    color: #93c5fd !important;
}

/* Row Beban Ops in dark mode */
html.dark .row-beban-ops-header {
    background-color: rgba(244, 63, 94, 0.1) !important;
    color: #fda4af !important;
}
html.dark .row-beban-ops-header .sticky-col {
    background-color: #1f141e !important;
    color: #fda4af !important;
}
html.dark .row-beban-ops-total {
    background-color: rgba(244, 63, 94, 0.15) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.25) !important;
}
html.dark .row-beban-ops-total .sticky-col {
    background-color: #1f141e !important;
    color: #fda4af !important;
}

/* Row Total Realisasi Bagi Hasil in dark mode */
html.dark .row-total-realisasi {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
html.dark .row-total-realisasi .sticky-col {
    background-color: #0d2320 !important;
    color: #6ee7b7 !important;
}

/* Soft gray highlight for rekap rows */
.row-rekap {
    background-color: #f8fafc !important;
    font-weight: 600;
}
.row-rekap:hover {
    background-color: #f1f5f9 !important;
}
html.dark .row-rekap {
    background-color: #1e293b !important;
}

/* Clickable cell for drill-down */
.cell-clickable {
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.cell-clickable:hover {
    background-color: rgba(224, 242, 254, 0.8) !important;
    text-decoration: underline;
}
html.dark .cell-clickable:hover {
    background-color: rgba(30, 58, 138, 0.45) !important;
}

/* Warm highlight when hovering cells in Bagi Hasil row */
.row-bagi-hasil .cell-clickable:hover {
    background-color: #fde68a !important;
    color: #78350f !important;
}
html.dark .row-bagi-hasil .cell-clickable:hover {
    background-color: rgba(245, 158, 11, 0.28) !important;
    color: #fef08a !important;
}

/* Dark mode pagination buttons */
html.dark #mitraPaginationButtons button,
html.dark [id*="Pagination"] button {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html.dark #mitraPaginationButtons button:hover:not(:disabled),
html.dark [id*="Pagination"] button:hover:not(:disabled) {
    background-color: #334155 !important;
    color: #ffffff !important;
}
html.dark #mitraPaginationButtons button.bg-blue-600,
html.dark [id*="Pagination"] button.bg-blue-600 {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}
html.dark #mitraPaginationButtons button:disabled,
html.dark [id*="Pagination"] button:disabled {
    color: #475569 !important;
    border-color: #1e293b !important;
    cursor: not-allowed !important;
}

/* Dark mode button & control refinements */
html.dark button.bg-slate-100,
html.dark a.bg-slate-100 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html.dark button.bg-slate-100:hover,
html.dark a.bg-slate-100:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

/* Deduction pill / badge dark mode */
html.dark .deduction-badge {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html.dark .deduction-badge:hover {
    background-color: #334155 !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}
html.dark .deduction-badge .badge-value-text {
    color: #f8fafc !important;
}

/* Quick Recommendation chips dark mode */
html.dark .recommend-chip {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html.dark .recommend-chip:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}
html.dark .recommend-chip.active {
    background-color: rgba(37, 99, 235, 0.25) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Responsive Desktop Sidebar: Width 256px (16rem / w-64) */
@media (min-width: 1024px) {
    #appSidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 16rem !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100% !important;
        max-height: 100dvh !important;
        z-index: 50 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .main-wrapper {
        padding-left: 16rem !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Responsive Mobile Sidebar */
@media (max-width: 1023px) {
    #appSidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 16rem !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100% !important;
        max-height: 100dvh !important;
        z-index: 50 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .main-wrapper {
        padding-left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
}

/* Topbar Header: 56px (3.5rem) SvelteForge Height */
header.topbar-header {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
}

/* Copyable Interaction */
.copyable {
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}
.copyable:hover {
    opacity: 0.85;
}
.copyable:active {
    transform: scale(0.97);
}

/* Primary Action Buttons (Vibrant Royal Indigo & Blue Gradient with Subtle Glow) */
.btn-primary-fresh {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px -1px rgba(37, 99, 235, 0.35), 0 1px 3px 0 rgba(0, 0, 0, 0.08) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-primary-fresh:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    transform: translateY(-0.5px);
    box-shadow: 0 4px 14px -1px rgba(37, 99, 235, 0.45) !important;
}
.btn-primary-fresh:active {
    transform: scale(0.98);
}
html.dark .btn-primary-fresh {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px -1px rgba(99, 102, 241, 0.4) !important;
}
html.dark .btn-primary-fresh:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
}
