﻿/* =======================================================
   ViyaBook layout.css  Shared Design System
   Load order: styles.css  layout.css  responsive.css
   Uses !important to enforce consistency over per-page
   inline styles without touching page functionality.
   ======================================================= */

/* -------------------------------------------------------
   1. DESIGN TOKENS  single source of truth
------------------------------------------------------- */
:root {
  /* Colors */
  --vb-bg:       #f5f8fd;
  --vb-card:     #ffffff;
  --vb-text:     #07152f;
  --vb-muted:    #64748b;
  --vb-border:   #e4ebf5;
  --vb-blue:     #0057ff;
  --vb-green:    #16a34a;
  --vb-red:      #dc2626;
  --vb-orange:   #f97316;
  --vb-purple:   #7c3aed;

  /* Shadows */
  --vb-shadow:   0 14px 40px rgba(15, 23, 42, 0.07);
  --vb-shadow-sm:0 8px 24px rgba(15, 23, 42, 0.05);

  /* Shape */
  --vb-radius:   16px;
  --vb-radius-sm:10px;
  --vb-radius-lg:20px;

  /* Layout */
  --vb-sidebar-w:280px;
  --vb-main-pad: 24px 28px;

  /* Search */
  --vb-search-h:      42px;
  --vb-search-border: #e5edf7;
  --vb-search-shadow: 0 2px 8px rgba(15,23,42,.06);
  --vb-search-ph:     #94a3b8;
  --vb-search-icon:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------
   2. HTML / BODY  prevent white flash, consistent base
------------------------------------------------------- */
html {
  background: var(--vb-bg) !important;
  overflow-x: hidden;
}

body {
  margin: 0 !important;
  background: var(--vb-bg) !important;
  color: var(--vb-text) !important;
  font-size: 14px !important;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* -------------------------------------------------------
   3. LAYOUT SHELL  ensure min-height; display/columns
   are managed by styles.css (grid at 993px) and
   responsive.css (drawer at <1024px). We only enforce
   min-height here so pages don't collapse.
------------------------------------------------------- */
.app,
.dashboard-shell,
.shell {
  min-height: 100vh !important;
}

/* -------------------------------------------------------
   4. SIDEBAR  reserve background even before JS fills it
------------------------------------------------------- */
.app > aside.sidebar,
.dashboard-shell > aside.sidebar,
.shell > .side,
.shell > aside.sidebar {
  width: var(--vb-sidebar-w) !important;
  min-width: var(--vb-sidebar-w) !important;
  max-width: var(--vb-sidebar-w) !important;
  flex-shrink: 0 !important;
  min-height: 100vh !important;
}

/* -------------------------------------------------------
   5. MAIN CONTENT  consistent padding and width
------------------------------------------------------- */
.main,
.main-content,
.shell > main {
  padding: var(--vb-main-pad) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* -------------------------------------------------------
   6. TOPBAR  consistent spacing below header
------------------------------------------------------- */
.topbar {
  min-height: 52px !important;
  margin-bottom: 24px !important;
}

/* -------------------------------------------------------
   6b. SEARCH BARS — global modernized design
   42px clean pill, single border, icon inside left.
   Handles 5 markup patterns found across all pages:
     1. label.search > input          (most pages)
     2. label/div.search-box > input  (customers, trips, etc.)
     3. div.top-search > span + input (create-invoice, edit-invoice)
     4. input.search                  (dashboard, quotation, etc.)
     5. .panel-head / .filter-bar > input  (approval-center, etc.)
   Uses !important throughout + same selectors as styles.css
   so later cascade in load order always wins.
------------------------------------------------------- */

/* === PATTERN A: WRAPPER containers === */
/* Duplicate .app > .main selectors from styles.css to beat its 52px !important */
.app > .main .top-search,
.app > .main .search,
.top-search:not(input),
.search:not(input):not(textarea),
.search-box:not(input):not(textarea),
.filter-search:not(input):not(textarea),
.table-search:not(input):not(textarea),
.search-main:not(input):not(textarea),
.search-wrap {
  display:          flex !important;
  align-items:      center !important;
  height:           42px !important;
  max-width:        420px !important;
  width:            100% !important;
  border-radius:    14px !important;
  background:       #fff var(--vb-search-icon) no-repeat 13px center !important;
  background-size:  16px 16px !important;
  border:           1px solid #e5edf7 !important;
  box-shadow:       0 6px 18px rgba(15,23,42,.05) !important;
  padding:          0 14px 0 38px !important;
  gap:              0 !important;
  overflow:         hidden !important;
  box-sizing:       border-box !important;
}

/* Suppress any pre-existing icon child (SVG / icon span) — icon is now CSS bg-image */
.search:not(input) > svg:first-child,
.search-box:not(input) > svg:first-child,
.top-search > svg:first-child,
.search:not(input) > span:first-child,
.search-box:not(input) > span:first-child,
.top-search > span:first-child {
  display: none !important;
}

/* Inner <input> inside any wrapper — no border, fills container */
.app > .main .top-search input,
.app > .main .search input,
.top-search input,
.search:not(input) input,
.search-box:not(input) input,
.filter-search:not(input) input,
.table-search:not(input) input,
.search-main:not(input) input,
.search-wrap input {
  flex:          1 !important;
  height:        100% !important;
  border:        none !important;
  outline:       none !important;
  box-shadow:    none !important;
  background:    transparent !important;
  font-size:     14px !important;
  font-weight:   600 !important;
  color:         #0f172a !important;
  width:         100% !important;
  min-width:     0 !important;
  padding:       0 !important;
  border-radius: 0 !important;
}
.top-search input::placeholder,
.search:not(input) input::placeholder,
.search-box:not(input) input::placeholder,
.filter-search:not(input) input::placeholder,
.table-search:not(input) input::placeholder,
.search-wrap input::placeholder {
  color:       #94a3b8 !important;
  font-weight: 600 !important;
}

/* === PATTERN B: DIRECT INPUT elements === */
input.search,
input.top-search,
input.search-box,
input.filter-search,
input.table-search {
  display:          block !important;
  height:           42px !important;
  max-width:        420px !important;
  width:            100% !important;
  border-radius:    14px !important;
  background:       #fff var(--vb-search-icon) no-repeat 13px center !important;
  background-size:  16px 16px !important;
  border:           1px solid #e5edf7 !important;
  box-shadow:       0 6px 18px rgba(15,23,42,.05) !important;
  padding:          0 14px 0 38px !important;
  font-size:        14px !important;
  font-weight:      600 !important;
  color:            #0f172a !important;
  outline:          none !important;
  box-sizing:       border-box !important;
}
input.search::placeholder,
input.top-search::placeholder,
input.search-box::placeholder,
input.filter-search::placeholder,
input.table-search::placeholder {
  color:       #94a3b8 !important;
  font-weight: 600 !important;
}

/* === PATTERN 5: Panel-head / filter-bar search inputs (classless) === */
.panel-head > input[type="text"],
.panel-head > input[type="search"],
.panel-head > input:not([type="checkbox"]):not([type="radio"]):not([type="number"]):not([type="button"]):not([type="submit"]):not([type="hidden"]),
.filter-bar > input[type="text"],
.filter-bar > input[type="search"],
.filter-bar > input:not([type="checkbox"]):not([type="radio"]):not([type="number"]):not([type="button"]):not([type="submit"]):not([type="hidden"]) {
  height:          42px !important;
  border-radius:   14px !important;
  background:      #fff var(--vb-search-icon) no-repeat 13px center !important;
  background-size: 15px 15px !important;
  border:          1px solid #e5edf7 !important;
  box-shadow:      0 6px 18px rgba(15,23,42,.05) !important;
  padding:         0 14px 0 36px !important;
  font-size:       13px !important;
  font-weight:     600 !important;
  color:           #0f172a !important;
  outline:         none !important;
  font-family:     inherit !important;
  box-sizing:      border-box !important;
}
.panel-head > input::placeholder,
.filter-bar > input::placeholder {
  color:       #94a3b8 !important;
  font-weight: 600 !important;
}

/* === FOCUS STATE — all patterns === */
.app > .main .top-search:focus-within,
.app > .main .search:focus-within,
.top-search:not(input):focus-within,
.search:not(input):focus-within,
.search-box:not(input):focus-within,
.filter-search:not(input):focus-within,
.table-search:not(input):focus-within,
.search-wrap:focus-within,
input.search:focus,
input.top-search:focus,
input.search-box:focus,
input.filter-search:focus,
input.table-search:focus,
.panel-head > input:focus,
.filter-bar > input:focus {
  border-color: #93c5fd !important;
  box-shadow:   0 0 0 3px rgba(37,99,255,.10), 0 6px 18px rgba(15,23,42,.05) !important;
  outline:      none !important;
}

/* Icon buttons in topbar */
.icon-btn,
.top-btn,
.top-action {
  height: 52px;
  border-radius: 14px !important;
  border: 1px solid var(--vb-border) !important;
  background: #fff !important;
  box-shadow: var(--vb-shadow-sm) !important;
}

/* User pill in topbar */
.user-pill,
.profile {
  height: 52px;
  border-radius: 14px !important;
  border: 1px solid var(--vb-border) !important;
  background: #fff !important;
}

/* -------------------------------------------------------
   7. PAGE HEADING  consistent title sizes
------------------------------------------------------- */
h1 {
  font-size: 28px !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.25 !important;
  margin: 0 0 8px !important;
  color: var(--vb-text) !important;
}

.page-head,
.welcome {
  margin-bottom: 22px !important;
}

.sub,
.subtitle {
  font-size: 14px !important;
  color: var(--vb-muted) !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.breadcrumb,
.crumb {
  font-size: 13px !important;
  color: #475569 !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
}

/* -------------------------------------------------------
   8. CARDS & PANELS  unified style
------------------------------------------------------- */
.card,
.panel,
.table-card,
.products-card,
.invoice-card,
.items-card {
  background: var(--vb-card) !important;
  border: 1px solid var(--vb-border) !important;
  border-radius: var(--vb-radius) !important;
  box-shadow: var(--vb-shadow) !important;
}

/* Summary / KPI cards */
.summary-card,
.metric,
.kpi-card,
.stat-card,
.type-card {
  background: var(--vb-card) !important;
  border: 1px solid var(--vb-border) !important;
  border-radius: var(--vb-radius) !important;
  box-shadow: var(--vb-shadow) !important;
}

/* Card internal padding  only for .card and .panel,
   not table-card which has its own overflow:hidden */
.card:not(.table-card):not(.items-card):not(.invoice-card) {
  padding: 18px !important;
}

.panel {
  padding: 18px !important;
}

/* Panel heading */
.panel-head {
  margin-bottom: 16px !important;
}

.panel-head h2,
.panel > h2:first-child {
  font-size: 17px !important;
  font-weight: 950 !important;
  margin: 0 !important;
}

/* -------------------------------------------------------
   9. BUTTONS  unified design system  (Tabler Icons ready)
------------------------------------------------------- */

/* ── Base ── */
.btn,
button.btn,
a.btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s !important;
  border: none !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
.btn:active  { transform: scale(0.97) !important; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(29,158,117,0.25) !important; outline: none !important; }
.btn i       { font-size: 16px !important; line-height: 1 !important; flex-shrink: 0; }
.btn:disabled,
.btn[disabled] { opacity: 0.45 !important; cursor: not-allowed !important; transform: none !important; pointer-events: none; }

/* ── Variants ── */
.btn-primary {
  background: #1D9E75 !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover:not(:disabled) { background: #0F6E56 !important; }

.btn-secondary {
  background: #f5f5f3 !important;
  color: #1a1a18 !important;
  border: 0.5px solid #c8c6bc !important;
}
.btn-secondary:hover:not(:disabled) { background: #ebebea !important; }

.btn-light,
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-outline):not(.btn-danger):not(.btn-danger-outline):not(.btn-warning):not(.btn-ghost):not(.btn-muted):not(.btn-success):not(.btn-sm):not(.btn-lg):not(.btn-icon):not([class*="btn-"]) {
  background: #f5f5f3 !important;
  color: #1a1a18 !important;
  border: 0.5px solid #c8c6bc !important;
}
.btn-light:hover:not(:disabled) { background: #ebebea !important; }

.btn-outline {
  background: transparent !important;
  color: #1D9E75 !important;
  border: 1px solid #1D9E75 !important;
}
.btn-outline:hover:not(:disabled) { background: #E1F5EE !important; }

.btn-danger {
  background: #E24B4A !important;
  color: #fff !important;
  border: none !important;
}
.btn-danger:hover:not(:disabled) { background: #A32D2D !important; }

.btn-danger-outline {
  background: transparent !important;
  color: #E24B4A !important;
  border: 1px solid #E24B4A !important;
}
.btn-danger-outline:hover:not(:disabled) { background: #FCEBEB !important; }

.btn-warning {
  background: #EF9F27 !important;
  color: #fff !important;
  border: none !important;
}
.btn-warning:hover:not(:disabled) { background: #BA7517 !important; }

.btn-ghost {
  background: transparent !important;
  color: #6b6a65 !important;
  border: 0.5px solid transparent !important;
}
.btn-ghost:hover:not(:disabled) { background: #f5f5f3 !important; color: #1a1a18 !important; }

.btn-success {
  background: #16a34a !important;
  color: #fff !important;
  border: none !important;
}
.btn-success:hover:not(:disabled) { background: #0d6b31 !important; }

/* ── Icon-only ── */
.btn-icon {
  width: 36px !important;
  padding: 0 !important;
  justify-content: center !important;
}

/* ── Sizes ── */
.btn-sm {
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}
.btn-sm i { font-size: 14px !important; }

.btn-lg {
  height: 44px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}
.btn-lg i { font-size: 17px !important; }

/* ── Dark mode ── */
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-light {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .btn-ghost { color: #94a3b8 !important; }
html[data-theme="dark"] .btn-ghost:hover { background: #1e293b !important; color: #e2e8f0 !important; }

/* -------------------------------------------------------
   10. INPUTS / SELECTS / TEXTAREAS  consistent forms
------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select {
  /* height is NOT !important so per-page .mini-input / small controls still work */
  height: 46px;
  border: 1px solid #dde5f0 !important;
  border-radius: var(--vb-radius-sm) !important;
  padding: 0 14px !important;
  background: #fff !important;
  font-family: inherit !important;
  font-weight: 750 !important;
  color: var(--vb-text) !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

textarea {
  border: 1px solid #dde5f0 !important;
  border-radius: var(--vb-radius-sm) !important;
  padding: 12px 14px !important;
  background: #fff !important;
  font-family: inherit !important;
  font-weight: 750 !important;
  color: var(--vb-text) !important;
  outline: none !important;
  box-sizing: border-box !important;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--vb-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1) !important;
}

/* -------------------------------------------------------
   11. TABLES  consistent header, cells, hover
------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px !important;
  font-family: inherit !important;
}

th {
  background: #f7f9fd !important;
  text-align: left !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--vb-border) !important;
}

td {
  padding: 14px 16px !important;
  border-top: 1px solid var(--vb-border) !important;
  font-weight: 750 !important;
  vertical-align: middle !important;
  color: var(--vb-text) !important;
}

tbody tr:hover {
  background: #f8fbff !important;
}

/* Status badges / pills */
.pill,
.badge,
.status {
  display: inline-flex !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

/* -------------------------------------------------------
   12. MODALS  consistent card and overlay
------------------------------------------------------- */
.modal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(7, 21, 47, 0.48) !important;
  backdrop-filter: blur(2px) !important;
  z-index: 100000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}

.modal.show,
.modal.open,
.modal[open] {
  display: flex !important;
}

.modal-card {
  background: var(--vb-card) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 70px rgba(7, 21, 47, 0.22) !important;
  max-height: calc(100dvh - 36px) !important;
  overflow-y: auto !important;
}

.modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 18px !important;
}

.modal-head h2 {
  font-size: 20px !important;
  margin: 0 !important;
}

.modal-close {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f1f5fb !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}

/* Modal form grid */
.modal-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

.field {
  display: grid !important;
  gap: 7px !important;
}

.field.full,
.field[data-full] {
  grid-column: 1 / -1 !important;
}

.field label {
  font-weight: 900 !important;
  font-size: 13px !important;
  color: #253450 !important;
}

.modal-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

/* -------------------------------------------------------
   13. FILTER / TOOL ROWS
------------------------------------------------------- */
.tabs {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.tab {
  border: 1px solid var(--vb-border) !important;
  background: #fff !important;
  color: #334155 !important;
  border-radius: 999px !important;
  padding: 9px 18px !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s !important;
}

.tab.active {
  background: var(--vb-blue) !important;
  color: #fff !important;
  border-color: var(--vb-blue) !important;
}

/* Dots / row action button */
.dots,
.row-btn,
.edit-btn,
.view-btn {
  border: 1px solid var(--vb-border) !important;
  background: #fff !important;
  border-radius: 10px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

/* -------------------------------------------------------
   14. PAGINATION
------------------------------------------------------- */
.pagination {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 18px !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.pages {
  display: flex !important;
  gap: 6px !important;
}

.page-btn {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--vb-border) !important;
  background: #fff !important;
  border-radius: 9px !important;
  color: #334155 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.page-btn.active {
  background: var(--vb-blue) !important;
  color: #fff !important;
  border-color: var(--vb-blue) !important;
}

/* -------------------------------------------------------
   15. PAGE JUMP / FOUC PREVENTION
   Set sidebar background before JS fills the content so
   the sidebar column shows the dark color instantly.
------------------------------------------------------- */
.app > aside.sidebar,
.dashboard-shell > aside.sidebar,
.shell > .side,
.shell > aside.sidebar {
  background: linear-gradient(180deg, #071a33 0%, #040e1e 100%) !important;
}

/* Smooth page entry  avoids abrupt content pop-in */
.main,
.main-content {
  animation: vb-fadein 0.18s ease both !important;
}

@keyframes vb-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .main,
  .main-content {
    animation: none !important;
  }
}

/* -------------------------------------------------------
   16. SCROLLBAR  subtle, consistent across pages
------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c8d4e8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0b0cc;
}

/* -------------------------------------------------------
   17. UTILITY  shared helper classes
------------------------------------------------------- */
.text-muted {
  color: var(--vb-muted) !important;
}

.text-blue {
  color: var(--vb-blue) !important;
}

.text-green {
  color: var(--vb-green) !important;
}

.text-red {
  color: var(--vb-red) !important;
}

.fw-900 { font-weight: 900 !important; }
.fw-950 { font-weight: 950 !important; }

/* -------------------------------------------------------
   18. LAYOUT CONSISTENCY GUARDS
   Prevent any page from accidentally overflowing
------------------------------------------------------- */
.app > .main,
.dashboard-shell > .main-content,
.shell > .main,
.shell > main {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

/* Table containers always scroll  never overflow */
.table-card,
.table-wrap,
.table-wrapper,
.table-shell,
.items-card,
.items-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* -------------------------------------------------------
   19. AUTH PAGES  login, signup, forgot password
------------------------------------------------------- */
body.viya-auth-page {
  min-height: 100vh !important;
  background:
    radial-gradient(circle at top left, rgba(14, 116, 255, 0.12) 0, transparent 28%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.10) 0, transparent 24%),
    linear-gradient(135deg, #ffffff, #f7fbff) !important;
  color: var(--vb-text) !important;
  overflow-x: hidden !important;
}

/* ── Generic page loader spinner (#pageLoader) ── */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s;
}
#pageLoader.done {
  opacity: 0;
  pointer-events: none;
}
.loader-spin {
  width: 40px;
  height: 40px;
  border: 3px solid #f1f5f9;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: loaderSpin 0.7s linear infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }

.viya-page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  background: #f7fbff;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.viya-page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.viya-loader-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  animation: viya-logo-pulse 1.2s ease-in-out infinite;
}

@keyframes viya-logo-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

/* ── viya-spin alternative spinner ── */
.viya-spin {
  width: 44px;
  height: 44px;
  border: 3px solid #f1f5f9;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: viyaSpin 0.75s linear infinite;
}
@keyframes viyaSpin { to { transform: rotate(360deg); } }

html.viya-loading body > *:not(.viya-page-loader) { visibility: hidden; }
html.viya-loaded  body > *:not(.viya-page-loader) { visibility: visible; }

.login-page,
.viya-auth-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 6vw, 68px) clamp(22px, 7vw, 8%);
}

.hero,
.viya-auth-hero {
  min-width: 0;
}

.brand,
.viya-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(34px, 6vw, 70px);
}

.real-logo,
.viya-auth-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.brand h1,
.viya-auth-brand h1 {
  margin: 0;
  font-size: 34px !important;
  line-height: 1;
  letter-spacing: 0 !important;
}

.brand p,
.viya-auth-brand p {
  margin: 6px 0 0;
  color: #2b3d73;
  font-size: 15px;
}

.hero h2,
.viya-auth-hero h2 {
  margin: 0 0 24px;
  font-size: clamp(38px, 4vw, 50px) !important;
  line-height: 1.12;
  letter-spacing: 0 !important;
  color: #07133d !important;
}

.hero h2 span,
.viya-auth-hero h2 span {
  color: #0969ff;
}

.hero-text,
.viya-auth-copy {
  max-width: 540px;
  color: #23386d;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 34px;
}

.features {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  flex: 0 0 auto;
}

.feature strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.feature p {
  margin: 0;
  color: #2b3d73;
  font-size: 15px;
}

.preview-card {
  width: min(620px, 100%);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dfe8f6;
  box-shadow: 0 28px 70px rgba(7, 19, 61, 0.14);
  overflow: hidden;
  margin-top: 34px;
}

.preview-top {
  height: 54px;
  background: #061a45;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.preview-top div {
  display: flex;
  gap: 7px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.preview-layout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 270px;
}

.preview-sidebar {
  background: #07183f;
  padding: 24px 16px;
}

.preview-sidebar p {
  height: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.25);
  margin: 0 0 18px;
}

.preview-content {
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.preview-stats div,
.preview-list p,
.preview-chart {
  border: 1px solid #e4ecf8;
  background: #ffffff;
}

.preview-stats div {
  border-radius: 16px;
  padding: 14px;
}

.preview-stats small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 8px;
}

.preview-stats strong {
  font-size: 14px;
  color: #07133d;
}

.preview-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.preview-chart {
  height: 150px;
  border-radius: 18px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.preview-chart i {
  flex: 1;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #1d73ff, #9fc5ff);
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
  color: #263a69;
  margin: 0;
}

.preview-list span {
  width: 8px;
  height: 8px;
  background: #1d73ff;
  border-radius: 50%;
}

.preview-list b {
  color: #0f9f6e;
  font-size: 11px;
}

.login-card-wrap,
.page-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  padding: 32px 16px;
}

.login-card,
.login-panel {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2eaf7;
  border-radius: 22px;
  padding: 42px 34px 32px;
  box-shadow: 0 30px 70px rgba(15, 50, 100, 0.14);
  backdrop-filter: blur(16px);
}

.card-real-logo,
.brand-mark img {
  display: block;
  width: 86px !important;
  height: auto !important;
  margin: 0 auto 22px;
  object-fit: contain;
}

.logo-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.brand-mark {
  background: transparent !important;
  box-shadow: none !important;
}

.login-card h2,
.login-panel h1,
.hero-copy h1 {
  text-align: center;
  font-size: 26px !important;
  line-height: 1.2;
  margin: 0 0 8px !important;
  letter-spacing: 0 !important;
}

.login-card .sub,
.hero-copy p {
  text-align: center;
  color: #30416f !important;
  margin: 0 0 30px !important;
  font-size: 15px;
}

.login-card label,
.login-panel label,
.login-form label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-card .input-box,
.login-panel .input-box,
.login-form .input-box {
  position: relative;
  margin-bottom: 20px;
}

.login-card .input-box span,
.login-panel .input-box span,
.login-form .input-box span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #67799f;
  z-index: 1;
}

.login-card .input-box input,
.login-panel .input-box input,
.login-form .input-box input {
  width: 100%;
  height: 54px !important;
  padding-left: 44px !important;
  font-size: 15px !important;
}

.error,
.error-message {
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  min-height: 16px;
  display: block;
  margin: -10px 0 14px;
}

.row,
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 26px;
  font-size: 14px;
}

.row a,
.signup a,
.footer-row a {
  color: #006bff;
  text-decoration: none;
  font-weight: 800;
}

.login-card .btn,
.login-panel .primary-button {
  width: 100% !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #1175ff, #0057e7) !important;
  color: white !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(0, 89, 255, 0.24) !important;
}

.login-card .google {
  background: #fff !important;
  color: #10204f !important;
  box-shadow: none !important;
  border: 1px solid #d9e3f2 !important;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #526487;
  margin: 26px 0;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe7f3;
}

.signup,
.secure {
  text-align: center;
  color: #425579;
}

.signup {
  margin-top: 26px;
  font-size: 14px;
}

.secure {
  margin-top: 36px;
}

.secure strong {
  display: block;
  color: #263a69;
  font-size: 18px;
  margin-bottom: 10px;
}
/* -------------------------------------------------------
   SEARCH WRAP  unified search input component
------------------------------------------------------- */

.search-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-wrap {
  display: flex;
  align-items: center;
  height: 36px;
  border: 0.5px solid #c8c6bc;
  border-radius: 8px;
  background: #fff;
  padding: 0 4px 0 10px;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.search-wrap:focus-within {
  border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.15);
}
.search-wrap .ti-search {
  font-size: 15px;
  color: #888780;
  flex-shrink: 0;
  pointer-events: none;
  line-height: 1;
}
.search-wrap input {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 13px !important;
  color: #1a1a18 !important;
  padding: 0 6px !important;
  font-family: inherit !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: unset !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.search-wrap input::placeholder { color: #888780; }
.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: #888780;
  font-size: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color .15s;
  padding: 0;
}
.search-clear:hover { color: #1a1a18; }
.filter-select {
  height: 36px;
  padding: 0 10px;
  border: 0.5px solid #c8c6bc;
  border-radius: 8px;
  background: #fff;
  color: #1a1a18;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}
.filter-select:focus {
  border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.15);
}

/* Dark mode */
html[data-theme="dark"] .search-wrap { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .search-wrap .ti-search { color: #64748b; }
html[data-theme="dark"] .search-wrap input { color: #e2e8f0 !important; }
html[data-theme="dark"] .search-wrap input::placeholder { color: #64748b; }
html[data-theme="dark"] .search-clear { color: #64748b; }
html[data-theme="dark"] .search-clear:hover { color: #e2e8f0; }
html[data-theme="dark"] .filter-select { background: #1e293b; border-color: #334155; color: #e2e8f0; }

/* -------------------------------------------------------
   NAVBAR / TOPBAR  icon-btn, bell, profile, nav-search
------------------------------------------------------- */

/* Search bar inside topbar */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  height: 36px;
  background: #fff;
  border: 0.5px solid #c8c6bc;
  border-radius: 8px;
  padding: 0 12px;
  box-sizing: border-box;
}
.nav-search i { color: #6b6a65; font-size: 15px; flex-shrink: 0; }
.nav-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  color: #1a1a18;
  font-weight: 400;
  height: auto;
  min-height: unset;
  padding: 0;
  border-radius: 0;
}
.nav-search input::placeholder { color: #888780; }
html[data-theme="dark"] .nav-search { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .nav-search input { color: #e2e8f0; }

/* Topbar layout */
.topbar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Icon button (bell, plus, etc.) */
.icon-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  border: 0.5px solid #c8c6bc !important;
  background: #fff !important;
  color: #6b6a65 !important;
  cursor: pointer !important;
  font-size: 18px !important;
  transition: background .15s, color .15s !important;
  flex-shrink: 0 !important;
}
.icon-btn:hover { background: #f5f5f3 !important; color: #1a1a18 !important; }
html[data-theme="dark"] .icon-btn { background: #1e293b !important; border-color: #334155 !important; color: #94a3b8 !important; }
html[data-theme="dark"] .icon-btn:hover { background: #273549 !important; color: #e2e8f0 !important; }

/* Bell badge */
.bell-wrap { position: relative; display: inline-flex; }
.bell-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: #E24B4A;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #fff;
  border: 2px solid #fff;
  pointer-events: none;
}

/* Profile button */
.profile-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  padding: 0 10px 0 4px !important;
  border-radius: 8px !important;
  border: 0.5px solid #c8c6bc !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: background .15s !important;
  font-family: inherit !important;
}
.profile-btn:hover { background: #f5f5f3 !important; }
.profile-btn .avatar {
  width: 28px !important; height: 28px !important;
  border-radius: 50% !important;
  background: #1D9E75 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 11px !important; font-weight: 600 !important; color: #fff !important;
  flex-shrink: 0 !important;
}
.profile-name { font-size: 13px; font-weight: 500; color: #1a1a18; line-height: 1.2; }
.profile-role { font-size: 11px; color: #888780; line-height: 1.2; }

/* Dropdown menu */
.dropdown-wrap { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  padding: 6px;
  z-index: 1000;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a18;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
  font-family: inherit;
}
.dropdown-item:hover { background: #f5f5f3; }
.dropdown-item.danger { color: #E24B4A; }
.dropdown-item.danger:hover { background: #FCEBEB; }
.dropdown-item i { font-size: 15px; flex-shrink: 0; }
.dropdown-divider { height: 1px; background: #e4ebf5; margin: 4px 6px; }
html[data-theme="dark"] .dropdown-menu { background: #0d1f3c; border-color: #1e3a5f; }
html[data-theme="dark"] .dropdown-item { color: #e2e8f0; }
html[data-theme="dark"] .dropdown-item:hover { background: #1e293b; }

/* =======================================================
   UNIFIED MODAL SYSTEM  (opt-in via .modal-overlay wrapper)
   Scoped under .modal-overlay so existing modals on other
   pages that use a bare .modal/.modal-head are untouched.
   ======================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
}
.modal-overlay.hidden { display: none !important; }

.modal-overlay .modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  border: 0.5px solid #c8c6bc;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
  padding: 0 !important;          /* neutralize page-local .modal padding */
  margin: 0 !important;
  position: relative !important;  /* never inherit a page .modal overlay's fixed positioning */
  inset: auto !important;
}
.modal-overlay .modal.modal-sm { max-width: 420px; }
.modal-overlay .modal.modal-lg { max-width: 820px; }

.modal-overlay .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 0.5px solid #e8e6de;
  flex-shrink: 0;
  margin: 0;
}
.modal-overlay .modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a18;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.modal-overlay .modal-title i { font-size: 18px; color: #1D9E75; }
.modal-overlay .modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 0.5px solid #c8c6bc;
  background: #f5f5f3;
  cursor: pointer;
  font-size: 16px;
  color: #6b6a65;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
}
.modal-overlay .modal-close:hover { background: #ebebea; color: #1a1a18; }

.modal-overlay .modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}
.modal-overlay .modal-footer {
  padding: 14px 20px;
  border-top: 0.5px solid #e8e6de;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Form layout inside unified modals */
.modal-overlay .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-overlay .form-row.full { grid-template-columns: 1fr; }
.modal-overlay .form-group { display: flex; flex-direction: column; gap: 5px; }
.modal-overlay .form-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b6a65;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal-overlay .form-label .req { color: #E24B4A; margin-left: 2px; }

.modal-overlay .form-input,
.modal-overlay .form-select,
.modal-overlay .form-textarea {
  height: 38px;
  padding: 0 12px;
  border: 0.5px solid #c8c6bc;
  border-radius: 8px;
  background: #f9f9f7;
  color: #1a1a18;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
  box-sizing: border-box;
}
.modal-overlay .form-textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.modal-overlay .form-input:focus,
.modal-overlay .form-select:focus,
.modal-overlay .form-textarea:focus {
  border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
  background: #fff;
}
.modal-overlay .form-input::placeholder,
.modal-overlay .form-textarea::placeholder { color: #b4b2a9; }

.modal-overlay .photo-upload {
  border: 1.5px dashed #c8c6bc;
  border-radius: 10px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #f9f9f7;
  text-align: center;
}
.modal-overlay .photo-upload:hover { border-color: #1D9E75; background: #E1F5EE; }

.modal-overlay .form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
}
.modal-overlay .form-divider span {
  font-size: 11px;
  color: #b4b2a9;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal-overlay .form-divider::before,
.modal-overlay .form-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: #e8e6de;
}

.modal-overlay .modal-confirm-text {
  font-size: 14px;
  color: #44433e;
  line-height: 1.6;
  margin: 0;
}

/* Compatibility: legacy .form-grid / .field markup inside a unified
   modal automatically adopts the new compact input styling, so large
   existing modals only need their shell converted. */
.modal-overlay .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-overlay .form-grid .full,
.modal-overlay .field.full { grid-column: 1 / -1; }
.modal-overlay .field { display: flex; flex-direction: column; gap: 5px; }
.modal-overlay .field > label {
  font-size: 11px;
  font-weight: 600;
  color: #6b6a65;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal-overlay .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal-overlay .field select,
.modal-overlay .field textarea {
  min-height: 38px;
  height: 38px;
  padding: 0 12px;
  border: 0.5px solid #c8c6bc;
  border-radius: 8px;
  background: #f9f9f7;
  color: #1a1a18;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.modal-overlay .field textarea {
  height: auto;
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}
.modal-overlay .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.modal-overlay .field select:focus,
.modal-overlay .field textarea:focus {
  border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
  background: #fff;
}
@media (max-width: 560px) {
  .modal-overlay .form-grid { grid-template-columns: 1fr; }
}
html[data-theme="dark"] .modal-overlay .field > label { color: #94a3b8; }
html[data-theme="dark"] .modal-overlay .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="dark"] .modal-overlay .field select,
html[data-theme="dark"] .modal-overlay .field textarea {
  background: #0b1e38; border-color: #334155; color: #f1f5f9;
}

@media (max-width: 560px) {
  .modal-overlay .form-row { grid-template-columns: 1fr; }
}

/* Dark mode */
html[data-theme="dark"] .modal-overlay .modal { background: #0d1f3c; border-color: #1e3a5f; }
html[data-theme="dark"] .modal-overlay .modal-head,
html[data-theme="dark"] .modal-overlay .modal-footer { border-color: #1e3a5f; }
html[data-theme="dark"] .modal-overlay .modal-title { color: #f1f5f9; }
html[data-theme="dark"] .modal-overlay .modal-close { background: #1e293b; border-color: #334155; color: #94a3b8; }
html[data-theme="dark"] .modal-overlay .modal-close:hover { background: #273549; color: #e2e8f0; }
html[data-theme="dark"] .modal-overlay .form-input,
html[data-theme="dark"] .modal-overlay .form-select,
html[data-theme="dark"] .modal-overlay .form-textarea { background: #0b1e38; border-color: #334155; color: #f1f5f9; }
html[data-theme="dark"] .modal-overlay .form-input:focus,
html[data-theme="dark"] .modal-overlay .form-select:focus,
html[data-theme="dark"] .modal-overlay .form-textarea:focus { background: #0b1e38; }
html[data-theme="dark"] .modal-overlay .modal-confirm-text { color: #cbd5e1; }
html[data-theme="dark"] .modal-overlay .photo-upload { background: #0b1e38; border-color: #334155; }
