/*
 * ═══════════════════════════════════════════════════════════════════════════
 * DIGITAL CARDS PORTAL - GLOBAL DESIGN SYSTEM
 * styles.css · LOAD ON EVERY PAGE (first stylesheet after Bootstrap)
 * ───────────────────────────────────────────────────────────────────────────
 * Everything shared by the whole portal lives here:
 *   1.  Design tokens (:root)          8.  Badges / status pills
 *   2.  Base reset & typography        9.  Alerts (inline)
 *   3.  Utilities / helpers           10.  Dropdown & action menus
 *   4.  Page hero + breadcrumbs       11.  Modals (all variants)
 *   5.  Section titles                12.  Summary / filter cards
 *   6.  Cards & stat cards            13.  Scroll-to-top
 *   7.  Buttons (all variants)        14.  Welcome page
 *   7A. Empty state (shared card)     15.  Global responsive
 * table.css and form.css NEVER redefine anything in this file - they only add
 * table-only / form-only rules on top of these globals.
 * ═══════════════════════════════════════════════════════════════════════════
 */

@charset "UTF-8";

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Typography */
  --font-sans: "Inter", "Roboto", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;

  /* Brand - sky blue */
  --brand: #50c5ff;
  --brand-dark: #36bafc;
  --brand-deeper: #0369a1;
  /* PHASE 3: brand-soft/brand-ring/brand-hover previously mixed in the
     older #0ea5e9 blue family instead of the current #50c5ff brand -
     corrected so every focus ring / soft tint matches the live brand.
     No call sites changed; they all read these tokens so the fix applies
     everywhere automatically. */
  --brand-soft: rgba(80, 197, 255, 0.07);
  --brand-ring: rgba(80, 197, 255, 0.2);
  --brand-hover: #16a6e6;
  /* was --dc-nav-blue-dark in navbar.css - a darker, more saturated hover
     shade tuned for the dark navbar; kept distinct from --brand-dark
     (used on light surfaces) rather than merged into it. */
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;

  /* Neutrals - cool slate */
  --n-0: #ffffff;
  --n-50: #f8fafc;
  --n-100: #f1f5f9;
  --n-150: #eaf0f6;
  --n-200: #e2e8f0;
  --n-300: #cbd5e1;
  --n-400: #94a3b8;
  --n-500: #64748b;
  --n-600: #475569;
  --n-700: #334155;
  --n-800: #1e293b;
  --n-900: #0f172a;
  --n-950: #070e1a;

  /* Semantic colors */
  --green-50: #ecfdf5;
  --green: #10b981;
  --green-dark: #059669;
  --green-text: #065f46;

  --amber-50: #fffbeb;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-text: #92400e;

  --red-50: #fef2f2;
  --red: #ef4444;
  --red-dark: #dc2626;
  --red-text: #991b1b;

  --violet-50: #f5f3ff;
  --violet: #8b5cf6;
  --violet-dark: #7c3aed;
  --violet-text: #5b21b6;

  /* Navigation (dark surfaces: navbar, offcanvas, auth side panel, preloader)
     PHASE 3: centralized here from navbar.css's own :root - navbar.css,
     auth.css and any other dark-panel UI now consume these instead of
     redefining the same values locally. */
  --nav-bg: #0c1630;
  --nav-bg-secondary: #111827;
  --nav-text: rgba(255, 255, 255, 0.86);
  --nav-muted: rgba(255, 255, 255, 0.56);
  --nav-card: rgba(255, 255, 255, 0.06);

  /* Footer (dark surface, same family as Navigation above)
     PHASE 4: centralized here from components/footer.blade.php's own
     embedded <style> block. Mapping from the old --boq-footer-* names:
       --boq-footer-bg          -> var(--nav-bg)          (identical value, #0c1630)
       --boq-footer-accent      -> var(--brand)            (identical value, #50c5ff)
       --boq-footer-accent-hover -> var(--brand-dark)      (identical value, #36bafc)
       --boq-footer-white       -> var(--text-inv)         (identical value, #ffffff)
       --boq-footer-input-text  -> var(--nav-bg)           (identical value, #0c1630)
     The remaining four are kept as their own tokens below - each is a
     translucency/tint tuned specifically for the footer and does not
     match any existing global token closely enough to reuse without
     changing its appearance. */
  --footer-text: rgba(255, 255, 255, 0.82);
  --footer-soft: rgba(255, 255, 255, 0.72);
  --footer-muted: rgba(255, 255, 255, 0.66);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-card: rgba(255, 255, 255, 0.045);
  --footer-error: #ff8f8f;
  --footer-success: #7ee2b8;

  /* Surfaces */
  --bg: #f1f5f9;
  --bg-page: #f1f5f9;
  --surface: #ffffff;
  --surface-1: #f8fafc;
  --surface-2: #f1f5f9;

  /* Borders */
  --border: #e2e8f0;
  --border-md: #cbd5e1;
  --border-focus: var(--brand);

  /* Text */
  --text: #334155;
  --text-head: #0f172a;
  --text-muted: #64748b;
  /* PHASE 4 a11y fix: was #94a3b8 (2.56:1 on white / 2.45:1 on --n-50 -
     fails WCAG AA). Inspected every usage first (id-cell values,
     detail-item/detail-view-item field labels, delete-modal-card labels,
     table-date-sub, stat-card captions, the .u-faint utility, plus
     decorative uses: form-field icons, input placeholders, select arrows).
     Several carry real information (ID numbers, field labels, secondary
     dates) at small sizes that don't qualify for the WCAG large-text
     exception, so this token needed to clear 4.5:1 outright rather than
     get a second "meaningful-text" token - that would have meant a near
     match to --text-muted (#64748b, 4.76:1) anyway, since AA leaves very
     little room below it at these font sizes. New value keeps --text-faint
     visibly a step lighter than --text-muted while passing 4.72:1 on white
     and 4.51:1 on --n-50 (used by delete-modal-card). Decorative icons and
     placeholders inherit the same darker tone; that's a minor, harmless
     legibility gain there, not a hierarchy change - none of them compete
     with heading/label text for attention. */
  --text-faint: #667585;
  --text-inv: #ffffff;

  /* Elevation */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.07), 0 3px 6px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 16px 40px rgba(15, 23, 42, 0.08), 0 6px 12px rgba(15, 23, 42, 0.04);

  /* Radius */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-pill: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.12s var(--ease);
  --t-base: 0.2s var(--ease);
  --t-slow: 0.35s var(--ease);

  /* Backward-compatible aliases (older blades / vendor themes) */
  --default-font: var(--font-sans);
  --heading-font: var(--font-display);
  --background-color: var(--bg);
  --surface-color: var(--surface);
  --default-color: var(--text);
  --heading-color: var(--text-head);
  --accent-color: var(--brand);
  --accent-hover: var(--brand-dark);
  --accent-soft: var(--brand-soft);
  --border-color: var(--border);
  --contrast-color: var(--text-inv);
  --box-shadow-md: var(--shadow-md);

  scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════
   2. BASE RESET & TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  /* readable base - steps down on small phones */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-head);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 0;
}

