/* ==========================================================================
   NEXAVISIT 360 - Enterprise Visitor Management System
   World-Class SaaS Platform Stylesheet
   Pixel-Perfect Match for Reference Dashboards (Light & Dark Themes)
   ========================================================================== */

:root {
  /* Common Core Colors */
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #93C5FD;
  --primary-subtle: rgba(59, 130, 246, 0.12);

  --secondary: #8B5CF6;
  --secondary-hover: #7C3AED;
  --secondary-subtle: rgba(139, 92, 246, 0.12);

  --accent: #06B6D4;
  --accent-hover: #0891B2;
  --accent-subtle: rgba(6, 182, 212, 0.12);

  --success: #10B981;
  --success-subtle: rgba(16, 185, 129, 0.12);

  --danger: #EF4444;
  --danger-subtle: rgba(239, 68, 68, 0.12);

  --warning: #F59E0B;
  --warning-subtle: rgba(245, 158, 11, 0.12);

  --info: #38BDF8;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;

  --sidebar-w: 240px;
  --header-h: 68px;
}

/* Light Theme Variables (Matches Image 1) */
[data-theme="light"], :root:not([data-theme="dark"]) {
  --bg-app: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-glass: rgba(255, 255, 255, 0.94);
  --bg-sidebar: #FFFFFF;
  --bg-header: rgba(255, 255, 255, 0.96);

  --border-color: #E2E8F0;
  --border-subtle: #EEF2F6;
  --border-hover: #CBD5E1;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --card-shadow-hover: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --header-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);

  --badge-green-bg: #DCFCE7;
  --badge-green-text: #15803D;
  --badge-blue-bg: #DBEAFE;
  --badge-blue-text: #1D4ED8;
  --badge-amber-bg: #FEF3C7;
  --badge-amber-text: #B45309;
  --badge-red-bg: #FEE2E2;
  --badge-red-text: #B91C1C;
  --badge-purple-bg: #F3E8FF;
  --badge-purple-text: #7E22CE;

  --chart-grid: rgba(226, 232, 240, 0.8);
  --chart-text: #64748B;
  --tooltip-bg: #0F172A;
  --tooltip-text: #FFFFFF;
}

/* Dark Theme Variables (Matches Image 2) */
[data-theme="dark"] {
  --bg-app: #070D18;
  --bg-surface: #0B1325;
  --bg-subtle: #111C35;
  --bg-hover: #162444;
  --bg-card: rgba(13, 21, 38, 0.88);
  --bg-card-glass: rgba(13, 21, 38, 0.82);
  --bg-sidebar: #090F1C;
  --bg-header: rgba(9, 15, 28, 0.92);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.16);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --card-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  --card-shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  --header-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.3);

  --badge-green-bg: rgba(16, 185, 129, 0.16);
  --badge-green-text: #34D399;
  --badge-blue-bg: rgba(59, 130, 246, 0.16);
  --badge-blue-text: #60A5FA;
  --badge-amber-bg: rgba(245, 158, 11, 0.16);
  --badge-amber-text: #FBBF24;
  --badge-red-bg: rgba(239, 68, 68, 0.16);
  --badge-red-text: #F87171;
  --badge-purple-bg: rgba(139, 92, 246, 0.16);
  --badge-purple-text: #A78BFA;

  --chart-grid: rgba(255, 255, 255, 0.06);
  --chart-text: #94A3B8;
  --tooltip-bg: #0B1325;
  --tooltip-text: #FFFFFF;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Deep enterprise gradient background overlay in dark mode */
[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 45%);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: transparent;
}

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

ul, ol {
  list-style: none;
}

/* App Layout Grid */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   SIDEBAR (Left Navigation)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  padding: 20px 16px 16px 16px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

/* Collapsible Desktop Sidebar Mode */
.sidebar.collapsed {
  width: 72px;
  min-width: 72px;
  padding: 20px 8px 16px 8px;
}

.sidebar.collapsed .brand-text-wrap,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-chevron,
.sidebar.collapsed .sidebar-promo-card,
.sidebar.collapsed .user-info-text,
.sidebar.collapsed .user-chevron {
  display: none !important;
}

.sidebar.collapsed .brand-header {
  justify-content: center;
  padding: 0 0 20px 0;
}

.sidebar.collapsed .brand-logo-icon {
  margin: 0 auto;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .user-avatar-img {
  margin: 0 auto;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* Brand Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 22px 4px;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text-primary);
}

.brand-title .accent-text {
  color: var(--primary);
}

.brand-tagline {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* Sidebar Nav Menu */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.nav-item.active {
  background-color: #2563EB;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-item.active svg {
  color: #FFFFFF;
}

.nav-badge {
  margin-left: auto;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

.nav-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}

/* Upgrade Plan Promo Card */
.sidebar-promo-card {
  margin-top: 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .sidebar-promo-card {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
}

.promo-bg-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.promo-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  z-index: 1;
}

.promo-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #94A3B8;
  z-index: 1;
}

.promo-btn {
  margin-top: 6px;
  background: #2563EB;
  color: #FFFFFF !important;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.2s ease;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.promo-btn:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

/* User Profile Row at bottom of sidebar */
.sidebar-user {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
  flex-shrink: 0;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.user-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-app);
}

/* Top Navigation Header */
.top-header {
  height: var(--header-h);
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--header-shadow);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 540px;
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

/* Global Search Bar */
.search-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 40px;
  width: 100%;
  max-width: 460px;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: var(--card-shadow);
}

