/* ==========================================================================
   Resolve — Design System
   Extracted verbatim from the supplied HTML design, with the brand palette and
   component styles unchanged. Additions for htmx loading states live in
   resolve-app.css so this file can be re-synced with the design if it changes.
   ========================================================================== */
/* =========================================================================
   Nimbus Admin — Design System
   Palette is fixed by brief; type + layout tuned for a calm, dense console.
   ========================================================================= */

:root {
  /* Brand / palette (from brief) */
  --c-primary:        #4F46E5;   /* Slate Indigo  */
  --c-primary-hover:  #4338CA;   /* Deep Indigo   */
  --c-bg:             #F8FAFC;   /* Mist canvas   */
  --c-surface:        #FFFFFF;   /* Cards         */
  --c-nav:            #0F172A;   /* Midnight Slate*/
  --c-text:           #0F172A;   /* Dark Slate    */
  --c-text-muted:     #64748B;   /* Muted Slate   */
  --c-border:         #E2E8F0;   /* Soft Neutral  */
  --c-success:        #10B981;   /* Emerald       */
  --c-warning:        #F59E0B;   /* Amber         */
  --c-danger:         #EF4444;   /* Rose          */
  --c-info:           #0EA5E9;   /* Sky           */

  /* Tints (derived, low-alpha washes for badges/backgrounds) */
  --c-primary-050:  #EEF2FF;
  --c-success-050:  #ECFDF5;
  --c-warning-050:  #FFFBEB;
  --c-danger-050:   #FEF2F2;
  --c-info-050:     #F0F9FF;

  /* Structure */
  --radius:      12px;
  --radius-sm:   9px;
  --radius-pill: 999px;
  --sidebar-w:   264px;
  --topbar-h:    68px;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md:   0 4px 6px -1px rgba(15, 23, 42, .06), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-lg:   0 12px 24px -8px rgba(15, 23, 42, .12);
  --ring:        0 0 0 3px rgba(79, 70, 229, .18);

  /* Bootstrap variable overrides */
  --bs-primary: var(--c-primary);
  --bs-primary-rgb: 79, 70, 229;
  --bs-body-bg: var(--c-bg);
  --bs-body-color: var(--c-text);
  --bs-border-color: var(--c-border);
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-border-radius: var(--radius);
  --bs-link-color: var(--c-primary);
  --bs-link-hover-color: var(--c-primary-hover);
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--c-bg);
  color: var(--c-text);
  font-size: .9375rem;
  letter-spacing: -0.006em;
}

/* Metric numerals + brand get a wider, cooler face */
.font-display { font-family: "Sora", var(--bs-font-sans-serif); letter-spacing: -0.02em; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { color: var(--c-text); font-weight: 650; letter-spacing: -0.018em; }

.text-muted-2 { color: var(--c-text-muted) !important; }
a { text-decoration: none; }

/* ------------------------------------------------------------------ Layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--c-nav);
  color: #cbd5e1;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 1045;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.sidebar__brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0 1.35rem;
  color: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  flex: 0 0 auto;
}
.sidebar__brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--c-primary);
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, .6);
  color:#fff; font-size: 1.05rem;
}
.sidebar__brand b { color: #fff; font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em; }
.sidebar__brand span { color: #94A3B8; font-size: .74rem; display:block; margin-top:-2px; }

.sidebar__nav { padding: .9rem .75rem 1.5rem; overflow-y: auto; flex: 1 1 auto; }
.sidebar__label {
  color: #64748B;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 1.1rem .85rem .45rem;
}
.sidebar__nav .nav-link {
  display: flex; align-items: center; gap: .8rem;
  color: #cbd5e1;
  padding: .62rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .905rem;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.sidebar__nav .nav-link i { font-size: 1.12rem; width: 1.2rem; text-align: center; color: #94A3B8; transition: color .15s; }
.sidebar__nav .nav-link:hover { background: rgba(148, 163, 184, .1); color: #fff; }
.sidebar__nav .nav-link:hover i { color: #cbd5e1; }
.sidebar__nav .nav-link.active {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}
.sidebar__nav .nav-link.active i { color: #fff; }
.sidebar__nav .nav-link .badge { margin-left: auto; }

.sidebar__foot { padding: .85rem; border-top: 1px solid rgba(148, 163, 184, .12); flex: 0 0 auto; }
.sidebar__user {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .6rem; border-radius: var(--radius-sm);
}
.sidebar__user:hover { background: rgba(148, 163, 184, .1); }
.sidebar__user small { color: #94A3B8; }
.sidebar__user .name { color:#fff; font-size:.875rem; font-weight:550; line-height:1.1; }

/* Main column */
.main { flex: 1 1 auto; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 1030;
}
.topbar__search { position: relative; max-width: 420px; width: 100%; }
.topbar__search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--c-text-muted); font-size: 1rem; }
.topbar__search .form-control {
  padding-left: 2.5rem; background: var(--c-bg); border-color: transparent; height: 42px; border-radius: var(--radius-pill);
}
.topbar__search .form-control:focus { background:#fff; border-color: var(--c-primary); box-shadow: var(--ring); }
.topbar kbd { background:#fff; border:1px solid var(--c-border); border-radius:6px; color:var(--c-text-muted); font-size:.68rem; padding:.05rem .35rem; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--c-border); background: #fff; color: var(--c-text);
  position: relative; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--c-bg); border-color: #cbd5e1; }
.icon-btn i { font-size: 1.2rem; }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-danger); border: 2px solid #fff;
}