p {
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

section,
.section {
  padding: 52px 0;
  background: var(--bg);
  overflow: clip;
}

/* ═══════════════════════════════════════════════════════════════
   3. UTILITIES / HELPERS  (portal-specific; Bootstrap covers the rest)
   ═══════════════════════════════════════════════════════════════ */
.surface-card {
  /* generic elevated white panel */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
}

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

.u-faint {
  color: var(--text-faint) !important;
}

.u-head {
  color: var(--text-head) !important;
}

.u-nowrap {
  white-space: nowrap;
}

.u-break {
  overflow-wrap: anywhere;
  word-break: normal;
}

.u-hide {
  display: none !important;
}

.u-full {
  width: 100% !important;
}

.sr-only {
  /* accessible visually-hidden */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Icon size scale - formalizes the sizes already in use across the portal.
   Apply only where it replaces repeated arbitrary sizing; most icons are
   already sized correctly by their surrounding component and need no class. */
.icon-xs {
  font-size: 0.75rem;
}

.icon-sm {
  font-size: 0.875rem;
}

.icon-md {
  font-size: 1rem;
}

.icon-lg {
  font-size: 1.25rem;
}

.icon-xl {
  font-size: 1.75rem;
}

.icon-2xl {
  font-size: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   4. PAGE HERO + BREADCRUMBS  (.page-header / legacy .web-panel-hero)
   ═══════════════════════════════════════════════════════════════ */
.page-header,
.web-panel-hero {
  position: relative;
  min-height: 300px;
  padding: 96px 24px 56px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

/* dark gradient overlay */
.page-header::before,
.web-panel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(7, 14, 26, 0.96) 0%,
    rgba(14, 27, 52, 0.88) 38%,
    rgba(14, 27, 52, 0.72) 100%
  );
}

/* accent glow top-right */
.page-header::after,
.web-panel-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.page-header .container,
.web-panel-hero .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
}

.hero-badge,
.web-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin-bottom: 20px;
  border-radius: var(--r-pill);
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero-badge i,
.web-hero-badge i {
  color: var(--brand);
}

.page-header h1,
.web-panel-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-header > .container > p,
.web-panel-hero > .container > p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.925rem;
  line-height: 1.75;
}

/* Breadcrumbs */
.page-header .breadcrumbs,
.web-panel-hero .breadcrumbs {
  margin-top: 24px;
}

.page-header .breadcrumbs ol,
.web-panel-hero .breadcrumbs ol {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-header .breadcrumbs li,
.web-panel-hero .breadcrumbs li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.page-header .breadcrumbs li a,
.web-panel-hero .breadcrumbs li a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--t-fast);
}

.page-header .breadcrumbs li a:hover,
.web-panel-hero .breadcrumbs li a:hover {
  color: var(--brand);
}

.page-header .breadcrumbs li:last-child,
.web-panel-hero .breadcrumbs li:last-child {
  color: var(--brand);
  font-weight: 700;
}

.page-header .breadcrumbs li + li::before,
.web-panel-hero .breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

/* centered page-title hero */
.page-title.page-header,
.page-title.web-panel-hero,
.page-title.page-header > .container,
.page-title.web-panel-hero > .container {
  text-align: center;
}

.page-title.page-header > .container > p,
.page-title.web-panel-hero > .container > p {
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   5. SECTION TITLE  (.section-title)
   ═══════════════════════════════════════════════════════════════ */
.section-title {
  margin-bottom: 28px;
}

.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title h2::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--brand);
  opacity: 0.4;
}

.section-title p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   6. STAT CARDS  (.stat-card / legacy .web-top-card)
   ═══════════════════════════════════════════════════════════════ */
.stat-card,
.web-top-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--t-base),
    box-shadow var(--t-base),
    transform var(--t-base);
  overflow: hidden;
}

.stat-card::before,
.web-top-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.stat-card:hover,
.web-top-card:hover {
  border-color: var(--brand-ring);
  box-shadow:
    var(--shadow-md),
    0 0 0 3px var(--brand-soft);
  transform: translateY(-2px);
}

.stat-card:hover::before,
.web-top-card:hover::before {
  opacity: 1;
}

.stat-card--danger,
.web-top-card-danger-soft {
  border-color: rgba(239, 68, 68, 0.18);
}

.stat-card--danger::before,
.web-top-card-danger-soft::before {
  background: linear-gradient(90deg, var(--red), transparent);
}

.stat-card-icon,
.web-top-card-icon,
.web-table-title-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 1.15rem;
  border: 1px solid var(--brand-200);
}

.stat-card-icon--success,
.web-top-card-success {
  background: var(--green-50);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.2);
}

.stat-card-icon--danger,
.web-top-card-danger {
  background: var(--red-50);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.2);
}

.stat-card-body,
.web-top-card-content {
  flex: 1 1 auto;
  min-width: 0;
}

.stat-card-body h4,
.web-top-card-content h4 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-card-value,
.web-top-card-value {
  margin-bottom: 6px;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-head);
  line-height: 1;
}

