/* ============================================================
   SVMDP Design System — Premium UI
   Google Fonts: Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Palette */
  --brand-hue: 228;
  --clr-primary:       hsl(228, 80%, 58%);
  --clr-primary-light: hsl(228, 90%, 70%);
  --clr-primary-dark:  hsl(228, 72%, 46%);
  --clr-primary-glass: hsla(228, 80%, 58%, 0.12);
  --clr-accent:        hsl(262, 70%, 60%);

  /* Sidebar */
  --sidebar-bg:        hsl(228, 22%, 10%);
  --sidebar-surface:   rgba(255, 255, 255, 0.08);
  --sidebar-hover:     rgba(255, 255, 255, 0.15);
  --sidebar-active:    hsl(228, 80%, 58%);
  --sidebar-text:      rgba(255, 255, 255, 0.88);
  --sidebar-text-muted:rgba(255, 255, 255, 0.55);
  --sidebar-text-active: #ffffff;
  --sidebar-width:     260px;
  --sidebar-collapsed: 72px;

  /* Surfaces */
  --surface-bg:        hsl(228, 20%, 97%);
  --surface-card:      #ffffff;
  --surface-border:    hsl(228, 14%, 90%);
  --surface-input:     hsl(228, 20%, 97%);

  /* Text */
  --text-primary:   hsl(228, 22%, 14%);
  --text-secondary: hsl(228, 12%, 48%);
  --text-muted:     hsl(228, 10%, 65%);

  /* Shadows */
  --shadow-xs:   0 1px 2px hsla(228,22%,10%,0.05);
  --shadow-sm:   0 2px 8px hsla(228,22%,10%,0.08);
  --shadow-md:   0 6px 24px hsla(228,22%,10%,0.10);
  --shadow-lg:   0 16px 48px hsla(228,22%,10%,0.14);
  --shadow-glow: 0 0 0 3px var(--clr-primary-glass);

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, sans-serif;
}

/* ── Flash prevention: applied before body renders ── */
html.dark-mode-init body {
  background: hsl(228, 18%, 9%);
}

/* ── Dark Mode Variables ── */
body.dark-mode {
  --surface-bg:     hsl(228, 18%, 9%);
  --surface-card:   hsl(228, 18%, 13%);
  --surface-border: hsl(228, 18%, 22%);
  --surface-input:  hsl(228, 18%, 16%);
  --text-primary:   hsl(228, 15%, 92%);
  --text-secondary: hsl(228, 12%, 58%);
  --text-muted:     hsl(228, 10%, 42%);
  --shadow-sm:      0 2px 8px hsla(0,0%,0%,0.25);
  --shadow-md:      0 6px 24px hsla(0,0%,0%,0.35);
  --sidebar-bg:     hsl(228, 22%, 7%);
  --sidebar-surface:rgba(255, 255, 255, 0.06);
  --sidebar-hover:  rgba(255, 255, 255, 0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* ============================================================
   LAYOUT — Sidebar + Content Wrapper
   ============================================================ */
#wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── Sidebar ── */
.sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  transition: var(--transition);
  z-index: 100;
  border-right: 1px solid hsla(228,80%,58%,0.08);
}

/* Collapsed sidebar */
.sidebar.collapsed {
  min-width: var(--sidebar-collapsed);
  max-width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-footer-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.15s, width 0.22s;
}

/* Sidebar brand / logo */
.sidebar-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid hsla(255,255%,255%,0.05);
}