.content { padding: 1.75rem 1.5rem 2.5rem; }
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.page-head h1 { font-size: 1.55rem; margin-bottom: .2rem; }
.page-head p { color: var(--c-text-muted); margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: #94A3B8; font-size:.8rem; margin-bottom:.35rem; }
.breadcrumb a { color: var(--c-text-muted); }

/* ------------------------------------------------------------------ Cards */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--c-border);
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap:.75rem;

  /*  Wrap the actions onto their own line on a narrow screen rather than squeezing
      them. Without this a header with two buttons compresses them until their labels
      break mid-phrase — "Mark all read" was rendering as three stacked words. */
  flex-wrap: wrap;
}
.card-header .btn { white-space: nowrap; }
.card-header h2, .card-header h3 { font-size: 1rem; margin: 0; }
.card-body { padding: 1.25rem; }

/* Stat / metric cards */
.stat {
  position: relative; overflow: hidden;
}
.stat__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem;
}
.stat__label { color: var(--c-text-muted); font-size: .82rem; font-weight: 550; }
.stat__value { font-size: 1.9rem; font-weight: 600; line-height: 1.1; margin: .25rem 0 .1rem; }
.trend { display:inline-flex; align-items:center; gap:.2rem; font-size:.8rem; font-weight:600; }
.trend.up { color: var(--c-success); }
.trend.down { color: var(--c-danger); }

.soft-primary { background: var(--c-primary-050); color: var(--c-primary); }
.soft-success { background: var(--c-success-050); color: var(--c-success); }
.soft-warning { background: var(--c-warning-050); color: var(--c-warning); }
.soft-danger  { background: var(--c-danger-050);  color: var(--c-danger); }
.soft-info    { background: var(--c-info-050);    color: var(--c-info); }