.stat-card-body p,
.web-top-card-content p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════════
   7. BUTTONS  (one system, many aliases)
   ───────────────────────────────────────────────────────────────
   Canonical:  .btn-primary  .btn-secondary  .btn-danger  .btn-light
               .btn-success  .btn-warning  .btn-info  .btn-ghost  (Phase 3)
   Form alias: .form-btn + .form-btn-primary / -light / -secondary / -danger
               / -success / -warning / -info / -ghost  (Phase 3)
   Legacy:     .btn-1 (primary) .btn-2 .btn-3 (secondary) .action-btn
   ═══════════════════════════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-light,
.btn-success,
.btn-warning,
.btn-info,
.btn-ghost,
.btn-full,
.btn-1,
.btn-2,
.btn-3,
.action-btn,
.btn-pill,
.schedule-action-btn,
.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.862rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-base);
  position: relative;
}

.form-btn:hover,
.form-btn:focus,
.btn-primary:focus,
.btn-secondary:focus {
  text-decoration: none;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-success:disabled,
.btn-warning:disabled,
.btn-info:disabled,
.btn-ghost:disabled,
.form-btn:disabled,
.form-btn.disabled,
.btn-1:disabled,
.btn-2:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary
   PHASE 4 accessibility fix: white text on the #50c5ff brand fill measured
   1.95:1 (fails WCAG AA). Brand stays #50c5ff - only the text color changes,
   to --text-head (the same dark-navy token already used for headings),
   which reaches 9.16:1 on the default fill and 8.15:1 on the hover fill. */
.btn-primary,
.btn-1,
.form-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-head);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover,
.btn-1:hover,
.form-btn-primary:hover,
.btn-primary:focus,
.form-btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--text-head);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
  transform: translateY(-1px);
}

/* Secondary / light */
.btn-secondary,
.btn-2,
.btn-3,
.btn-light,
.schedule-action-btn,
.form-btn-light,
.form-btn-secondary {
  background: var(--surface);
  border-color: var(--border-md);
  color: var(--text-head);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover,
.btn-2:hover,
.btn-3:hover,
.btn-light:hover,
.schedule-action-btn:hover,
.form-btn-light:hover,
.form-btn-secondary:hover,
.form-btn-light:focus,
.form-btn-secondary:focus {
  background: var(--n-50);
  border-color: var(--brand-ring);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Danger */
.btn-danger,
.form-btn-danger {
  background: var(--red);
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.18);
}

.btn-danger:hover,
.form-btn-danger:hover,
.btn-danger:focus,
.form-btn-danger:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-full,
.btn-3 {
  width: 100%;
}

.btn-pill {
  border-radius: var(--r-pill);
}

/* Compact row-action buttons */
.action-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
  background: var(--brand-soft);
  border-color: rgba(14, 165, 233, 0.15);
  color: var(--brand-deeper);
  border-radius: var(--r-sm);
  font-weight: 600;
}

.action-btn:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.28);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.action-btn--edit,
.action-btn-edit {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.18);
  color: var(--amber-dark);
}

.action-btn--edit:hover,
.action-btn-edit:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: var(--amber-text);
}

.action-btn--delete,
.button-action-btn-delete,
.btn-danger.btn-pill {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.16);
  color: var(--red-dark);
  box-shadow: none;
}

.action-btn--delete:hover,
.button-action-btn-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.26);
  color: var(--red-text);
  transform: translateY(-1px);
}

.action-btn--view {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-head); /* PHASE 4 a11y fix - was #fff at 1.95:1 */
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.action-btn--view:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--text-head);
}

/* Button loading spinner (used by .form-btn.is-loading) */
.form-btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: portalSpin 0.65s linear infinite;
}

.form-btn.is-loading .form-btn-spinner,
.form-btn.loading .form-btn-spinner {
  display: inline-block;
}

@keyframes portalSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Icon-only action trigger (table row "⋮" etc.) */
.portal-action-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--n-600);
  font-size: 1rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
  cursor: pointer;
}

.portal-action-btn:hover,
.portal-action-btn:focus {
  background: var(--n-50);
  border-color: var(--border-md);
  color: var(--brand);
  transform: translateY(-1px);
}

/* Confirm-delete button (used inside modals) */
.btn-delete-confirm,
.supplier-delete-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--red-dark);
  background: var(--red);
  color: #fff;
  font-size: 0.838rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-delete-confirm:hover,
.supplier-delete-confirm:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
}

/* ─────────────────────────────────────────────────────────────
   PHASE 3: SUCCESS / WARNING / INFO / GHOST button variants
   ───────────────────────────────────────────────────────────────
   Not used anywhere in the app yet (audited: zero .btn-success /
   .btn-warning / .btn-info / .btn-ghost references in resources/views),
   so adding these is purely additive - no existing page changes. They
   share the same box model (min-height, padding, radius, font) as
   .btn-primary/.btn-secondary/.btn-danger above, so a future action
   that genuinely needs a success/warning/info/ghost treatment already
   has a matching, consistent option instead of reaching for Bootstrap's
   raw .btn-success etc. or inventing a one-off style.
   ───────────────────────────────────────────────────────────────── */
