/* ==========================================================================
   بطاقات — UI styles (Almarai, light, calm). Bootstrap RTL is the base.
   ========================================================================== */
@font-face { font-family: "Almarai"; src: url("../fonts/Almarai-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("../fonts/Almarai-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("../fonts/Almarai-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("../fonts/Almarai-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --brand-900: #082a49;
  --brand-700: #0b3b66;
  --brand-600: #0e598f;
  --brand-500: #1673b5;
  --brand-100: #dcebf7;
  --brand-50: #eef5fb;
  --accent: #f5a524;
  --accent-50: #fff6e5;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e3e8ef;
  --border-strong: #cfd8e3;
  --text: #0f1b2d;
  --text-2: #3d4b5c;
  --muted: #6b7a8c;
  --success: #12805c;
  --success-50: #e7f6ef;
  --danger: #c4314b;
  --danger-50: #fdecef;
  --warning: #a15c00;
  --warning-50: #fff4e0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05);
  --shadow: 0 1px 3px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.06);
  --shadow-lg: 0 24px 60px rgba(8, 42, 73, 0.18);
  --ring: 0 0 0 4px rgba(22, 115, 181, 0.16);
  --topbar-h: 68px;
  --brand-solid: #0e598f;
  --brand-solid-hover: #0b3b66;
  --input-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.86);
  --overlay: rgba(243, 245, 249, 0.6);
  --dots: #e3e8ef;
  --bs-body-font-family: "Almarai", system-ui, sans-serif;
  color-scheme: light;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --brand-900: #d7e9f8;
  --brand-700: #a9d1f2;
  --brand-600: #6cb4ec;
  --brand-500: #4aa0e3;
  --brand-100: rgba(74, 160, 227, 0.24);
  --brand-50: rgba(74, 160, 227, 0.13);
  --accent: #f5b041;
  --accent-50: rgba(245, 176, 65, 0.14);
  --bg: #0c121c;
  --surface: #131b27;
  --surface-2: #182230;
  --border: #253142;
  --border-strong: #34445a;
  --text: #e7edf4;
  --text-2: #bac6d4;
  --muted: #8a99ab;
  --success: #4fd39b;
  --success-50: rgba(79, 211, 155, 0.13);
  --danger: #ff7b8f;
  --danger-50: rgba(255, 123, 143, 0.13);
  --warning: #f6b84f;
  --warning-50: rgba(246, 184, 79, 0.13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ring: 0 0 0 4px rgba(74, 160, 227, 0.28);
  --brand-solid: #1d6fb0;
  --brand-solid-hover: #2a80c4;
  --input-bg: #0f1621;
  --topbar-bg: rgba(19, 27, 39, 0.86);
  --overlay: rgba(12, 18, 28, 0.6);
  --dots: #222d3c;
  --bs-body-bg: #0c121c;
  --bs-body-color: #e7edf4;
  color-scheme: dark;
}
.theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: inline-block; }
:root[data-theme="dark"] .theme-icon-dark { display: none; }
.nav-btn.theme-toggle-floating { position: fixed; top: 16px; inset-inline-start: 16px; z-index: 10; background: var(--surface); border: 1px solid var(--border); }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Almarai", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--text); letter-spacing: 0; }
a { color: var(--brand-600); }
::selection { background: var(--brand-100); }
kbd {
  font-family: inherit;
  font-size: 11px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
}
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-muted { color: var(--muted) !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 19px; font-weight: 800; }
.brand-text small { font-size: 11.5px; color: var(--muted); }
.company-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 8px;
  padding: 0 14px;
  height: 42px;
  min-width: 230px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-600);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.company-switch:hover { border-color: var(--border-strong); }
.company-switch:focus-within { border-color: var(--brand-500); box-shadow: var(--ring); }
.company-switch select {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  padding-inline-end: 22px;
  flex: 1;
  cursor: pointer;
  outline: none;
}
/* Native option list: explicit colours so it is readable in both themes */
.company-switch select option,
.form-select option { background-color: var(--surface); color: var(--text); }
:root[data-theme="dark"] .company-switch { background: var(--surface-2); border-color: var(--border-strong); color: var(--brand-600); }
:root[data-theme="dark"] .company-switch:hover { border-color: var(--brand-500); }
.company-switch .caret { position: absolute; inset-inline-end: 14px; font-size: 11px; color: var(--muted); pointer-events: none; }
.topbar-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: var(--surface-2); color: var(--text); }
.nav-btn.active { background: var(--brand-50); color: var(--brand-600); }
.nav-btn.icon-only { width: 40px; justify-content: center; padding: 0; }
.nav-btn kbd { margin-inline-start: 4px; }
#search { border: 1px solid var(--border); background: var(--surface); min-width: 210px; color: var(--muted); }
#search:hover { border-color: var(--border-strong); color: var(--text); }
#search kbd { margin-inline-start: auto; }