/* ------------------------------------------------------------------ Buttons */
.btn { font-weight: 550; border-radius: var(--radius-sm); padding: .5rem .95rem; }
.btn:focus-visible { box-shadow: var(--ring); }
.btn-primary { --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: var(--c-primary-hover); --bs-btn-hover-border-color: var(--c-primary-hover); --bs-btn-active-bg: var(--c-primary-hover); --bs-btn-active-border-color: var(--c-primary-hover); --bs-btn-disabled-bg: var(--c-primary); --bs-btn-disabled-border-color: var(--c-primary); box-shadow: 0 6px 14px -6px rgba(79,70,229,.7); }
.btn-success { --bs-btn-bg: var(--c-success); --bs-btn-border-color: var(--c-success); --bs-btn-hover-bg:#0ea271; --bs-btn-hover-border-color:#0ea271; }
.btn-warning { --bs-btn-bg: var(--c-warning); --bs-btn-border-color: var(--c-warning); --bs-btn-color:#fff; --bs-btn-hover-bg:#e08e08; --bs-btn-hover-border-color:#e08e08; --bs-btn-hover-color:#fff; }
.btn-danger  { --bs-btn-bg: var(--c-danger);  --bs-btn-border-color: var(--c-danger); --bs-btn-hover-bg:#dc2f2f; --bs-btn-hover-border-color:#dc2f2f; }
.btn-info    { --bs-btn-bg: var(--c-info);    --bs-btn-border-color: var(--c-info); --bs-btn-color:#fff; --bs-btn-hover-bg:#0c93cf; --bs-btn-hover-border-color:#0c93cf; --bs-btn-hover-color:#fff; }
.btn-outline-secondary { --bs-btn-color: var(--c-text); --bs-btn-border-color: var(--c-border); --bs-btn-hover-bg: var(--c-bg); --bs-btn-hover-border-color:#cbd5e1; --bs-btn-hover-color: var(--c-text); --bs-btn-active-bg: var(--c-bg); --bs-btn-active-color: var(--c-text); --bs-btn-active-border-color:#cbd5e1; }
.btn-light { --bs-btn-bg:#fff; --bs-btn-border-color: var(--c-border); --bs-btn-hover-bg: var(--c-bg); }
.btn-soft-primary { background: var(--c-primary-050); color: var(--c-primary); border:1px solid transparent; }
.btn-soft-primary:hover { background:#E0E7FF; color: var(--c-primary-hover); }

/* ------------------------------------------------------------------ Forms */
.form-label { font-weight: 550; font-size: .85rem; margin-bottom: .35rem; color: var(--c-text); }
.form-text { color: var(--c-text-muted); }
.form-control, .form-select {
  border-color: var(--c-border);
  border-radius: var(--radius-sm);
  padding: .55rem .8rem;
  color: var(--c-text);
  background-color:#fff;
}
.form-control::placeholder { color:#94A3B8; }
.form-control:focus, .form-select:focus { border-color: var(--c-primary); box-shadow: var(--ring); }
.input-group-text { background: var(--c-bg); border-color: var(--c-border); color: var(--c-text-muted); }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--c-primary); }
.form-switch .form-check-input { width: 2.4em; height:1.3em; }
.was-validated .form-control:valid, .form-control.is-valid { border-color: var(--c-success); }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--c-danger); }
.valid-feedback { color: var(--c-success); }
.invalid-feedback { color: var(--c-danger); }

/* ------------------------------------------------------------------ Tables */
.table { --bs-table-color: var(--c-text); margin: 0; vertical-align: middle; }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th {
  color: var(--c-text-muted);
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.table tbody tr { border-bottom: 1px solid var(--c-border); }
.table tbody tr:last-child { border-bottom: 0; }
.table-hover tbody tr:hover { background: var(--c-primary-050); }
.table .avatar-sm { width: 34px; height: 34px; }

/* Badges */
.badge { font-weight: 600; padding: .38em .62em; border-radius: var(--radius-pill); font-size: .72rem; }
.badge.dot-badge { display:inline-flex; align-items:center; gap:.4rem; }
.badge.dot-badge::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
.badge-success { background: var(--c-success-050); color:#047857; }
.badge-warning { background: var(--c-warning-050); color:#B45309; }
.badge-danger  { background: var(--c-danger-050);  color:#B91C1C; }
.badge-info    { background: var(--c-info-050);    color:#0369A1; }
.badge-neutral { background: var(--c-bg);          color: var(--c-text-muted); }
.badge-primary { background: var(--c-primary-050); color: var(--c-primary-hover); }

/* Avatars */
.avatar { border-radius: 50%; object-fit: cover; background: var(--c-primary-050); display:inline-grid; place-items:center; color: var(--c-primary); font-weight:600; overflow:hidden; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.avatar-md { width: 44px; height: 44px; }
.avatar-sm { width: 34px; height: 34px; font-size:.8rem; }

/* Dropdowns */
.dropdown-menu {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  font-size: .9rem;
}
.dropdown-item { border-radius: var(--radius-sm); padding: .5rem .65rem; color: var(--c-text); }
.dropdown-item:hover { background: var(--c-bg); }
.dropdown-item.text-danger:hover { background: var(--c-danger-050); }
.dropdown-item i { width: 1.2rem; color: var(--c-text-muted); }

/*  Bootstrap's own .active is a solid #0d6efd bar — a different blue from this palette's
    indigo, and heavy enough to shout on a menu whose job is to show which of several
    quiet options is current. A tint plus weight says the same thing in the design's own
    colours. */
.dropdown-item.active,
.dropdown-item:active {
  background: var(--c-primary-050);
  color: var(--c-primary-hover);
  font-weight: 600;
}
.dropdown-item.active i { color: var(--c-primary); }

/* Notification list
   ------------------
   Rows are separated cards, not a stack of touching blocks. The list owns the rhythm
   through a flex gap rather than each row carrying a bottom margin, so the last row
   leaves no dangling space and the same class works in the page and in the dropdown. */
.notif-menu { width: 380px; max-width: 92vw; }

.notif-list { display: flex; flex-direction: column; gap: .5rem; }

.notif-item {
  display: flex;
  gap: .85rem;
  padding: .8rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  position: relative;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.notif-item:hover { background: var(--c-bg); border-color: #CBD5E1; box-shadow: var(--shadow-sm); }
.notif-item .ic { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; flex:0 0 auto; }
.notif-item small { color: var(--c-text-muted); }

/*  Unread is a left accent over a faint wash, not a solid indigo slab. A filled block
    per unread row is what made a full inbox read as stacked boxes — with several in a
    row the page became one large coloured area with no edges in it. */
.notif-item.unread { background: var(--c-primary-050); border-color: #C7D2FE; }
.notif-item.unread::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem; bottom: .55rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c-primary);
}

/* The row's title and body need room to breathe from the icon and from each other. */
.notif-item .notif-body { min-width: 0; }
.notif-item .notif-body > small { display: block; margin-top: .15rem; line-height: 1.45; }
.notif-item .notif-meta { display: block; margin-top: .3rem; font-size: .78rem; }

/* One row plus its "mark as read" button. */
.notif-row { display: flex; align-items: stretch; gap: .5rem; }
.notif-row > .notif-item { flex: 1 1 auto; }
.notif-row > .btn { flex: 0 0 auto; align-self: center; }

/* Alerts */
.alert { border:1px solid transparent; border-radius: var(--radius); display:flex; gap:.7rem; align-items:flex-start; }
.alert .alert-ic { font-size:1.2rem; line-height:1.4; flex:0 0 auto; }
.alert-success { background: var(--c-success-050); border-color:#A7F3D0; color:#065F46; }
.alert-warning { background: var(--c-warning-050); border-color:#FDE68A; color:#92400E; }
.alert-danger  { background: var(--c-danger-050);  border-color:#FECACA; color:#991B1B; }
.alert-info    { background: var(--c-info-050);    border-color:#BAE6FD; color:#075985; }

/* Toasts */
.toast-wrap { position: fixed; top: 84px; right: 24px; z-index: 1200; display:flex; flex-direction:column; gap:.65rem; }
.toast { border:1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); background:#fff; overflow:hidden; min-width: 320px; }
.toast .toast-ic { width:36px; height:36px; border-radius:9px; display:grid; place-items:center; flex:0 0 auto; }
.toast .toast-bar { height:3px; }

/* Modals */
.modal-content { border:1px solid var(--c-border); border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom:1px solid var(--c-border); padding:1.15rem 1.35rem; }
.modal-header .modal-title { font-size:1.1rem; }
.modal-body { padding:1.35rem; }
.modal-footer { border-top:1px solid var(--c-border); padding:1rem 1.35rem; }
.confirm-ic { width:52px; height:52px; border-radius:14px; display:grid; place-items:center; font-size:1.5rem; }

/* Progress */
.progress { height: 8px; background: var(--c-bg); border-radius: var(--radius-pill); }
.progress-bar { border-radius: var(--radius-pill); }

/* Tabs / pills */
.nav-pills .nav-link { color: var(--c-text-muted); border-radius: var(--radius-sm); font-weight:550; padding:.45rem .9rem; }
.nav-pills .nav-link.active { background: var(--c-primary); color:#fff; }
.nav-tabs { border-bottom:1px solid var(--c-border); }
.nav-tabs .nav-link { color: var(--c-text-muted); border:none; border-bottom:2px solid transparent; font-weight:550; padding:.6rem .95rem; }
.nav-tabs .nav-link:hover { color: var(--c-text); border-bottom-color:#cbd5e1; }
.nav-tabs .nav-link.active { color: var(--c-primary); border-bottom-color: var(--c-primary); background:transparent; }

/* Legend + misc */
.legend { display:flex; align-items:center; gap:.4rem; font-size:.82rem; color: var(--c-text-muted); }
.legend .swatch { width:10px; height:10px; border-radius:3px; }
.hr-soft { border-color: var(--c-border); opacity:1; }
.list-tick li { position:relative; padding-left:1.5rem; margin-bottom:.4rem; }
.list-tick li::before { content:"\F26E"; font-family:"bootstrap-icons"; position:absolute; left:0; color: var(--c-success); }

.tooltip-inner { background: var(--c-nav); border-radius:8px; }
.popover { border-color: var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.popover-header { background: var(--c-bg); }

/* ------------------------------------------------------------------ Simple-DataTables theming */
.datatable-wrapper .datatable-top,
.datatable-wrapper .datatable-bottom { padding: 1rem 1.25rem; color: var(--c-text-muted); font-size:.85rem; }
.datatable-wrapper .datatable-input,
.datatable-wrapper .datatable-selector {
  border:1px solid var(--c-border); border-radius: var(--radius-sm); padding:.45rem .7rem; background:#fff; color:var(--c-text);
}
.datatable-wrapper .datatable-input:focus, .datatable-wrapper .datatable-selector:focus { outline:none; border-color:var(--c-primary); box-shadow:var(--ring); }
.datatable-pagination a { color: var(--c-text-muted); border-radius: var(--radius-sm); padding:.4rem .7rem; }
.datatable-pagination a:hover { background: var(--c-bg); }
.datatable-pagination .datatable-active a { background: var(--c-primary); color:#fff; }
.datatable-sorter::before, .datatable-sorter::after { opacity:.5; }
table.datatable-table th a { color: var(--c-text-muted); }

/* ------------------------------------------------------------------ Auth pages */
.auth { min-height:100vh; display:grid; grid-template-columns: 1.05fr .95fr; }
.auth__aside {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(79,70,229,.55) 0%, rgba(79,70,229,0) 55%),
    linear-gradient(160deg, #1E1B4B 0%, var(--c-nav) 70%);
  color:#fff; padding: 3rem; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden;
}
.auth__aside .glow { position:absolute; width:420px; height:420px; border-radius:50%; filter: blur(70px); opacity:.5; }
.auth__aside .glow.g1 { background:#4F46E5; bottom:-120px; left:-80px; }
.auth__aside .glow.g2 { background:#0EA5E9; top:-100px; right:-60px; opacity:.35; }
.auth__brand { display:flex; align-items:center; gap:.7rem; position:relative; z-index:1; }
.auth__brand .logo { width:38px; height:38px; border-radius:11px; background: var(--c-primary); display:grid; place-items:center; color:#fff; font-size:1.15rem; }
.auth__pitch { position:relative; z-index:1; }
.auth__pitch h2 { color:#fff; font-size:2rem; line-height:1.2; max-width:22ch; }
.auth__pitch p { color:#cbd5e1; max-width:42ch; }
.auth__stat { display:flex; gap:2.25rem; margin-top:1.75rem; }
.auth__stat b { color:#fff; font-size:1.5rem; display:block; }
.auth__stat span { color:#94A3B8; font-size:.82rem; }
.auth__form { display:flex; align-items:center; justify-content:center; padding:2.5rem; background: var(--c-bg); }
.auth__card { width:100%; max-width:410px; }
.auth__social { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.divider-or { display:flex; align-items:center; gap:1rem; color: var(--c-text-muted); font-size:.8rem; }
.divider-or::before, .divider-or::after { content:""; height:1px; background: var(--c-border); flex:1; }
.pw-strength { height:5px; border-radius: var(--radius-pill); background: var(--c-border); overflow:hidden; }
.pw-strength > span { display:block; height:100%; width:0; transition: width .25s, background .25s; }

/* ------------------------------------------------------------------ Utilities */
.divider { height:1px; background: var(--c-border); margin: 1rem 0; }
.dot-status { width:8px; height:8px; border-radius:50%; display:inline-block; }
.hover-lift { transition: transform .18s, box-shadow .18s; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.scroll-y { overflow-y:auto; }
.mobile-toggle { display:none; }
.sidebar-backdrop { display:none; position:fixed; inset:0; background: rgba(15,23,42,.5); z-index:1040; }

::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:10px; border:2px solid var(--c-bg); }
.sidebar__nav::-webkit-scrollbar-thumb { background:#334155; border-color: var(--c-nav); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .mobile-toggle { display: inline-grid; }
  .sidebar-backdrop.show { display:block; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display:none; }
}
@media (max-width: 575.98px) {
  .content { padding: 1.25rem 1rem 2rem; }
  .topbar { padding: 0 1rem; }
  .topbar__search { display:none; }
  .toast-wrap { right:12px; left:12px; }
  .toast { min-width:auto; width:100%; }

  /*  Give the notification row its width back. The "mark as read" button beside it is
      fixed-width, and at 390px it was taking enough of the line that titles broke in the
      middle of a ticket number. A square icon button and tighter padding leave the text
      the room it needs; the target stays above the 24px WCAG 2.5.8 minimum. */
  .card-body.notif-list { padding-left: .85rem; padding-right: .85rem; }
  .notif-item { padding: .7rem .75rem; gap: .65rem; }
  .notif-item .ic { width: 32px; height: 32px; border-radius: 9px; }
  .notif-row { gap: .35rem; }
  .notif-row > .btn { padding: .35rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