.btn-success,
.form-btn-success {
  background: var(--green);
  border-color: var(--green-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-success:hover,
.form-btn-success:hover,
.btn-success:focus,
.form-btn-success:focus {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.btn-warning,
.form-btn-warning {
  background: var(--amber);
  border-color: var(--amber-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover,
.form-btn-warning:hover,
.btn-warning:focus,
.form-btn-warning:focus {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.btn-info,
.form-btn-info {
  background: var(--brand-deeper);
  border-color: var(--brand-deeper);
  color: #fff;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.2);
}

.btn-info:hover,
.form-btn-info:hover,
.btn-info:focus,
.form-btn-info:focus {
  background: #075985;
  border-color: #075985;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.28);
}

/* Ghost / text button - lowest-emphasis action (e.g. an inline "Cancel"
   next to a primary submit). No border or fill until interacted with. */
.btn-ghost,
.form-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  box-shadow: none;
}

.btn-ghost:hover,
.form-btn-ghost:hover,
.btn-ghost:focus,
.form-btn-ghost:focus {
  background: var(--n-100);
  color: var(--text-head);
  box-shadow: none;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   7A. EMPTY STATE  (.empty-state* / legacy .web-table-empty*)
   ───────────────────────────────────────────────────────────────
   EMPTY STATE UNIFORMITY FIX (Sept 2026): this block used to live in
   table.css only. It reads fine there for table pages (Participants,
   SMS Logs, Users, ...) because they all push table.css - but Events
   and Templates only push form.css, and SMS Single/Double push
   neither, so components/empty-state.blade.php rendered completely
   unstyled on those pages (icon/title/description left-aligned with
   no card, border, or centering - only the actions row looked right,
   because that used Bootstrap's own d-flex/justify-content-center
   utility classes, which don't depend on this file at all).
   Moved here - styles.css is loaded globally by layouts/app.blade.php
   on every authenticated page - so the one shared empty-state design
   now actually applies everywhere the component is used, regardless
   of which page-specific stylesheets a given page happens to push.
   Classes are unchanged and still double as aliases of the original
   .web-table-empty* names the SMS Logs reference uses, so SMS Logs
   itself needed no edits.
   ═══════════════════════════════════════════════════════════════ */
.empty-state-row,
.web-table-empty {
  padding: 0 !important;
  border-bottom: 0 !important;
  background: transparent;
}

.empty-state-cell,
.web-table-empty-cell {
  padding: 48px 24px !important;
  border-bottom: 0 !important;
}

.empty-state,
.web-table-empty-state {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-md);
  border-radius: var(--r-2xl);
}

/* Wide modifier - requested for View Event: spans the full width of its
   parent (like .form-card) instead of the standard 440px compact card.
   Opt-in only (components/empty-state.blade.php's `wide` prop) - SMS Logs,
   Participants, Templates and SMS Single/Double keep the default compact
   width above unless a page explicitly asks for this instead. */
.empty-state-wide {
  max-width: none;
}

.empty-state-icon,
.web-table-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--r-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
  color: var(--brand);
  font-size: 1.5rem;
  border: 1px solid var(--brand-200);
}

.empty-state h6,
.web-table-empty-state h6 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
}

.empty-state p,
.web-table-empty-state p {
  margin: 0 0 20px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.empty-state-btn,
.web-table-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--r-md);
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--text-head); /* PHASE 4 a11y fix - was #fff at 1.95:1 */
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-base);
}

.empty-state-btn:hover,
.web-table-empty-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--text-head);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   8. BADGES / STATUS PILLS  (one base, many aliases)
   ───────────────────────────────────────────────────────────────
   Bases: .status-badge (min-width) · .web-status-badge · .web-role-badge · .badge-pill
   Variants: success / warning / danger / info / neutral / admin
   ═══════════════════════════════════════════════════════════════ */
.status-badge,
.web-status-badge,
.web-role-badge,
.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-badge i,
.web-status-badge i,
.badge-pill i {
  font-size: 0.8rem;
}

/* .status-badge keeps a comfortable min width for table cells */
.status-badge {
  min-width: 110px;
  min-height: 30px;
}

/* participants/index.blade.php - a <button> styled as a .status-badge
   (e.g. to open the SMS delivery history) needs its default button
   chrome removed. */
.status-badge--btn {
  border: none;
  cursor: pointer;
}

/* success / active */
.status-success,
.web-status-active,
.badge--success,
.status-published {
  background: var(--green-50);
  border-color: rgba(16, 185, 129, 0.22);
  color: var(--green-text);
}

/* warning / inactive / pending / draft */
.status-warning,
.web-status-inactive,
.badge--warning,
.status-draft {
  background: var(--amber-50);
  border-color: rgba(245, 158, 11, 0.22);
  color: var(--amber-text);
}

/* danger / failed / suspended */
.status-danger,
.web-status-suspended,
.web-status-out-of-stock,
.badge--danger,
.status-cancelled {
  background: var(--red-50);
  border-color: rgba(239, 68, 68, 0.22);
  color: var(--red-text);
}

/* info */
.status-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* neutral / secondary / default */
.status-secondary,
.badge--neutral,
.web-role-user,
.badge--dark,
.status-completed,
.status-default {
  background: var(--n-100);
  border-color: var(--border);
  color: var(--n-600);
}

/* brand / primary */
.badge--primary,
.web-role-panelist {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-deeper);
}

/* admin / violet */
.badge--admin,
.web-role-admin {
  background: var(--violet-50);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--violet-dark);
}

/* ═══════════════════════════════════════════════════════════════
   9. INLINE ALERTS  (.inline-alert*)  - page-level notices
   Form-scoped alerts (.form-alert) live in form.css but share these colors.
   ═══════════════════════════════════════════════════════════════ */
.inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.inline-alert i {
  flex-shrink: 0;
  margin-top: 2px;
}

.inline-alert ul {
  padding-left: 16px;
  margin-bottom: 0;
}

.inline-alert--success {
  background: var(--green-50);
  border-color: rgba(16, 185, 129, 0.22);
  color: var(--green-text);
}

.inline-alert--danger {
  background: var(--red-50);
  border-color: rgba(239, 68, 68, 0.22);
  color: var(--red-text);
}

.inline-alert--warning {
  background: var(--amber-50);
  border-color: rgba(245, 158, 11, 0.22);
  color: var(--amber-text);
}

.inline-alert--info {
  background: var(--brand-50);
  border-color: var(--brand-ring);
  color: var(--brand-deeper);
}

/* ═══════════════════════════════════════════════════════════════
   10. DROPDOWN & FLOATING ACTION MENUS
   ═══════════════════════════════════════════════════════════════ */
.portal-dropdown-menu {
  z-index: 9999;
  min-width: 220px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.portal-dropdown-menu .dropdown-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md);
  color: var(--text-head);
  font-size: 0.86rem;
  font-weight: 600;
}

.portal-dropdown-menu .dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
}