.search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.search-container svg {
  color: var(--text-muted);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.search-input {
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Emergency Headcount Pill Button */
.emergency-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.emergency-pill-btn:hover {
  background-color: #EF4444;
  color: #FFFFFF !important;
}

.emergency-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #EF4444;
  animation: pulse-ring 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Theme Toggle Capsule (Sun/Moon switch) */
.theme-switch-wrap {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 3px;
  position: relative;
  cursor: pointer;
  width: 64px;
  height: 32px;
  box-shadow: var(--card-shadow);
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(32px);
}

.theme-icon-slot {
  width: 28px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 2;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

[data-theme="light"] .theme-icon-slot.sun {
  color: #FFFFFF;
}

[data-theme="dark"] .theme-icon-slot.moon {
  color: #FFFFFF;
}

/* Notification Bell */
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  box-shadow: var(--card-shadow);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-hover);
}

.badge-dot-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* Header User Profile */
.header-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.header-user-badge:hover {
  background-color: var(--bg-hover);
}

.header-avatar-wrap {
  position: relative;
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background-color: #10B981;
  border-radius: 50%;
  border: 1.5px solid var(--bg-header);
}

/* Dashboard Content Container */
.dashboard-content {
  padding: 24px 28px 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   HERO GREETING BANNER & WEATHER
   ========================================================================== */
.hero-greeting-section {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--card-shadow);
}

/* Visual Lobby Backdrop Graphic */
.hero-bg-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  background: linear-gradient(90deg, var(--bg-surface) 35%, transparent 65%, var(--bg-surface) 95%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200" viewBox="0 0 800 200"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%233B82F6" stop-opacity="0.18"/><stop offset="100%" stop-color="%2306B6D4" stop-opacity="0.06"/></linearGradient></defs><rect width="800" height="200" fill="url(%23g1)"/><circle cx="450" cy="90" r="60" fill="%238B5CF6" fill-opacity="0.12"/><path d="M200,200 L250,90 L310,200 Z" fill="%233B82F6" fill-opacity="0.08"/><path d="M420,200 L470,110 L520,200 Z" fill="%2306B6D4" fill-opacity="0.1"/><line x1="100" y1="200" x2="700" y2="200" stroke="%233B82F6" stroke-width="2" stroke-opacity="0.2"/></svg>');
  background-size: cover;
  background-position: center;
}

[data-theme="dark"] .hero-bg-art {
  opacity: 0.75;
  background: linear-gradient(90deg, var(--bg-surface) 35%, transparent 65%, var(--bg-surface) 95%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200" viewBox="0 0 800 200"><defs><linearGradient id="g2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%231E3A8A" stop-opacity="0.4"/><stop offset="100%" stop-color="%2306B6D4" stop-opacity="0.15"/></linearGradient></defs><rect width="800" height="200" fill="url(%23g2)"/><circle cx="450" cy="90" r="70" fill="%236366F1" fill-opacity="0.18"/><line x1="50" y1="180" x2="750" y2="180" stroke="%233B82F6" stroke-width="1.5" stroke-opacity="0.3"/></svg>');
  background-size: cover;
}

.hero-left {
  position: relative;
  z-index: 1;
}

.greeting-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.greeting-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hero-right-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Weather Card */
.weather-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  box-shadow: var(--card-shadow);
}

.weather-icon-sun {
  width: 32px;
  height: 32px;
  color: #F59E0B;
}

.weather-temp {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.weather-city {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.weather-condition {
  font-size: 10px;
  color: var(--text-muted);
}

.hero-date-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.date-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.time-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   KPI STAT CARDS ROW (6 CARDS)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  min-width: 0;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrap svg {
  width: 22px;
  height: 22px;
}

/* Specific KPI Theme Colors */
.kpi-purple { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.kpi-green  { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.kpi-blue   { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.kpi-coral  { background: rgba(244, 63, 94, 0.12); color: #F43F5E; }
.kpi-red    { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.kpi-cyan   { background: rgba(6, 182, 212, 0.12); color: #06B6D4; }

.kpi-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.kpi-number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.kpi-trend.positive {
  color: #10B981;
}

.kpi-trend.negative {
  color: #EF4444;
}

.kpi-subtext {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   SPLIT LAYOUT: MAIN SECTION (75%) + RIGHT SIDEBAR (25%)
   ========================================================================== */
.dashboard-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.dashboard-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dashboard-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Standard Dashboard Card */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dash-card:hover {
  border-color: var(--border-hover);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.info-tooltip-icon {
  color: var(--text-muted);
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.card-dropdown-select {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
}

.card-badge-live {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: rgba(16, 185, 129, 0.12);
  color: #10B981;
  font-size: 11px;
  font-weight: 600;
}

.card-badge-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

/* Chart Row 1: 3 Columns */
.charts-row-1 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

/* Visitor Trend Spline Chart */
.chart-trend-wrap {
  height: 200px;
  width: 100%;
  position: relative;
}

.trend-legend-pills {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.legend-pill {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.blue { background-color: #3B82F6; }
.legend-dot.green { background-color: #10B981; }
.legend-dot.purple { background-color: #8B5CF6; }
.legend-dot.cyan { background-color: #06B6D4; }
.legend-dot.amber { background-color: #F59E0B; }
.legend-dot.rose { background-color: #EC4899; }
.legend-dot.magenta { background-color: #D946EF; }

/* SVG Tooltip Popup on 24 May */
.chart-tooltip-box {
  position: absolute;
  top: 25px;
  right: 80px;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 11px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  pointer-events: none;
  z-index: 10;
}

.tooltip-date {
  font-weight: 700;
  margin-bottom: 4px;
  color: #94A3B8;
  font-size: 10px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.5;
}

/* Donut Chart Layout */
.donut-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 200px;
}

.donut-svg-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.donut-center-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.donut-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.donut-legend-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.donut-legend-pct {
  font-weight: 600;
  color: var(--text-primary);
}

/* Department Bar Chart */
.dept-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 190px;
  padding: 10px 4px 0 4px;
  gap: 12px;
}

.dept-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.bar-val-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.bar-pillar {
  width: 100%;
  max-width: 38px;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.bar-pillar:hover {
  filter: brightness(1.1);
}

.dept-name {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Middle Row 2: 4 Columns */
.middle-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Gauge Chart / Visitor Status */
.gauge-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 170px;
}

.gauge-svg-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.gauge-center-stat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-pct-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.gauge-sub-caption {
  font-size: 9.5px;
  color: var(--text-muted);
}

.gauge-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding-left: 10px;
}

.gauge-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.gauge-row-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.gauge-row-val {
  font-weight: 700;
  color: var(--text-primary);
}

/* Peak Hours Chart */
.peak-hours-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 150px;
  gap: 6px;
  padding-top: 10px;
}

.peak-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.peak-bar {
  width: 14px;
  border-radius: 4px;
  background: #8B5CF6;
  transition: height 0.5s ease;
}

.peak-bar:hover {
  background: #A78BFA;
}

.peak-time-label {
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Recent Activity List */
.activity-mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.activity-circle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-circle-icon svg {
  width: 14px;
  height: 14px;
}

.activity-texts {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.activity-title-text {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-sub-text {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time-text {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Security Analytics Ring */
.security-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.security-ring-container {
  position: relative;
  width: 110px;
  height: 110px;
}

.security-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.security-score-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.security-score-desc {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.security-breakdown-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.security-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   BOTTOM ROW: RECENT VISITORS TABLE + QUICK ACTIONS + PASS PREVIEW
   ========================================================================== */
.bottom-row-3 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Recent Visitors Table */
.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.enterprise-data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.enterprise-data-table th {
  padding: 10px 12px;
  color: #000000;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.enterprise-data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
  white-space: nowrap;
}

.enterprise-data-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.table-user-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-pill.inside {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.status-pill.checked-out {
  background-color: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.status-pill.pending {
  background-color: var(--badge-amber-bg);
  color: var(--badge-amber-text);
}

.status-pill.approved {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.status-pill.rejected {
  background-color: var(--badge-red-bg);
  color: var(--badge-red-text);
}

.btn-table-view {
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-table-view:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}

/* Quick Actions 8-Grid */
.quick-actions-card {
  display: flex;
  flex-direction: column;
}

.bottom-actions-pass-row {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 20px;
  align-items: stretch;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.quick-action-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.quick-action-tile:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.18);
  background-color: var(--bg-hover);
}

.quick-action-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.quick-action-tile:hover .quick-action-icon-wrap {
  transform: scale(1.08);
}

.quick-action-icon-wrap svg,
.quick-action-tile svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.quick-action-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.quick-action-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.quick-action-subtitle {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.quick-action-tile span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
}

/* Visitor Pass Preview Badge Card */
.pass-preview-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.badge-card-realistic {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.badge-lanyard-slot {
  width: 44px;
  height: 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-color);
  margin: -6px auto 6px auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.badge-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.badge-system-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.badge-type-tag {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.badge-body-content {
  display: grid;
  grid-template-columns: 80px 1fr 76px;
  gap: 16px;
  align-items: center;
}

.badge-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.badge-photo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-details-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.badge-v-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.badge-v-company {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
  font-size: 10.5px;
}

.badge-meta-line {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.badge-meta-line strong {
  color: var(--text-secondary);
}

.badge-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.badge-qr-code {
  width: 68px;
  height: 68px;
  background: #FFFFFF;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.badge-barcode-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  border: 1px dashed var(--border-color);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.pass-actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pass-actions-toolbar .btn-pass-action {
  flex: 1;
  min-width: 100px;
  justify-content: center;
}

.pass-actions-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 125px;
  flex-shrink: 0;
}

.btn-pass-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  justify-content: flex-start;
  cursor: pointer;
}

.btn-pass-action.primary {
  background-color: #2563EB;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-pass-action.primary:hover {
  background-color: #1D4ED8;
}

.btn-pass-action.outline {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
}

.btn-pass-action.outline:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

/* ==========================================================================
   LONG LANYARD VISITOR PASS STUDIO (VERTICAL ID CARD SYSTEM)
   ========================================================================== */
.long-pass-studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.long-pass-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.pass-studio-title-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-radar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: radar-pulse 2s infinite;
}

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

.pass-studio-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.pass-studio-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 0;
}

.long-pass-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.select-visitor-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pass-view-switcher {
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 3px;
}

.view-switch-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.view-switch-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.flip-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.flip-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-surface);
}

.long-pass-studio-canvas {
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.04) 0%, rgba(15, 23, 42, 0.06) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 20px 20px;
  border: 1px solid var(--border-color);
}

.long-pass-studio-layout {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.long-pass-badges-stage {
  flex: 1;
  min-width: min(100%, 340px);
  display: flex;
  justify-content: center;
}

.long-badges-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  perspective: 1400px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3D FLIP CONTAINER ARCHITECTURE
   ========================================================================== */
.lanyard-3d-scene {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 360px;
  max-width: 100%;
  min-height: 565px;
  margin: 0 auto;
}

.lanyard-3d-card {
  position: relative;
  width: 360px;
  max-width: 100%;
  min-height: 565px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.25, 0.64, 1);
  cursor: pointer;
}

.lanyard-3d-card.is-flipped {
  transform: rotateY(180deg);
}

.lanyard-card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 26px;
  margin: 0 !important;
}

.lanyard-card-face.face-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.lanyard-card-face.face-back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* Side-by-Side Dual Display Mode */
.long-badges-wrap.both-sides-mode .lanyard-3d-scene {
  display: none !important;
}

.long-badges-wrap.both-sides-mode .both-sides-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.long-badges-wrap:not(.both-sides-mode) .both-sides-grid {
  display: none !important;
}

/* Base Card Architecture */
.long-lanyard-pass {
  width: 360px;
  max-width: 100%;
  min-height: 565px;
  border-radius: 26px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}

/* Interactive Flip Helper Pill */
.card-flip-pill-hint {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-flip-pill-hint:hover {
  transform: scale(1.05);
}

.pass-front .card-flip-pill-hint {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.pass-back .card-flip-pill-hint {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .pass-back .card-flip-pill-hint {
  background: rgba(255, 255, 255, 0.1);
  color: #FBBF24;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Lanyard Slot Cutout Punch */
.lanyard-slot-cutout {
  width: 50px;
  height: 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: -6px auto 12px;
  z-index: 5;
  flex-shrink: 0;
}

[data-theme="dark"] .lanyard-slot-cutout {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   FRONT PASS COMPONENT STYLES (LIGHT THEME DEFAULT)
   ========================================================================== */
.pass-front {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* FRONT PASS IN DARK THEME */
[data-theme="dark"] .pass-front {
  background: linear-gradient(175deg, #0F172A 0%, #172033 100%);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pass-front .front-v-name {
  color: #FFFFFF;
}

[data-theme="dark"] .pass-front .front-v-company {
  color: #E2E8F0;
}

[data-theme="dark"] .pass-front .front-v-designation {
  color: #94A3B8;
}

[data-theme="dark"] .pass-front .front-brand-title {
  color: #FFFFFF;
}

[data-theme="dark"] .pass-front .front-brand-sub {
  color: #94A3B8;
}

[data-theme="dark"] .pass-front .front-id-tag {
  color: #94A3B8;
}

[data-theme="dark"] .pass-front .front-details-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pass-front .detail-label {
  color: #94A3B8;
}

[data-theme="dark"] .pass-front .detail-sep {
  color: #64748B;
}

[data-theme="dark"] .pass-front .detail-val {
  color: #F8FAFC;
}

[data-theme="dark"] .pass-front .front-pass-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .pass-front .front-cursive-slogan {
  color: #93C5FD;
}

[data-theme="dark"] .pass-front .front-signature-svg {
  color: #93C5FD;
}

[data-theme="dark"] .pass-front .front-signature-label {
  color: #94A3B8;
}

.front-pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  position: relative;
}

.front-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.front-brand-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.front-brand-text {
  display: flex;
  flex-direction: column;
}

.front-brand-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.front-brand-sub {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
}

.front-badge-type-pill {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  text-transform: uppercase;
}

.front-pass-wave-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Profile Row */
.front-profile-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  z-index: 2;
  position: relative;
}

.front-photo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.front-photo-img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.front-valid-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #059669;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  border: 1.5px solid #FFFFFF;
}

.front-profile-meta {
  flex: 1;
  min-width: 0;
}

.front-v-name {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.front-v-designation {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
}

.front-v-company {
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  margin-top: 2px;
}

.front-v-tags-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.front-role-tag {
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.front-id-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Front Details Table */
.front-details-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 14px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6.5px;
  z-index: 2;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.front-detail-item {
  display: flex;
  align-items: center;
  font-size: 11.5px;
  line-height: 1.2;
}

.detail-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.detail-icon-circle.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
}
.detail-icon-circle.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
}
.detail-icon-circle.cyan {
  background: rgba(14, 165, 233, 0.12);
  color: #0EA5E9;
}
.detail-icon-circle.violet {
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
}
.detail-icon-circle.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}
.detail-icon-circle.sky {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}
.detail-icon-circle.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #9333EA;
}

.detail-label {
  width: 108px;
  flex-shrink: 0;
  color: #64748B;
  font-weight: 500;
}

.detail-sep {
  margin-right: 8px;
  color: #94A3B8;
  font-weight: 600;
}

.detail-val {
  flex: 1;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Front Footer */
.front-pass-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px dashed rgba(203, 213, 225, 0.8);
  padding-top: 10px;
  z-index: 2;
  position: relative;
  margin-top: auto;
}

.front-slogan-wrap {
  display: flex;
  flex-direction: column;
}

.front-cursive-slogan {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 15px;
  color: #334155;
  font-weight: 600;
}

.front-slogan-underline {
  width: 140px;
  height: 8px;
  color: #60A5FA;
  display: block;
  margin-top: -2px;
}

.front-signature-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.front-signature-svg {
  width: 110px;
  height: 32px;
  color: #1E293B;
}

.front-signature-label {
  font-size: 9px;
  color: #64748B;
  font-weight: 600;
  display: block;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   BACK PASS COMPONENT STYLES (LIGHT THEME DEFAULT)
   ========================================================================== */
.pass-back {
  background: linear-gradient(175deg, #FFFFFF 0%, #F8FAFC 55%, #F1F5F9 100%);
  color: #0F172A;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.back-architecture-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

.back-pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  position: relative;
}

.back-safety-tag {
  text-align: right;
}

.safety-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.safety-sub {
  font-size: 9.5px;
  color: #64748B;
}

.sparkle-star {
  color: #F59E0B;
  font-size: 12px;
}

.back-qr-hero-card {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  z-index: 2;
  position: relative;
}

.back-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-scan-border {
  padding: 10px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.back-qr-svg {
  width: 100px;
  height: 100px;
  display: block;
}

.scan-verify-label {
  font-size: 10px;
  font-weight: 700;
  color: #2563EB;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.back-meta-box {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 9px 14px;
  margin-bottom: 10px;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.back-meta-row {
  display: flex;
  align-items: center;
  font-size: 11.5px;
}

.meta-label {
  width: 80px;
  color: #64748B;
  font-weight: 500;
}

.meta-sep {
  margin-right: 8px;
  color: #94A3B8;
}

.meta-val {
  color: #0F172A;
  font-weight: 700;
}

.meta-val.id-code {
  font-family: var(--font-mono);
  color: #2563EB;
}

.back-instructions-wrap {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  z-index: 2;
  position: relative;
}

.instructions-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.instructions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #334155;
}

.inst-icon {
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1.2;
}

.back-pass-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed #CBD5E1;
  padding-top: 10px;
  z-index: 2;
  position: relative;
  margin-top: auto;
}

.back-location-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-text {
  display: flex;
  flex-direction: column;
  font-size: 9.5px;
  color: #64748B;
  line-height: 1.25;
}

.location-text strong {
  color: #0F172A;
  font-weight: 700;
}

.back-thankyou-script {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #D97706;
  text-shadow: none;
}

/* ==========================================================================
   BACK PASS IN DARK THEME
   ========================================================================== */
[data-theme="dark"] .pass-back {
  background: linear-gradient(175deg, #0B1120 0%, #030712 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pass-back .back-architecture-backdrop {
  opacity: 0.85;
}

[data-theme="dark"] .pass-back .safety-title {
  color: #FFFFFF;
}

[data-theme="dark"] .pass-back .safety-sub {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .pass-back .qr-scan-border {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .pass-back .scan-verify-label {
  color: #93C5FD;
}

[data-theme="dark"] .pass-back .back-meta-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .pass-back .meta-label {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .pass-back .meta-sep {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .pass-back .meta-val {
  color: #FFFFFF;
}

[data-theme="dark"] .pass-back .meta-val.id-code {
  color: #60A5FA;
}

[data-theme="dark"] .pass-back .back-instructions-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pass-back .instructions-heading {
  color: #F1F5F9;
}

[data-theme="dark"] .pass-back .instructions-list li {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .pass-back .back-pass-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pass-back .location-text {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .pass-back .location-text strong {
  color: #FFFFFF;
}

[data-theme="dark"] .pass-back .back-thankyou-script {
  color: #FBBF24;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   FLOATING ACTION TILES (RIGHT COLUMN)
   ========================================================================== */
.long-pass-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.pass-action-tile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pass-action-tile-btn:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.tile-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tile-icon-bubble.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
}
.tile-icon-bubble.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
}
.tile-icon-bubble.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}
.tile-icon-bubble.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #9333EA;
}
.tile-icon-bubble.rose {
  background: rgba(244, 63, 94, 0.12);
  color: #F43F5E;
}
.tile-icon-bubble.cyan {
  background: rgba(14, 165, 233, 0.12);
  color: #0EA5E9;
}

.tile-text-wrap {
  flex: 1;
  min-width: 0;
}

.tile-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.tile-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.tile-arrow-hint {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
   BOTTOM CARD STYLES BAR
   ========================================================================== */
.long-pass-styles-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

.styles-bar-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.styles-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.styles-bar-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.styles-cards-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.style-choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.style-choice-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.style-choice-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--bg-app);
}

.style-thumbnail-preview {
  width: 48px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.style-thumbnail-preview.corporate {
  background: linear-gradient(135deg, #1E3A8A 0%, #0284C7 100%);
}
.style-thumbnail-preview.premium {
  background: linear-gradient(135deg, #18181B 0%, #D97706 100%);
}
.style-thumbnail-preview.modern {
  background: linear-gradient(135deg, #FFFFFF 0%, #60A5FA 50%, #C084FC 100%);
}
.style-thumbnail-preview.luxury {
  background: linear-gradient(135deg, #09090B 0%, #27272A 100%);
}

.thumb-mini-header {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.thumb-mini-avatar {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin: 3px 4px;
}

.thumb-mini-lines {
  height: 2px;
  width: 18px;
  background: rgba(255, 255, 255, 0.4);
  position: absolute;
  right: 4px;
  top: 14px;
}

.style-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.styles-security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.sec-shield-icon {
  color: #2563EB;
}

.sec-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.sec-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   CARD STYLE THEME ENGINE
   ========================================================================== */
/* Corporate Style */
[data-card-style="corporate"] .pass-front {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
}

[data-card-style="corporate"] .pass-back {
  background: linear-gradient(175deg, #F0F7FF 0%, #E2EDFD 100%);
  border: 1px solid #BFDBFE;
}

[data-theme="dark"] [data-card-style="corporate"] .pass-front {
  background: #0F172A;
  border: 1px solid #1E293B;
}

[data-theme="dark"] [data-card-style="corporate"] .pass-back {
  background: linear-gradient(175deg, #0B132B 0%, #1C2541 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Premium Style (Black & Gold / Gold Accent) */
[data-card-style="premium"] .pass-front {
  background: #14151B;
  color: #F8FAFC;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.12);
}

[data-card-style="premium"] .pass-front .front-brand-title,
[data-card-style="premium"] .pass-front .front-v-name,
[data-card-style="premium"] .pass-front .detail-val,
[data-card-style="premium"] .pass-front .front-v-company {
  color: #FFFFFF;
}

[data-card-style="premium"] .pass-front .front-v-designation,
[data-card-style="premium"] .pass-front .detail-label,
[data-card-style="premium"] .pass-front .front-id-tag {
  color: #94A3B8;
}

[data-card-style="premium"] .pass-front .front-details-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-card-style="premium"] .pass-front .front-badge-type-pill {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
}

[data-card-style="premium"] .pass-front .front-cursive-slogan {
  color: #FBBF24;
}

[data-card-style="premium"] .pass-front .front-signature-svg {
  color: #FBBF24;
}

[data-card-style="premium"] .pass-back {
  background: linear-gradient(175deg, #0A0B0E 0%, #16181F 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FFFFFF;
}

[data-card-style="premium"] .pass-back .safety-title {
  color: #FFFFFF;
}

[data-card-style="premium"] .pass-back .safety-sub {
  color: #FBBF24;
}

[data-card-style="premium"] .pass-back .back-meta-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-card-style="premium"] .pass-back .meta-label {
  color: rgba(255, 255, 255, 0.7);
}

[data-card-style="premium"] .pass-back .meta-val {
  color: #FFFFFF;
}

[data-card-style="premium"] .pass-back .instructions-heading {
  color: #FFFFFF;
}

[data-card-style="premium"] .pass-back .instructions-list li {
  color: rgba(255, 255, 255, 0.8);
}

[data-card-style="premium"] .pass-back .location-text strong {
  color: #FFFFFF;
}

/* Modern Style (Light clean by default, Dark obsidian in dark theme) */
[data-card-style="modern"] .pass-front {
  background: #FFFFFF;
}

[data-card-style="modern"] .pass-back {
  background: linear-gradient(175deg, #FFFFFF 0%, #F8FAFC 55%, #F1F5F9 100%);
}

[data-theme="dark"] [data-card-style="modern"] .pass-front {
  background: linear-gradient(175deg, #0F172A 0%, #172033 100%);
}

[data-theme="dark"] [data-card-style="modern"] .pass-back {
  background: linear-gradient(175deg, #0B1120 0%, #030712 100%);
}

/* Luxury Style (Matte Carbon & Gold) */
[data-card-style="luxury"] .pass-front {
  background: #18181B;
  color: #FFFFFF;
  border: 1.5px solid #D4AF37;
}

[data-card-style="luxury"] .pass-front .front-brand-title,
[data-card-style="luxury"] .pass-front .front-v-name,
[data-card-style="luxury"] .pass-front .detail-val,
[data-card-style="luxury"] .pass-front .front-v-company {
  color: #FFFFFF;
}

[data-card-style="luxury"] .pass-front .front-details-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

[data-card-style="luxury"] .pass-back {
  background: #09090B;
  border: 1.5px solid #D4AF37;
  color: #FFFFFF;
}

[data-card-style="luxury"] .pass-back .safety-title {
  color: #FFFFFF;
}

[data-card-style="luxury"] .pass-back .safety-sub {
  color: #D4AF37;
}

[data-card-style="luxury"] .pass-back .back-meta-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

[data-card-style="luxury"] .pass-back .meta-label {
  color: rgba(255, 255, 255, 0.7);
}

[data-card-style="luxury"] .pass-back .meta-val {
  color: #FFFFFF;
}

[data-card-style="luxury"] .pass-back .instructions-heading {
  color: #FFFFFF;
}

[data-card-style="luxury"] .pass-back .instructions-list li {
  color: rgba(255, 255, 255, 0.8);
}

[data-card-style="luxury"] .pass-back .location-text strong {
  color: #FFFFFF;
}

/* QR Laser Sweep Animation */
.scanner-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444;
  animation: laser-sweep 2s ease-in-out infinite;
}

@keyframes laser-sweep {
  0% {
    top: 6%;
    opacity: 0.8;
  }
  50% {
    top: 92%;
    opacity: 1;
  }
  100% {
    top: 6%;
    opacity: 0.8;
  }
}

/* Responsive adjustments for Long Pass Studio */
@media (max-width: 1200px) {
  .long-pass-studio-layout {
    flex-direction: column;
    align-items: center;
  }
  .long-pass-actions-col {
    width: 100%;
    max-width: 740px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 800px) {
  .long-badges-wrap {
    flex-direction: column;
    align-items: center;
  }
  .long-lanyard-pass {
    width: 100%;
    max-width: 360px;
  }
}

/* High-Resolution Printable Lanyard Badge */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-badge-area,
  .printable-badge-area * {
    visibility: visible;
  }
  .printable-badge-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 86mm !important;
    min-height: 140mm !important;
    margin: 0 auto;
    box-shadow: none !important;
    page-break-after: always;
  }
}

/* ==========================================================================
   RIGHT PANEL: NOTIFICATIONS & UPCOMING VISITS
   ========================================================================== */
.side-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.side-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.link-view-all {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.link-view-all:hover {
  text-decoration: underline;
}

.notif-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-side-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-side-icon.green  { background-color: rgba(16, 185, 129, 0.12); color: #10B981; }
.notif-side-icon.blue   { background-color: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.notif-side-icon.red    { background-color: rgba(239, 68, 68, 0.12); color: #EF4444; }
.notif-side-icon.purple { background-color: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.notif-side-icon.orange { background-color: rgba(245, 158, 11, 0.12); color: #F59E0B; }

.notif-side-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.notif-side-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-side-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-side-time {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Upcoming Visits List & Filter Tabs */
.upcoming-filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.upcoming-filter-tab {
  flex: 1;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.upcoming-filter-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.upcoming-visits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upcoming-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upcoming-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12);
}

.upcoming-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upcoming-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.upcoming-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.upcoming-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
}

.upcoming-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.upcoming-status-dot.approved { background: #10B981; }
.upcoming-status-dot.pending  { background: #F59E0B; }

.upcoming-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.upcoming-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-company {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-mid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 4px 0;
  border-top: 1px dashed var(--border-color);
}

.upcoming-host-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-host-tag strong {
  color: var(--text-secondary);
}

.upcoming-room-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.upcoming-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.upcoming-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-upcoming-action {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #FFFFFF;
}

.btn-upcoming-action:hover {
  background: #1D4ED8;
}

.btn-upcoming-action.secondary {
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.btn-upcoming-action.secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ==========================================================================
   MODALS, OVERLAYS & WORKFLOW STATES
   ========================================================================== */
/* Body Modal & Drawer Scroll Lock */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile Drawer Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 28px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

/* Form Styling */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background-color: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Camera & Face Framing Overlay */
.camera-viewfinder-box {
  width: 100%;
  height: 280px;
  background: #000000;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-framing-oval {
  width: 160px;
  height: 210px;
  border: 2px dashed #3B82F6;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  position: relative;
}

.face-framing-oval::before {
  content: 'Align Face Here';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #60A5FA;
  font-weight: 600;
  white-space: nowrap;
}

/* Global Search Modal (⌘K) */
.search-modal-card {
  max-width: 580px;
  padding: 0;
  overflow: hidden;
}

.search-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.search-modal-input {
  flex: 1;
  font-size: 16px;
  background: transparent;
  color: var(--text-primary);
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-result-item:hover {
  background-color: var(--bg-hover);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  color: var(--text-primary);
  animation: slide-in-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in-toast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Stylesheet for Badges */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-badge-area, .printable-badge-area * {
    visibility: visible;
  }
  .printable-badge-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 350px;
    border: 2px solid #000000;
    padding: 16px;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES SYSTEM (PREVENTS DASHBOARD UI COLLAPSE)
   ========================================================================== */

/* Large Desktop / Compact Laptops (<= 1599px) */
@media (max-width: 1599px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .charts-row-1 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
  .charts-row-1 > .dash-card:first-child {
    grid-column: 1 / -1; /* Trend chart spans full width */
  }
  .middle-row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mid Desktop / Tablet Landscape / Split Breakpoint (<= 1399px) */
@media (max-width: 1399px) {
  .dashboard-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dashboard-right-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }
}

/* Desktop to Standard Tablet (<= 1199px) */
@media (max-width: 1199px) {
  .bottom-row-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .top-header {
    padding: 0 20px;
  }
  .header-role-switcher span:first-child {
    display: none;
  }
}

/* Tablet Portrait & Mobile Sidebar Trigger (<= 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .charts-row-1 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .search-container {
    max-width: 240px;
  }
  .search-kbd {
    display: none;
  }
}

/* Small Tablets & Large Phones (<= 860px) */
@media (max-width: 860px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .middle-row-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .dashboard-right-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard-content {
    padding: 16px 16px 32px 16px;
    gap: 16px;
  }
  .top-header {
    padding: 0 16px;
    gap: 8px;
  }
  .header-role-switcher #headerActiveRolePill {
    display: none;
  }
  .hero-greeting-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }
  .hero-right-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Mobile Phones (<= 680px) */
@media (max-width: 680px) {
  .emergency-pill-btn span:last-child {
    display: none;
  }
  .emergency-pill-btn {
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .user-info-text {
    display: none;
  }
  .header-role-switcher select {
    max-width: 120px;
    font-size: 11.5px;
  }
  .badge-body-content {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }
  .badge-qr-col {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
  }
  .badge-meta-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .card-header-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .modal-card {
    padding: 18px 16px;
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: var(--radius-lg);
  }
  .form-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .form-footer button {
    width: 100%;
    justify-content: center;
  }
}

/* Extra Small Phones (<= 500px) */
@media (max-width: 500px) {
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dashboard-content {
    padding: 12px 12px 24px 12px;
    gap: 14px;
  }
  .dash-card {
    padding: 14px;
  }
  .search-container {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .search-input {
    display: none;
  }
  .header-role-switcher {
    padding: 2px 6px;
  }
  .header-role-switcher select {
    max-width: 85px;
    font-size: 11px;
  }
  .theme-switch-wrap {
    width: 54px;
    height: 28px;
  }
  .theme-switch-thumb {
    width: 22px;
    height: 22px;
  }
  .donut-chart-wrap {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 10px 0;
  }
  .donut-legend-list {
    width: 100%;
  }
  .gauge-content-row {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 10px 0;
  }
  .gauge-legend-list {
    width: 100%;
    padding-left: 0;
  }
  .pass-actions-toolbar .btn-pass-action {
    flex: 1 1 100%;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Tiny Viewports (<= 360px) */
@media (max-width: 360px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* DEDICATED DETAIL PAGES STYLES (Department, Branch, Company, Employee)      */
/* ========================================================================== */

.detail-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.2s ease-in-out;
}

.detail-header-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
}

.detail-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.detail-breadcrumb-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast);
}

.detail-breadcrumb-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.detail-breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.6;
}

.detail-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-avatar-large {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--bg-app);
}

.detail-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-title-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-code-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.detail-subtitle-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.detail-actions-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.detail-kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.detail-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.detail-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
}

.detail-kpi-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.detail-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.detail-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.detail-card-body {
  padding: 20px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.detail-info-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.detail-quota-track {
  width: 100%;
  height: 10px;
  background: var(--bg-app);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 8px;
}

.detail-quota-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
  transition: width 0.4s ease;
}

.detail-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-app);
  margin-bottom: 10px;
  transition: border-color var(--transition-fast);
}

.detail-list-item:last-child {
  margin-bottom: 0;
}

.detail-list-item:hover {
  border-color: var(--primary);
}

@media (max-width: 992px) {
  .detail-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-header-bar {
    padding: 16px;
  }
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
  .detail-title-text {
    font-size: 18px;
  }
  .detail-actions-cluster {
    width: 100%;
  }
  .detail-actions-cluster button {
    flex: 1;
  }
}

/* ==========================================================================
   UNIVERSAL VISITOR BADGE MODAL & CUSTOMIZATION STYLES
   ========================================================================== */
#visitorDetailModal .modal-card {
  max-width: 860px;
  width: 95%;
  padding: 24px;
}

.visitor-badge-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.badge-modal-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-customizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.logo-preset-card, .sig-preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.logo-preset-card:hover, .sig-preset-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.logo-preset-card.active, .sig-preset-card.active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.logo-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
}

.logo-preset-title, .sig-preset-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-preset-sub, .sig-preset-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.custom-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-app);
}

.custom-upload-box:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}

/* Interactive Signature Pad Canvas */
.signature-canvas-wrap {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  padding: 8px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .signature-canvas-wrap {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.15);
}

.signature-canvas-canvas {
  width: 100%;
  height: 140px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.signature-canvas-hint {
  position: absolute;
  bottom: 8px;
  left: 14px;
  font-size: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.signature-canvas-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.custom-signature-rendered {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  display: inline-block;
  transform: rotate(-3deg);
}

.custom-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

/* =========================================
   Enterprise Pagination
   ========================================= */

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--card-bg, #ffffff);
}

/* Result count */

.pagination-info {
    color: var(--text-secondary, #64748b);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-info strong {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
}


/* Pagination container */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


/* Common button */

.pagination-btn {
    min-width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 9px;

    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;

    background: var(--card-bg, #ffffff);
    color: var(--text-secondary, #475569);

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;

    box-sizing: border-box;
}


/* Number hover */

a.pagination-btn:hover {
    background: var(--bg-secondary, #f8fafc);
    border-color: var(--primary-color, #2563EB);
    color: var(--primary-color, #2563EB);

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}


/* Active */

.pagination-btn.active {
    border-color: var(--primary-color, #2563EB);
    background: var(--primary-color, #2563EB);
    color: #ffffff;

    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.25);
}


/* Previous / Next */

.pagination-nav {
    gap: 6px;
    padding: 0 11px;
    min-width: auto;
}

.pagination-nav span:first-child,
.pagination-nav span:last-child {
    font-size: 12px;
    line-height: 1;
}


/* Disabled */

.pagination-btn.disabled {
    cursor: not-allowed;
    opacity: 0.4;
    background: var(--bg-secondary, #f8fafc);
}


/* Ellipsis */

.pagination-ellipsis {
    width: 28px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--text-secondary, #94a3b8);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 700px) {

    .pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pagination-info {
        text-align: center;
    }

    .pagination {
        width: 100%;
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 2px;
    }

    .pagination-btn {
        flex-shrink: 0;
    }

    .pagination-nav-text {
        display: none;
    }

    .pagination-nav {
        width: 34px;
        padding: 0;
    }
}


@media (max-width: 420px) {

    .pagination-wrapper {
        padding: 12px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        font-size: 11px;
    }

    .pagination-ellipsis {
        width: 22px;
    }
}

/* =========================================================
   Delete Confirmation Modal
   ========================================================= */

.delete-confirm-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* Modal */

.delete-confirm-modal {
    position: relative;

    width: 100%;
    max-width: 430px;

    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;

    padding: 28px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.08);

    animation: deleteModalIn 0.18s ease-out;
}


/* Animation */

@keyframes deleteModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Close button */

.delete-confirm-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--text-secondary, #64748b);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.delete-confirm-close:hover {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-primary, #0f172a);
}


/* Icon */

.delete-confirm-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background: rgba(239, 68, 68, 0.10);
    color: #ef4444;

    font-size: 21px;
}


/* Content */

.delete-confirm-content {
    padding-right: 24px;
}

.delete-confirm-title {
    margin: 0 0 8px;

    color: var(--text-primary, #0f172a);

    font-size: 19px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.delete-confirm-message {
    margin: 0;

    color: var(--text-secondary, #64748b);

    font-size: 13px;
    line-height: 1.6;
}


/* Warning */

.delete-confirm-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: 18px;
    padding: 11px 12px;

    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 9px;

    background: rgba(239, 68, 68, 0.055);

    color: #b91c1c;

    font-size: 11px;
    line-height: 1.5;
}

.delete-confirm-warning i {
    flex-shrink: 0;
    margin-top: 1px;

    font-size: 13px;
}


/* Footer */

.delete-confirm-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 9px;

    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid var(--border-color, #e5e7eb);
}


/* Cancel */

.delete-confirm-cancel {
    height: 38px;

    padding: 0 16px;

    border: 1px solid var(--border-color, #dbe1e8);
    border-radius: 8px;

    background: var(--card-bg, #ffffff);
    color: var(--text-secondary, #475569);

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.delete-confirm-cancel:hover {
    background: var(--bg-secondary, #f8fafc);
    border-color: #cbd5e1;
    color: var(--text-primary, #0f172a);
}


/* Delete */

.delete-confirm-submit {
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 92px;

    padding: 0 16px;

    border: 1px solid #dc2626;
    border-radius: 8px;

    background: #dc2626;
    color: #ffffff;

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;

    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.18);

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.delete-confirm-submit:hover {
    background: #b91c1c;
    border-color: #b91c1c;

    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.22);

    transform: translateY(-1px);
}

.delete-confirm-submit:active {
    transform: translateY(0);
}

.delete-confirm-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* Button content */

.delete-btn-text,
.delete-btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}


/* Mobile */

@media (max-width: 480px) {

    .delete-confirm-overlay {
        padding: 16px;
    }

    .delete-confirm-modal {
        max-width: none;
        padding: 22px;
        border-radius: 14px;
    }

    .delete-confirm-content {
        padding-right: 10px;
    }

    .delete-confirm-footer {
        flex-direction: column-reverse;
    }

    .delete-confirm-cancel,
    .delete-confirm-submit {
        width: 100%;
    }
}


.sidebar-logout-form {
    margin: 8px 12px 12px;
}

.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-logout-btn i {
    width: 18px;
    text-align: center;
}


/* =========================
   TOAST CONTAINER
   ========================= */

.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(390px, calc(100vw - 32px));

    pointer-events: none;
}


/* =========================
   TOAST BASE
   ========================= */

.toast-message {
    --toast-color: #3b82f6;
    --toast-soft: #eff6ff;

    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    min-height: 78px;

    padding: 15px 46px 15px 16px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;

    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.10),
        0 4px 12px rgba(15, 23, 42, 0.05);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;

    opacity: 0;
    transform: translateX(28px) scale(0.97);

    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);

    pointer-events: auto;
}


/* Visible */

.toast-message.toast-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}


/* Hiding */

.toast-message.toast-hiding {
    opacity: 0;
    transform: translateX(28px) scale(0.97);
}


/* =========================
   LEFT ACCENT
   ========================= */

.toast-message::before {
    content: "";

    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;

    width: 4px;

    background: var(--toast-color);

    border-radius: 0 6px 6px 0;
}


/* =========================
   ICON
   ========================= */

.toast-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 18px;

    color: var(--toast-color);
    background: var(--toast-soft);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);

    transition: transform 0.2s ease;
}


.toast-message:hover .toast-icon {
    transform: scale(1.05);
}


/* =========================
   CONTENT
   ========================= */

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


.toast-title {
    margin: 0 0 4px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;

    letter-spacing: -0.01em;

    color: #0f172a;
}


.toast-text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    color: #64748b;

    word-break: break-word;
}


/* =========================
   CLOSE BUTTON
   ========================= */

.toast-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #94a3b8;

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.toast-close:hover {
    background: #f1f5f9;
    color: #334155;
}


.toast-close:active {
    transform: scale(0.9);
}


/* =========================
   SUCCESS
   ========================= */

.toast-success {
    --toast-color: #16a34a;
    --toast-soft: #f0fdf4;
}


/* =========================
   ERROR
   ========================= */

.toast-error {
    --toast-color: #dc2626;
    --toast-soft: #fef2f2;
}


/* =========================
   WARNING
   ========================= */

.toast-warning {
    --toast-color: #d97706;
    --toast-soft: #fffbeb;
}


/* =========================
   INFO
   ========================= */

.toast-info {
    --toast-color: #2563eb;
    --toast-soft: #eff6ff;
}


/* =========================
   PROGRESS BAR
   ========================= */

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background: var(--toast-color);

    opacity: 0.85;

    transform-origin: left center;

    animation: toastProgress 3.5s linear forwards;
}


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

    to {
        transform: scaleX(0);
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .toast-container {
        top: 12px;
        left: 12px;
        right: 12px;

        width: auto;
    }

    .toast-message {
        min-height: 72px;

        padding:
            14px
            42px
            14px
            14px;

        border-radius: 14px;
    }

    .toast-icon {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        border-radius: 10px;

        font-size: 16px;
    }

    .toast-title {
        font-size: 13.5px;
    }

    .toast-text {
        font-size: 12.5px;
    }
}


/* =========================
   DARK MODE OPTIONAL
   ========================= */

[data-theme="dark"] .toast-message {
    background: rgba(15, 23, 42, 0.96);

    border-color: rgba(71, 85, 105, 0.7);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        0 5px 14px rgba(0, 0, 0, 0.18);
}


[data-theme="dark"] .toast-title {
    color: #f8fafc;
}


[data-theme="dark"] .toast-text {
    color: #94a3b8;
}


[data-theme="dark"] .toast-close:hover {
    background: #1e293b;
    color: #f8fafc;
}