.sidebar-logo {
  width: 52px;
  height: 52px;
  background: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 16px hsla(228,80%,58%,0.35);
  overflow: hidden;
  margin: 0 auto;
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.sidebar-logo-text {
  transition: var(--transition);
}

.sidebar-logo-text h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.sidebar-logo-text span {
  font-size: 11px;
  color: var(--sidebar-text);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 14px 12px 6px;
  margin-top: 6px;
  transition: opacity 0.15s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sidebar.collapsed .sidebar-section-label { opacity: 0; }

.sidebar nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar nav ul li a,
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15px;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

/* ── Blur siblings on hover / focus (Uiverse Focus Effect) ── */
.sidebar nav ul:hover li:not(:hover) .nav-link,
.sidebar:has(.nav-link:hover) .nav-link:not(:hover),
.sidebar:has(.nav-link:focus-visible) .nav-link:not(:focus-visible),
.sidebar:has(.nav-link:hover) .sidebar-section-label {
  filter: blur(1.5px);
  opacity: 0.45;
  transform: scale(0.96);
  transition: filter 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar nav ul li a .nav-icon,
.sidebar .nav-link .nav-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.sidebar nav ul li a:hover,
.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateX(4px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  filter: blur(0px) !important;
  opacity: 1 !important;
  z-index: 10;
}

.sidebar nav ul li a:hover .nav-icon,
.sidebar .nav-link:hover .nav-icon {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

/* Active Nav Item — Radiant Glow Pill */
.sidebar nav ul li a.active,
.sidebar .nav-link.active {
  background: linear-gradient(135deg, hsl(230, 85%, 60%) 0%, hsl(265, 80%, 58%) 100%);
  color: #ffffff !important;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 22px hsla(245, 80%, 55%, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sidebar nav ul li a.active .nav-icon,
.sidebar .nav-link.active .nav-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar nav ul li a.active::after,
.sidebar .nav-link.active::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255,255,255,0.8);
}

/* Sidebar Light-Theme Adaptation (When light color chosen in settings) */
.sidebar.sidebar-light-theme {
  border-right-color: rgba(0,0,0,0.08);
}

.sidebar.sidebar-light-theme .sidebar-logo-text h5 { color: #0f172a; }
.sidebar.sidebar-light-theme .sidebar-logo-text span { color: #64748b; }
.sidebar.sidebar-light-theme .sidebar-section-label { color: #64748b; text-shadow: none; }
.sidebar.sidebar-light-theme .sidebar-footer-text strong { color: #0f172a; }
.sidebar.sidebar-light-theme .sidebar-footer-text span { color: #64748b; }

.sidebar.sidebar-light-theme nav ul li a,
.sidebar.sidebar-light-theme .nav-link {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.sidebar.sidebar-light-theme nav ul li a .nav-icon,
.sidebar.sidebar-light-theme .nav-link .nav-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #334155;
  box-shadow: none;
}

.sidebar.sidebar-light-theme nav ul li a:hover,
.sidebar.sidebar-light-theme .nav-link:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
}

.sidebar.sidebar-light-theme nav ul li a.active,
.sidebar.sidebar-light-theme .nav-link.active {
  background: linear-gradient(135deg, hsl(228, 85%, 58%) 0%, hsl(265, 80%, 55%) 100%);
  color: #ffffff !important;
}

.sidebar.sidebar-light-theme nav ul li a.active .nav-icon,
.sidebar.sidebar-light-theme .nav-link.active .nav-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sidebar.sidebar-light-theme .sidebar-user {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Sidebar footer (user info) */
.sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  cursor: default;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-footer-text {
  transition: var(--transition);
  overflow: hidden;
}

.sidebar-footer-text strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-footer-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

/* ── Page Content ── */
#page-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: var(--transition);
  background: var(--surface-bg);
}

/* ── Topbar ── */
.topbar {
  height: 60px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-xs);
}

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.btn-toggle:hover {
  background: var(--clr-primary-glass);
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.topbar-breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.topbar-breadcrumb strong {
  color: var(--text-primary);
}

/* Dark mode toggle in topbar */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.theme-toggle:hover {
  background: var(--clr-primary-glass);
  color: var(--clr-primary);
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.topbar-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Main Content Area ── */
.page-content {
  padding: 28px 28px;
  flex: 1;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ── Page Header ── */
.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.page-header p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Cards ── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.22s;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 24px;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface-border);
  background: transparent;
}

.card-header h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue   { background: hsl(228, 80%, 94%); color: var(--clr-primary); }
.stat-icon.green  { background: hsl(145, 60%, 90%); color: hsl(145, 60%, 36%); }
.stat-icon.amber  { background: hsl(38, 90%, 92%);  color: hsl(38, 80%, 42%); }
.stat-icon.red    { background: hsl(0, 80%, 94%);   color: hsl(0, 70%, 52%); }

body.dark-mode .stat-icon.blue  { background: hsl(228, 50%, 20%); color: var(--clr-primary-light); }
body.dark-mode .stat-icon.green { background: hsl(145, 40%, 18%); color: hsl(145, 60%, 55%); }
body.dark-mode .stat-icon.amber { background: hsl(38,  50%, 18%); color: hsl(38,  80%, 60%); }
body.dark-mode .stat-icon.red   { background: hsl(0,   50%, 18%); color: hsl(0,   70%, 65%); }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface-input);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--clr-primary);
  background: var(--surface-card);
  box-shadow: var(--shadow-glow);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

/* Primary Button — Radiant Glow with Light Shimmer */
.btn-primary {
  background: linear-gradient(135deg, hsl(230, 85%, 60%) 0%, hsl(265, 80%, 58%) 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px hsla(245, 80%, 55%, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(230, 90%, 56%) 0%, hsl(265, 85%, 54%) 100%);
  box-shadow: 0 8px 25px hsla(245, 85%, 55%, 0.52), 0 0 0 2px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-primary:hover::before {
  opacity: 1;
  transform: scale(1);
}

.btn-secondary {
  background: var(--surface-bg);
  color: var(--text-primary);
  border-color: var(--surface-border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface-border);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, hsl(145, 65%, 44%) 0%, hsl(160, 70%, 40%) 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px hsla(145, 65%, 40%, 0.35);
}

.btn-success:hover {
  background: linear-gradient(135deg, hsl(145, 70%, 38%) 0%, hsl(160, 75%, 36%) 100%);
  box-shadow: 0 8px 22px hsla(145, 65%, 40%, 0.45);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-danger {
  background: linear-gradient(135deg, hsl(0, 75%, 56%) 0%, hsl(340, 75%, 52%) 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px hsla(0, 75%, 50%, 0.35);
}

.btn-danger:hover {
  background: linear-gradient(135deg, hsl(0, 80%, 50%) 0%, hsl(340, 80%, 46%) 100%);
  box-shadow: 0 8px 22px hsla(0, 75%, 50%, 0.45);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* ── Sparkle Button Class ── */
.btn-sparkle {
  position: relative;
  background: linear-gradient(135deg, hsl(260, 85%, 62%) 0%, hsl(290, 85%, 58%) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.btn-sparkle::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0 340deg, rgba(255, 255, 255, 0.6) 360deg);
  animation: sparkle-rotate 4s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

.btn-sparkle:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7), 0 0 10px rgba(255, 255, 255, 0.4);
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 14px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.alert-success {
  background: hsl(145, 60%, 93%);
  color: hsl(145, 60%, 28%);
  border-color: hsl(145, 60%, 42%);
}

.alert-danger {
  background: hsl(0, 80%, 95%);
  color: hsl(0, 70%, 38%);
  border-color: hsl(0, 70%, 52%);
}

.alert-warning {
  background: hsl(38, 90%, 94%);
  color: hsl(38, 80%, 34%);
  border-color: hsl(38, 80%, 52%);
}

.alert-info {
  background: hsl(210, 80%, 94%);
  color: hsl(210, 70%, 38%);
  border-color: hsl(210, 70%, 52%);
}

body.dark-mode .alert-success { background: hsl(145, 40%, 14%); color: hsl(145, 60%, 60%); }
body.dark-mode .alert-danger  { background: hsl(0, 40%, 14%);   color: hsl(0, 70%, 65%); }
body.dark-mode .alert-warning { background: hsl(38, 40%, 14%);  color: hsl(38, 80%, 60%); }
body.dark-mode .alert-info    { background: hsl(210, 40%, 14%); color: hsl(210, 70%, 65%); }

/* ── Tables ── */
.table-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
}

.table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  background: var(--surface-bg);
  border-bottom: 1px solid var(--surface-border);
  text-align: left;
}

.table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--surface-border);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover td { background: var(--surface-bg); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary { background: var(--clr-primary-glass); color: var(--clr-primary); }
.badge-success { background: hsl(145, 60%, 90%); color: hsl(145, 60%, 32%); }
.badge-danger  { background: hsl(0, 80%, 94%);   color: hsl(0, 70%, 44%); }
.badge-warning { background: hsl(38, 90%, 92%);  color: hsl(38, 80%, 38%); }

body.dark-mode .badge-primary { background: hsl(228, 50%, 20%); color: var(--clr-primary-light); }
body.dark-mode .badge-success { background: hsl(145, 40%, 16%); color: hsl(145, 60%, 55%); }
body.dark-mode .badge-danger  { background: hsl(0, 40%, 16%);   color: hsl(0, 70%, 65%); }
body.dark-mode .badge-warning { background: hsl(38, 40%, 16%);  color: hsl(38, 80%, 60%); }

/* ── Quick Action Cards ── */
.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface-card);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.action-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.action-card:hover .action-icon {
  background: var(--clr-primary);
  color: #fff;
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary-glass);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.action-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.action-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Profile Picture ── */
.profile-pic-wrapper {
  position: relative;
  display: inline-block;
}

.profile-pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--clr-primary);
  box-shadow: 0 0 0 4px var(--clr-primary-glass);
}

.profile-pic-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  border: 3px solid var(--clr-primary);
  box-shadow: 0 0 0 4px var(--clr-primary-glass);
}

/* ── System Logo Preview ── */
.logo-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.logo-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 24px hsla(228, 80%, 58%, 0.35);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Settings Toggle Switch ── */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-border);
}

.toggle-switch:last-child { border-bottom: none; }

.toggle-switch-label { flex: 1; }

.toggle-switch-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.toggle-switch-label span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Uiverse Sun & Moon Theme Switch ── */
.switch-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 30px;
  vertical-align: middle;
}

/* Hide default HTML checkbox */
.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}