.portal-dropdown-menu .dropdown-item:hover {
  background: var(--n-100);
  color: var(--text-head);
}

.portal-dropdown-menu .dropdown-item:hover i {
  color: var(--brand);
}

.portal-dropdown-menu .dropdown-item.text-danger:hover {
  /* PHASE 3: dropped the forced override here - this selector (3 classes
     + :hover) already beats Bootstrap's own .dropdown-item:hover (1
     class + :hover) on specificity, and loads after it, so it wins the
     cascade on its own. */
  background: var(--red-50);
  color: #b91c1c;
}

.portal-dropdown-menu .dropdown-item.text-danger:hover i {
  color: var(--red-dark);
}

.portal-dropdown-menu .dropdown-divider {
  margin: 0.45rem 0;
}

/* let dropdowns overflow their table card */
.web-table-card,
.portal-table-inner {
  overflow: visible;
}

/* JS-positioned floating menu (fixed to viewport) */
.floating-action-menu {
  position: fixed;
  z-index: 999999;
  display: none;
  width: 220px;
  padding: 8px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--border);
}

.floating-action-menu.show {
  display: grid;
  gap: 6px;
}

.floating-action-item {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-head);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.floating-action-item i {
  color: var(--brand);
}

.floating-action-item:hover {
  background: var(--brand-50);
  color: var(--brand-deeper);
}

.floating-action-danger,
.floating-action-danger i {
  color: var(--red-dark);
}

.floating-action-danger:hover {
  background: var(--red-50);
  color: var(--red-dark);
}

/* ═══════════════════════════════════════════════════════════════
   11. MODALS  (global - used on both table & form pages)
   ───────────────────────────────────────────────────────────────
   A. Portal action modal   .portal-modal (SMS / WhatsApp / preview)
   B. Detail / view modal   .detail-modal / .supplier-view-modal
   C. Delete modal          .delete-modal / .supplier-delete-* / .portal-delete-*
   ═══════════════════════════════════════════════════════════════ */

/* ---- A. Portal action modal ---- */
.portal-modal .modal-dialog {
  max-width: 840px;
  margin: 1.25rem auto;
}

.portal-modal.portal-modal-wide .modal-dialog {
  max-width: 940px;
}

.portal-modal.portal-modal-small .modal-dialog {
  max-width: 640px;
}

.portal-modal .modal-content {
  border: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.portal-modal .modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(80, 197, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.portal-modal .modal-body {
  padding: 28px;
}

.portal-modal .modal-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fbfdff;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-modal .modal-title {
  margin: 0;
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.portal-modal-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.portal-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 12px;
  margin-bottom: 8px;
  border-radius: var(--r-pill);
  background: rgba(80, 197, 255, 0.12);
  border: 1px solid rgba(80, 197, 255, 0.18);
  color: #1b5878;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: rgba(80, 197, 255, 0.08);
  border: 1px solid rgba(80, 197, 255, 0.16);
  margin-bottom: 22px;
}

.portal-info-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(80, 197, 255, 0.14);
  color: var(--brand);
  font-size: 1.1rem;
}

.portal-info-box h6 {
  margin: 0 0 5px;
  color: var(--text-head);
  font-size: 0.96rem;
  font-weight: 800;
}

.portal-info-box p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* summary grid inside modals (2-col default) */
.portal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.portal-summary-card {
  min-width: 0;
  padding: 16px;
  border-radius: var(--r-xl);
  background: #f8fbfd;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.portal-summary-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-summary-card strong {
  display: block;
  color: var(--text-head);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.portal-preview {
  margin-top: 10px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 18px;
  min-height: 190px;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--text);
}

.portal-modal .form-btn {
  min-width: 165px;
  justify-content: center;
}

/* ---- B. Detail / view modal ---- */
.detail-modal .modal-content,
.supplier-view-modal .modal-content {
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-hero-header,
.supplier-view-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--n-50) 0%, var(--brand-50) 100%);
}

.modal-kicker,
.supplier-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  margin-bottom: 8px;
  border-radius: var(--r-pill);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  color: var(--brand-deeper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.modal-hero-header .modal-title,
.supplier-view-header .modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-head);
  font-family: var(--font-display);
}

.modal-detail-body,
.supplier-view-body {
  padding: 22px 24px;
  background: var(--n-50);
}

.modal-entity-card,
.supplier-modal-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
}

.modal-entity-icon,
.supplier-modal-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand);
  border: 1px solid var(--brand-200);
  font-size: 1.2rem;
}

/* components/user-profile.blade.php - clips a profile photo <img> to the
   icon's rounded shape instead of showing initials. */
.modal-entity-icon--photo {
  overflow: hidden;
}

.modal-entity-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.modal-entity-card h6,
.supplier-modal-summary h6 {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-head);
}

.modal-entity-card p,
.supplier-modal-summary p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail-grid,
.supplier-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item,
.supplier-detail-item {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.detail-item--full,
.supplier-detail-full {
  grid-column: 1 / -1;
}

.detail-item span,
.supplier-detail-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.detail-item strong,
.supplier-detail-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-head);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.modal-detail-footer,
.supplier-view-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ---- C. Delete modal (.delete-modal / .supplier-delete-* / .portal-delete-*) ---- */
.delete-modal .modal-content,
.supplier-delete-modal .modal-content,
.portal-delete-modal .modal-content {
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.delete-modal-top,
.supplier-delete-top,
.portal-delete-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 0;
  background: var(--surface);
}

.delete-modal-icon,
.supplier-delete-icon,
.portal-delete-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-50);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: var(--red-dark);
  font-size: 1.1rem;
}

.delete-modal-body,
.supplier-delete-body,
.portal-delete-body {
  padding: 16px 24px;
  background: var(--surface);
}

.delete-modal-body h5,
.supplier-delete-body h5,
.portal-delete-body h5 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-head);
}

.delete-modal-body p,
.supplier-delete-body p,
.portal-delete-body p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.delete-modal-card,
.supplier-delete-card {
  margin: 14px 0;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: var(--n-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.delete-modal-card span,
.supplier-delete-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.delete-modal-card strong,
.supplier-delete-card strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-head);
  overflow-wrap: anywhere;
}