/* ---------- Page ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 28px 28px 64px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 { font-size: 26px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs i { font-size: 10px; margin: 0 6px; }

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 10px; }
.panel-head h2 .ico {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600); font-size: 14px;
}
.panel-body { padding: 22px; }
.panel-section { padding: 20px 22px; border-top: 1px solid var(--border); }
.panel-section > h3 { font-size: 14px; margin: 0 0 14px; color: var(--text-2); }
.panel-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- Forms ---------- */
.form-label { font-weight: 700; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-inline-start: 2px; }
.form-control, .form-select {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background-color: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 9px 13px;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-select { background-position: left 0.75rem center; padding-left: 2.25rem; }
.form-control-sm, .form-select-sm { min-height: 36px; font-size: 14px; padding: 6px 10px; }
.form-control::placeholder { color: #9aa7b6; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: var(--ring); }
.form-control-color { padding: 4px; min-height: 36px; }
.form-check-input:checked { background-color: var(--brand-solid); border-color: var(--brand-solid); }
.form-check-input:focus { box-shadow: var(--ring); }
.feedback { display: block; min-height: 0; color: var(--danger); font-size: 12.5px; font-weight: 700; margin-top: 5px; }
.feedback:empty { margin: 0; }
.invalidInput, .invalidInput:focus { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(196, 49, 75, 0.12) !important; }
.hint { font-size: 12.5px; color: var(--muted); }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields-grid > div { min-width: 0; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: var(--radius-sm); padding: 9px 18px; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; }
.btn-lg { padding: 12px 22px; font-size: 15.5px; }
.btn-brand { background: var(--brand-solid); border: 1px solid var(--brand-solid); color: #fff; box-shadow: 0 1px 2px rgba(14, 89, 143, 0.3); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-solid-hover); border-color: var(--brand-solid-hover); color: #fff; }
.btn-brand:disabled { background: var(--brand-solid); border-color: var(--brand-solid); color: #fff; opacity: .6; }
.btn-soft { background: var(--brand-50); border: 1px solid transparent; color: var(--brand-600); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-outline { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2); }
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--surface); }
.btn-danger-soft { background: var(--danger-50); border: 1px solid transparent; color: var(--danger); }
.btn-danger-soft:hover { background: var(--danger); color: #fff; }
.btn-pdf { background: var(--surface); border: 1px solid var(--border-strong); color: var(--danger); }
.btn-pdf:hover { border-color: var(--danger); background: var(--danger-50); color: var(--danger); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn:focus-visible { box-shadow: var(--ring); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-row .btn { flex: 1 1 180px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
  white-space: nowrap;
}
.chip-success { background: var(--success-50); color: var(--success); border-color: transparent; }
.chip-warning { background: var(--warning-50); color: var(--warning); border-color: transparent; }
.chip-danger { background: var(--danger-50); color: var(--danger); border-color: transparent; }
.chip-brand { background: var(--brand-50); color: var(--brand-600); border-color: transparent; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14px; }
.alert-success { background: var(--success-50); color: var(--success); }
.alert-danger { background: var(--danger-50); color: var(--danger); }
.alert-warning { background: var(--warning-50); color: var(--warning); }
.note-warn {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; font-weight: 700; color: var(--warning);
  background: var(--warning-50); border-radius: 8px; padding: 7px 10px; margin-top: 6px;
}

/* ---------- Workspace (print page) ---------- */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.preview-panel { position: sticky; top: calc(var(--topbar-h) + 20px); }
.stage {
  display: flex; justify-content: center; align-items: center;
  padding: 30px 20px;
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 16px 16px;
}
.preview-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--muted); padding: 5px 12px; border-radius: 7px;
}
.segmented button.active { background: var(--surface); color: var(--brand-600); box-shadow: var(--shadow-sm); }

/* Dropzone */
.dropzone {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--brand-500); background: var(--brand-50); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--brand-600); font-size: 18px; border: 1px solid var(--border);
}
.dropzone .dz-title { font-weight: 700; color: var(--text); }
.dropzone .dz-sub { font-size: 12.5px; color: var(--muted); }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: var(--success-50); }
.dropzone.has-file .dz-icon { color: var(--success); }
.dropzone.invalidInput { border-color: var(--danger) !important; }

/* Image tools */
.img-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.img-tools button {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 14px; cursor: pointer;
  transition: all 0.15s;
}
.img-tools button:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }
.img-tools button:active { transform: scale(0.94); }
.img-tools .sep { width: 1px; background: var(--border); margin: 4px 4px; }

/* Empty state */
.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state .es-icon {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600); font-size: 28px;
}
.empty-state h3 { font-size: 19px; margin-bottom: 6px; }