/* The slider track */
.switch-container .slider {
  --background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--background);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
  border: 1.5px solid var(--surface-border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

/* The sun/moon ball */
.switch-container .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  border-radius: 50%;
  left: 3px;
  bottom: 2.5px;
  box-shadow: inset 15px -4px 0px 15px #f59e0b;
  background: var(--background);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s;
}

/* Checked state (Dark Mode active / Crescent Moon) */
.switch-container input:checked + .slider {
  background: linear-gradient(135deg, #090613, #18151f);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.switch-container input:checked + .slider:before {
  transform: translateX(23px);
  box-shadow: inset 7px -3px 0px 0px #f8f8f4;
  background: transparent;
}

/* Legacy switch fallback */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--surface-border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.switch-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

input:checked + .switch-track {
  background: var(--clr-primary);
}

input:checked + .switch-track::after {
  transform: translateX(20px);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: var(--surface-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--clr-primary-glass);
  top: -200px;
  right: -200px;
  filter: blur(80px);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: hsla(262, 70%, 60%, 0.08);
  bottom: -100px;
  left: -100px;
  filter: blur(60px);
  pointer-events: none;
}

.login-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 44px 42px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: var(--clr-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 24px hsla(228, 80%, 58%, 0.35);
  overflow: hidden;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  text-align: center;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  text-align: center;
}

.login-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 24px 0;
}