.delete-modal-warning,
.supplier-delete-warning,
.portal-delete-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--red-50);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--red-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
}

.delete-modal-footer,
.supplier-delete-footer,
.portal-delete-footer {
  padding: 14px 24px 22px;
  border-top: 0;
  background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════════
   12. SUMMARY / FILTER CARDS  (shared notice card)
   ═══════════════════════════════════════════════════════════════ */
.filter-summary-card,
.form-summary-card {
  padding: 12px 16px;
  border-radius: var(--r-xl);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: var(--brand-deeper);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   13. SCROLL TO TOP
   ═══════════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  background: var(--brand);
  color: var(--text-head); /* PHASE 4 a11y fix - was #fff at 1.95:1 */
  border: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
  cursor: pointer;
  transition: all var(--t-base);
}

.scroll-top i {
  font-size: 18px;
}

.scroll-top:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   14. WELCOME PAGE  (welcome.blade.php)
   ═══════════════════════════════════════════════════════════════ */
.welcome-page {
  min-height: 100vh;
  padding: 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 32%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.06), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.welcome-card {
  width: 100%;
  max-width: 760px;
  padding: 48px;
  border-radius: var(--r-2xl);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 70%);
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 2;
}

.welcome-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 22px;
  padding: 14px;
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--brand-200);
  box-shadow: var(--shadow-md);
}

.welcome-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-deeper);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.welcome-badge i {
  color: var(--brand);
}

.welcome-title {
  margin: 0 0 16px;
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.welcome-text {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--text);
  font-size: 0.975rem;
  line-height: 1.8;
}

.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.welcome-btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t-base);
  border: 1px solid transparent;
}

.welcome-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-head); /* PHASE 4 a11y fix - was #fff at 1.95:1 */
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.26);
}

.welcome-btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--text-head);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.34);
}

.welcome-btn-light {
  background: var(--surface);
  border-color: var(--border-md);
  color: var(--text-head);
  box-shadow: var(--shadow-xs);
}