/* ---------- Card renderer (assets/js/card-render.js) ---------- */
.cr-holder {
  --s: 1.4;
  direction: ltr;
  position: relative;
  width: calc(54.5mm * var(--s));
  height: calc(86.5mm * var(--s));
  flex: 0 0 auto;
}
.cr-holder > .cr-face {
  position: absolute; top: 0; left: 0;
  transform: scale(var(--s)); transform-origin: top left;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.12), 0 12px 32px rgba(15, 27, 45, 0.16);
  border-radius: 2.5mm;
}
.cr-holder > .cr-back { display: none; }
.cr-holder.show-back > .cr-face:not(.cr-back) { display: none; }
.cr-holder.show-back > .cr-back { display: block; }
.cr-face { position: relative; overflow: hidden; background: #fff; }
.cr-bg { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.cr-photo { position: absolute; }
.cr-photo canvas, .cr-photo img { display: block; width: 100%; height: 100%; }
.cr-field { position: absolute; line-height: 1.5; white-space: nowrap; }
.cr-field span { display: inline-block; }

/* ---------- Search modal ---------- */
.modal-content { background: var(--surface); color: var(--text); border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-footer { border-top: 1px solid var(--border); }
.modal-title { font-size: 17px; font-weight: 800; }
.modal-body { padding: 22px 24px; }
.modal-backdrop.show { opacity: 0.35; }
.search-box { position: relative; }
.search-box i { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .form-control { padding-inline-start: 44px; min-height: 52px; font-size: 16px; border-radius: 12px; }
.search-box .btn { position: absolute; inset-inline-end: 6px; top: 6px; bottom: 6px; }
#searchResults { max-height: 56vh; overflow-y: auto; margin-top: 14px; }
.search-count { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.search-empty { color: var(--muted); padding: 36px 20px; text-align: center; }
.search-empty i { font-size: 26px; display: block; margin-bottom: 8px; color: var(--border-strong); }
.search-result {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 8px; font: inherit; color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.search-result:hover, .search-result:focus { border-color: var(--brand-500); background: var(--brand-50); outline: none; }
.sr-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-700); font-weight: 800;
}
.sr-text { flex: 1; min-width: 0; }
.sr-main { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-sub { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--muted); }
.sr-meta b { color: var(--text-2); font-weight: 700; }
.stat-line { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Login ---------- */
body.auth-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(22, 115, 181, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(245, 165, 36, 0.12), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 380px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 36px 32px 30px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.auth-card .logo-mark { margin-bottom: 14px; }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card p { color: var(--muted); font-size: 14px; }
.pin-input {
  text-align: center; font-size: 26px; font-weight: 800;
  letter-spacing: 0.5em; min-height: 58px; border-radius: 14px;
}
.pin-input::placeholder { letter-spacing: 0.3em; }
.auth-foot { margin-top: 22px; font-size: 12px; color: var(--muted); }

/* ---------- Loading + toasts ---------- */
.loading-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: var(--overlay); backdrop-filter: blur(2px);
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--brand-100); border-top-color: var(--brand-600);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toastify {
  font-family: "Almarai", system-ui, sans-serif !important;
  font-weight: 700; font-size: 14px;
  border-radius: 12px !important; padding: 12px 18px !important;
  box-shadow: var(--shadow-lg) !important; background-image: none !important;
}
.toastify.bg-success { background: var(--success) !important; }
.toastify.bg-danger { background: var(--danger) !important; }
.toastify.bg-warning { background: var(--warning) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  #search span { display: none; }
  #search { min-width: 0; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 14px; gap: 10px; height: auto; min-height: var(--topbar-h); flex-wrap: wrap; padding-block: 10px; }
  .brand-text small { display: none; }
  .company-switch { order: 3; width: 100%; margin: 0; }
  .nav-btn span, .nav-btn kbd { display: none; }
  .page { padding: 20px 14px 48px; }
  .fields-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* QR code box on the card (canvas in previews, baked image in print) */
.cr-qr { position: absolute; }
.cr-qr canvas, .cr-qr img { display: block; width: 100%; height: 100%; }

.chip-xs { font-size: 10.5px; padding: 1px 7px; margin-inline-start: 6px; vertical-align: middle; }
.note-info {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--text-2);
  background: var(--brand-50); border-radius: 10px; padding: 12px 14px;
}
.note-info > i { color: var(--brand-600); margin-top: 3px; }

/* Confirmation modal (confirmDialog in script.js) */
.confirm-dialog { max-width: 420px; }
.confirm-body { text-align: center; padding: 30px 28px 24px; }
.confirm-icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.confirm-danger { background: var(--danger-50); color: var(--danger); }
.confirm-warning { background: var(--warning-50); color: var(--warning); }
.confirm-brand { background: var(--brand-50); color: var(--brand-600); }
.confirm-title { font-size: 18px; margin-bottom: 6px; }
.confirm-message { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.confirm-actions { display: flex; gap: 10px; margin-top: 22px; }
.confirm-actions .btn { flex: 1; }
.btn-danger-solid { background: var(--danger); border: 1px solid var(--danger); color: #fff; }
.btn-danger-solid:hover, .btn-danger-solid:focus { background: #a5263c; border-color: #a5263c; color: #fff; }
:root[data-theme="dark"] .btn-danger-solid { background: #c4314b; border-color: #c4314b; }