/* Input with icon */
.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.input-wrapper .form-control {
  padding-left: 38px;
}

.input-wrapper .input-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: var(--transition);
}

.input-wrapper .input-eye:hover { color: var(--clr-primary); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.d-flex     { display: flex; }
.d-grid     { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.text-muted { color: var(--text-secondary); font-size: 13px; }
.text-sm { font-size: 13px; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.w-100 { width: 100%; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    z-index: 200;
    height: 100%;
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: hsla(0,0%,0%,0.45);
    z-index: 199;
    backdrop-filter: blur(2px);
  }

  .sidebar-overlay.active { display: block; }

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

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .login-card { padding: 32px 24px; }

  .topbar-breadcrumb {
    font-size: 12px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .topbar { padding: 0 12px; height: 56px; }
  .topbar-username { display: none; }
  .topbar-breadcrumb { display: none; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.page-content > * { animation: fadeSlideIn 0.35s ease both; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   MOBILE & RF HANDHELD DEVICE OPTIMIZATIONS
   ============================================================ */
/* Large Touch Control Cards for Radio & Checkbox Choices */
.touch-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-card);
  border: 2px solid var(--surface-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  user-select: none;
}

.touch-option-card:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-glass);
}

.touch-option-card input[type="radio"],
.touch-option-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--clr-primary);
  cursor: pointer;
}

.touch-option-card:has(input:checked) {
  border-color: var(--clr-primary);
  background: var(--clr-primary-glass);
  box-shadow: 0 0 0 1px var(--clr-primary);
}

/* Mobile & Handheld Device Responsive Rules */
@media (max-width: 768px) {
  /* Inputs, selects, and buttons have 48px minimum height for easy touch */
  .form-control,
  .btn,
  .search-box input {
    min-height: 48px;
    font-size: 16px !important; /* Prevents auto-zoom on mobile browsers */
  }

  .form-label {
    font-size: 15px;
    font-weight: 600;
  }

  .page-content {
    padding: 14px 10px;
  }

  .card {
    border-radius: 12px;
  }

  .card-body {
    padding: 16px;
  }

  /* Full-width buttons on mobile for quick tapping */
  .mobile-w-100 {
    width: 100% !important;
  }

  .mobile-flex-column {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Compact Order Number Prefix Addon on RF devices */
  #order_prefix {
    padding: 12px 14px !important;
    font-size: 16px !important;
  }
}

/* ── Neumorphic Curved Dock Quick Access Buttons (From Uiverse.io by emmanuelh-dev) ── */
.neumorph-dock-card {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

body.dark-mode .neumorph-dock-card {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.45);
}

.neumorph-dock-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.neumorph-btn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  color: var(--text-primary);
  cursor: pointer;
  width: 76px;
}