.welcome-btn-light:hover {
  border-color: var(--brand-ring);
  color: var(--brand-dark);
  background: var(--n-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.welcome-note {
  max-width: 590px;
  margin: 0 auto;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-deeper);
  font-size: 0.88rem;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.welcome-note i {
  color: var(--brand-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   15. GLOBAL RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .page-header,
  .web-panel-hero {
    min-height: 260px;
    padding: 88px 18px 48px;
  }
}

@media (max-width: 767.98px) {
  section,
  .section {
    padding: 40px 0;
  }

  .page-header,
  .web-panel-hero {
    padding: 76px 16px 40px;
    min-height: auto;
  }

  .hero-badge,
  .web-hero-badge {
    font-size: 0.68rem;
  }

  .page-header h1,
  .web-panel-hero h1 {
    font-size: 1.6rem;
  }

  .stat-card,
  .web-top-card {
    padding: 18px;
  }

  .stat-card-value,
  .web-top-card-value {
    font-size: 1.55rem;
  }

  .stat-card-icon,
  .web-top-card-icon,
  .web-table-title-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  /* modals go edge-to-edge on phones */
  .portal-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

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

  .page-header h1,
  .web-panel-hero h1 {
    font-size: 1.4rem;
  }

  .stat-card,
  .web-top-card {
    gap: 14px;
    border-radius: var(--r-lg);
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-light,
  .btn-success,
  .btn-warning,
  .btn-info,
  .btn-ghost,
  .btn-1,
  .btn-2,
  .action-btn,
  .form-btn {
    min-height: 40px;
    font-size: 0.82rem;
  }

  .section-title p {
    font-size: 1.15rem;
  }

  .welcome-page {
    padding: 16px 12px;
  }

  .welcome-card {
    padding: 28px 18px;
    border-radius: var(--r-xl);
  }

  .welcome-logo {
    width: 86px;
    height: 86px;
  }

  .welcome-title {
    font-size: 1.85rem;
  }

  .welcome-text {
    font-size: 0.9rem;
  }

  .welcome-actions {
    flex-direction: column;
    gap: 10px;
  }

  .welcome-btn {
    width: 100%;
    min-height: 46px;
  }
}

/* ---- Mobile modal fit (portal-modal) ---- */
@media (max-width: 768px) {
  .portal-modal .modal-dialog,
  .portal-modal.portal-modal-wide .modal-dialog,
  .portal-modal.portal-modal-small .modal-dialog {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 10px auto;
    height: calc(100dvh - 20px);
    display: flex;
    align-items: center;
  }

  .portal-modal .modal-content {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
  }

  .portal-modal .modal-header {
    padding: 15px 16px;
    flex: 0 0 auto;
  }

  .portal-modal .modal-title {
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .portal-modal-subtitle {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 4px;
  }

  .portal-modal .modal-body {
    padding: 15px 16px;
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }

  .portal-info-box {
    padding: 12px;
    gap: 10px;
    border-radius: var(--r-lg);
    margin-bottom: 14px;
  }

  .portal-info-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    font-size: 0.9rem;
  }

  .portal-info-box h6 {
    font-size: 0.84rem;
    margin-bottom: 3px;
  }

  .portal-info-box p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .portal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
  }

  .portal-summary-card {
    padding: 12px;
    border-radius: 13px;
  }

  .portal-summary-card strong {
    font-size: 0.9rem;
  }

  .portal-preview {
    min-height: 105px;
    max-height: 150px;
    padding: 12px;
    border-radius: var(--r-lg);
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .portal-modal .modal-footer {
    padding: 12px 16px 14px;
    flex: 0 0 auto;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 9px;
  }

  .portal-modal .form-btn {
    width: 100%;
    min-width: unset;
    min-height: 40px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   16. FOOTER (site-wide, every page)
   Migrated from components/footer.blade.php's embedded <style> block.
   Selectors and appearance are unchanged - only the local :root has been
   folded into the global one above (see the PHASE 4 comment there).
   ═══════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  overflow: hidden;
  color: var(--footer-text);
  font-size: 14px;
  background:
    radial-gradient(circle at top right, rgba(80, 197, 255, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(80, 197, 255, 0.08), transparent 32%),
    linear-gradient(90deg, var(--nav-bg) 0%, var(--nav-bg) 45%, var(--nav-bg) 100%);
  border-top: 1px solid rgba(80, 197, 255, 0.08);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.footer .footer-top,
.footer .copyright {
  position: relative;
  z-index: 2;
}

.footer .footer-top {
  padding: 56px 0 24px;
}

.footer .footer-container {
  width: 96%;
  max-width: 1550px;
}

.footer .footer-row {
  --bs-gutter-x: 3.5rem;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 18px;
  color: var(--text-inv);
  text-decoration: none;
}

.footer-logo-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(80, 197, 255, 0.1);
  border: 1px solid rgba(80, 197, 255, 0.22);
  box-shadow: 0 8px 22px rgba(80, 197, 255, 0.16);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-logo-mark img {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  display: block;
  object-fit: contain;
}

.footer-logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  color: var(--text-inv);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.footer-logo-text span {
  color: var(--brand);
}

.footer-logo:hover {
  color: var(--text-inv);
}

.footer-logo:hover .footer-logo-mark {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(80, 197, 255, 0.26);
}

.footer .footer-desc {
  max-width: 430px;
  margin: 0 0 18px;
  color: var(--footer-soft);
  font-size: 14px;
  line-height: 1.82;
}

.footer .footer-contact {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.footer .footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.65;
}

.footer .footer-contact i {
  width: 18px;
  min-width: 18px;
  margin-top: 2px;
  color: var(--brand);
  font-size: 15px;
  text-align: center;
}

.footer .footer-contact strong {
  color: var(--text-inv);
  font-weight: 600;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer .footer-contact a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease;
}

.footer .footer-contact a:hover {
  color: var(--brand);
}

.footer h4 {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  color: var(--text-inv);
  font-size: 17px;
  font-weight: 700;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.footer .footer-links {
  margin-bottom: 24px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul i {
  color: var(--brand);
  font-size: 12px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.footer .footer-links ul a {
  position: relative;
  display: inline-block;
  color: var(--footer-soft);
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer .footer-links ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width 0.25s ease;
}

.footer .footer-links ul li:hover i {
  transform: translateX(3px);
}

.footer .footer-links ul a:hover {
  color: var(--text-inv);
}

.footer .footer-links ul a:hover::after {
  width: 100%;
}

.footer .social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer .social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--footer-card);
  border: 1px solid rgba(80, 197, 255, 0.28);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.footer .social-links a:hover {
  transform: translateY(-3px);
  color: var(--text-inv);
  background: var(--brand);
  border-color: var(--brand);
}

.footer .subscribe-note {
  margin-bottom: 14px;
  color: var(--footer-soft);
  line-height: 1.72;
}

.footer form {
  margin-top: 8px;
}

.footer .form-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.footer .subscribe-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer .subscribe-methods .form-check {
  margin: 0;
  padding: 0;
}

.footer .subscribe-methods label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.footer .subscribe-methods .form-check-input {
  margin: 0;
  cursor: pointer;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.footer .subscribe-methods .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.footer .subscribe-methods .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(80, 197, 255, 0.16);
}

.footer .subscribe-methods i {
  color: var(--brand);
  font-size: 14px;
}

.footer .subscribe-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: var(--text-inv);
  color: var(--nav-bg);
  box-shadow: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.footer .subscribe-input::placeholder {
  color: #98a2b3;
}

.footer .subscribe-input:focus {
  border-color: rgba(80, 197, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(80, 197, 255, 0.1);
  background: var(--text-inv);
  color: var(--nav-bg);
}

/* Invalid field state (set by the subscribe script) */
.footer .subscribe-input.is-invalid {
  border-color: rgba(255, 143, 143, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 143, 143, 0.12);
}

.footer .subscribe-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand);
  color: var(--nav-bg);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(80, 197, 255, 0.18);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.footer .subscribe-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--nav-bg);
  box-shadow: 0 10px 24px rgba(80, 197, 255, 0.22);
}

.footer .subscribe-btn:disabled {
  opacity: 0.9;
  cursor: not-allowed;
  transform: none;
}

/* Feedback banner after subscribing / unsubscribing */
.footer .subscribe-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.footer .subscribe-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.footer .subscribe-alert-success {
  background: rgba(126, 226, 184, 0.1);
  border: 1px solid rgba(126, 226, 184, 0.3);
  color: var(--footer-success);
}

.footer .subscribe-alert-danger {
  background: rgba(255, 143, 143, 0.1);
  border: 1px solid rgba(255, 143, 143, 0.3);
  color: var(--footer-error);
}

/* Secondary "Unsubscribe" action under the main button */
.footer .subscribe-secondary {
  margin-top: 14px;
}

.footer .subscribe-link-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer .subscribe-link-btn i {
  font-size: 1rem;
  color: var(--brand);
}

.footer .subscribe-link-btn:hover {
  background: rgba(80, 197, 255, 0.12);
  border-color: rgba(80, 197, 255, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(80, 197, 255, 0.18);
}

.footer .subscribe-link-btn:active {
  transform: translateY(0);
}

.footer .subscribe-link-btn:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(80, 197, 255, 0.15);
}

.footer .form-text-error {
  display: block;
  margin-top: 6px;
  color: var(--footer-error);
  font-size: 0.84rem;
  line-height: 1.45;
}

.footer .copyright {
  padding: 22px 0 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 10, 28, 0.74);
}

.footer .copyright p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.footer .copyright .sitename {
  color: var(--text-inv);
}

.footer .credits {
  margin-top: 6px;
  color: var(--footer-muted);
  font-size: 13px;
}

.footer .credits a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.footer .footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--footer-muted);
  font-size: 13px;
}

.footer .footer-legal-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer .footer-legal-links a:hover {
  color: var(--brand);
}

.footer .footer-legal-links .footer-legal-sep {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1199.98px) {
  .footer .footer-container {
    width: 100%;
    max-width: 100%;
  }

  .footer .footer-row {
    --bs-gutter-x: 2rem;
  }
}

@media (max-width: 991.98px) {
  .footer .footer-top {
    padding: 48px 0 20px;
  }

  .footer-logo-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
  }

  .footer-logo-mark img {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
  }

  .footer-logo-text {
    font-size: 1.3rem;
  }

  .footer .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .footer {
    font-size: 13.5px;
  }

  .footer .footer-top {
    padding: 42px 0 14px;
  }

  .footer-logo {
    margin-bottom: 15px;
  }

  .footer-logo-text {
    font-size: 1.2rem;
  }

  .footer .footer-desc,
  .footer .subscribe-note {
    font-size: 13.5px;
  }

  .footer h4 {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .footer .footer-links {
    margin-bottom: 20px;
  }

  .footer .footer-links ul li {
    padding: 8px 0;
  }

  .footer .social-links a {
    width: 39px;
    height: 39px;
  }

  .footer .subscribe-input {
    min-height: 48px;
    border-radius: 13px;
  }

  .footer .subscribe-btn {
    min-height: 46px;
    font-size: 0.92rem;
  }
}

@media (max-width: 575.98px) {
  .footer .footer-top {
    padding: 38px 0 10px;
  }

  .footer-logo {
    gap: 8px;
  }

  .footer-logo-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 13px;
  }

  .footer-logo-mark img {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
  }

  .footer-logo-text {
    max-width: 180px;
    overflow: hidden;
    font-size: 1.12rem;
    text-overflow: ellipsis;
  }

  .footer .footer-contact p,
  .footer .footer-links ul a,
  .footer .subscribe-note,
  .footer .credits {
    font-size: 13px;
  }

  .footer h4 {
    font-size: 14px;
  }

  .footer .social-links {
    gap: 8px;
  }

  .footer .social-links a {
    width: 36px;
    height: 36px;
  }

  .footer .subscribe-input {
    min-height: 46px;
    border-radius: 12px;
  }

  .footer .subscribe-btn {
    min-height: 44px;
    border-radius: 11px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .footer-logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .footer-logo-mark img {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
  }

  .footer-logo-text {
    max-width: 150px;
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   17. TOAST / NOTIFICATION SYSTEM (site-wide)
   Migrated from components/feedback.blade.php's embedded <style> block.
   The 3 fixed per-severity autohide durations (previously 3 separate
   inline style="animation-duration:...ms" attributes in the Blade file)
   are now folded directly into the existing severity-specific
   .notify-bar rules below, so no new class was needed.
   ═══════════════════════════════════════════════════════════════ */
.notify-region {
  position: fixed;
  top: 96px;
  right: 18px;
  z-index: 1085;
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.notify {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 253, 255, 0.98) 100%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 84%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(14px);
  animation: notifyIn 0.35s ease forwards;
}

@keyframes notifyIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notifyOut {
  to {
    opacity: 0;
    transform: translateX(14px);
  }
}

.notify-out {
  animation: notifyOut 0.25s ease forwards;
}

.notify::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent-color);
}

.notify.success::before {
  background: #22c55e;
}

.notify.error::before {
  background: #ef4444;
}

.notify.warn::before {
  background: #f59e0b;
}

.notify-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notify-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--heading-color);
  font-size: 1rem;
}

.notify.success .notify-icon {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #15803d;
}

.notify.error .notify-icon {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}

.notify.warn .notify-icon {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
  color: #b45309;
}

.notify-content {
  min-width: 0;
  flex: 1 1 auto;
}

.notify-title {
  margin: 2px 0 4px;
  color: var(--heading-color);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.notify-text {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  font-size: 0.92rem;
  line-height: 1.65;
  word-break: break-word;
}

.notify-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  font-size: 0.91rem;
  line-height: 1.6;
  max-height: 132px;
  overflow: auto;
}

.notify-list li + li {
  margin-top: 4px;
}

.notify-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.notify-close:hover {
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  color: var(--heading-color);
}

.notify-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(86, 182, 233, 0.18);
}

.notify-progress {
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  overflow: hidden;
}

.notify-bar {
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: var(--accent-color);
  animation: notifyBar linear forwards;
}

/* Fixed per-severity autohide duration - matches the timings each
   notify type has always used (was inline style="animation-duration"
   on the .notify-bar element in feedback.blade.php). */
.notify.success .notify-bar {
  background: #22c55e;
  animation-duration: 4500ms;
}

.notify.error .notify-bar {
  background: #ef4444;
  animation-duration: 6500ms;
}

.notify.warn .notify-bar {
  background: #f59e0b;
  animation-duration: 9000ms;
}

.notify.is-paused .notify-bar {
  animation-play-state: paused;
}

@keyframes notifyBar {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (max-width: 767.98px) {
  .notify-region {
    top: 88px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .notify {
    border-radius: 16px;
    padding: 13px 13px 11px;
  }

  .notify-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
  }

  .notify-title {
    font-size: 0.97rem;
  }

  .notify-text,
  .notify-list {
    font-size: 0.89rem;
  }
}

@media (max-width: 479.98px) {
  .notify-region {
    top: 82px;
    right: 12px;
    left: 12px;
  }

  .notify-head {
    gap: 10px;
  }

  .notify-close {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .notify-list {
    max-height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notify,
  .notify-out,
  .notify-bar {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   18. PAGE HERO BACKGROUND (shared across admin pages)
   Migrated from an identical inline
   style="background-image:url('{{ asset('assets/img/...webp') }}')"
   repeated on every admin page's hero banner. Same fixed image both
   before and after - only the mechanism moved from inline style to a
   class. Path is relative to this file's own location
   (public/assets/css/styles.css -> public/assets/img/...).
   ═══════════════════════════════════════════════════════════════ */
.page-hero-bg {
  background-image: url("../img/admin-panel.webp");
}

.page-hero-bg--materials {
  background-image: url("../img/materials.webp");
}