.neumorph-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-bg);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .neumorph-btn-circle {
  background: hsl(228, 18%, 16%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  color: hsl(228, 12%, 70%);
}

.neumorph-btn-item:hover .neumorph-btn-circle {
  color: #ffffff !important;
  transform: translateY(-3px);
}

/* Feature Accent Colors on Hover */
.neumorph-picking:hover .neumorph-btn-circle {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 8px 22px rgba(239, 68, 68, 0.45);
}

.neumorph-forms:hover .neumorph-btn-circle {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 8px 22px rgba(59, 130, 246, 0.45);
}

.neumorph-profile:hover .neumorph-btn-circle {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 8px 22px rgba(139, 92, 246, 0.45);
}

.neumorph-settings:hover .neumorph-btn-circle {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 8px 22px rgba(16, 185, 129, 0.45);
}

.neumorph-btn-circle:active {
  transform: scale(0.92);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.4);
}

.neumorph-btn-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  transition: color 0.2s ease;
}

.neumorph-btn-item:hover .neumorph-btn-label {
  color: var(--clr-primary);
}

.neumorph-mhe:hover .neumorph-btn-circle {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 8px 22px rgba(245, 158, 11, 0.45);
}

/* ============================================================
   MHE & QR MANAGEMENT STYLES
   ============================================================ */
.badge-available {
  background: hsl(145, 65%, 90%);
  color: hsl(145, 65%, 28%);
}
body.dark-mode .badge-available {
  background: hsl(145, 45%, 16%);
  color: hsl(145, 65%, 55%);
}

.badge-in-use {
  background: hsl(210, 85%, 90%);
  color: hsl(210, 85%, 32%);
}
body.dark-mode .badge-in-use {
  background: hsl(210, 50%, 18%);
  color: hsl(210, 85%, 65%);
}

.badge-maintenance {
  background: hsl(38, 90%, 90%);
  color: hsl(38, 90%, 30%);
}
body.dark-mode .badge-maintenance {
  background: hsl(38, 50%, 18%);
  color: hsl(38, 85%, 60%);
}

.badge-inactive {
  background: hsl(0, 75%, 90%);
  color: hsl(0, 75%, 35%);
}
body.dark-mode .badge-inactive {
  background: hsl(0, 45%, 16%);
  color: hsl(0, 75%, 65%);
}

/* Pulse animation for live In-Use indicators */
.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

.live-pulse-amber {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f59e0b;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-amber 1.8s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-amber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Printable QR Card Layout */
.qr-badge-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #0f172a;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.qr-badge-card .mhe-tag {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1e293b;
  margin-bottom: 2px;
}

.qr-badge-card .mhe-title {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-badge-card .qr-image-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  margin: 16px 0;
  border: 1px dashed #cbd5e1;
}

.qr-badge-card .qr-instruction {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.2px;
}

/* Print Specific Rules */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-qr-area, .printable-qr-area * {
    visibility: visible;
  }
  .printable-qr-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
  }
  .no-print {
    display: none !important;
  }
}

/* Modal Overlay */
.mhe-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mhe-modal-content {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}