:root {
  /* Futuristic UI Palette */
  --bg-color: #020408;
  --grid-color: rgba(0, 122, 255, 0.1);
  --glow-color: rgba(0, 122, 255, 0.15);

  /* Frosted Apple Glass (Reinforced) */
  --card-bg: rgba(10, 15, 25, 0.7);
  --card-border-top: rgba(255, 255, 255, 0.12);
  --card-border-subtle: rgba(255, 255, 255, 0.05);

  --primary-gradient: linear-gradient(135deg, #007aff 0%, #00d2ff 100%);
  --accent-glow: 0 0 40px rgba(0, 122, 255, 0.5);
}

.cp {
  cursor: pointer;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", Roboto, sans-serif;
  background-color: var(--bg-color);
  /* Futuristic Grid & Glow Background */
  background-image:
    radial-gradient(circle at 50% -20%, var(--glow-color), transparent 70%),
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Scanline Effect */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(50%, rgba(18, 16, 16, 0)), color-stop(50%, rgba(0, 0, 0, 0.05))),
    -webkit-gradient(linear, left top, right top, from(rgba(255, 0, 0, 0.01)), color-stop(rgba(0, 255, 0, 0.01)), to(rgba(0, 0, 255, 0.01)));
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.01));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  z-index: 100;
  /* Lowered from 9999 for better editor compatibility */
  opacity: 0.6;
}

/* iOS Glassmorphism Widget Cards (Futuristic Update) */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--card-border-subtle);
  border-top: 1px solid var(--card-border-top);
  border-left: 1px solid var(--card-border-top);
  border-radius: 32px;
  -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 20px rgba(0, 122, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 20px rgba(0, 122, 255, 0.05);
  -webkit-transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Video Container */
#canvas-wrapper {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  background: #000;
}

/* Fix blank space: Ensure container fills the wrapper */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#video,
#enrollVideo {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  /* Mirror video */
  position: relative;
  z-index: 1;
}

#enroll-liveness-overlay {
  position: absolute;
  top: 70%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: rgba(0, 0, 255, 0.01);
}

/* FORCE Canvas Overlay */
#canvas-container canvas,
#enroll-canvas-container canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
  pointer-events: none;
}

/* Viewfinder Overlay */
.viewfinder {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  pointer-events: none;
  z-index: 5;
  -webkit-box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Scanning Animation */
.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #3b82f6;
  -webkit-box-shadow: 0 0 15px #3b82f6, 0 0 30px #3b82f6;
  box-shadow: 0 0 15px #3b82f6, 0 0 30px #3b82f6;
  -webkit-animation: scan 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation: scan 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  display: none;
  z-index: 10;
  pointer-events: none;
}

@-webkit-keyframes scan {
  0% {
    top: 5%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 95%;
    opacity: 0;
  }
}

@keyframes scan {
  0% {
    top: 5%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 95%;
    opacity: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Buttons & Inputs (iOS Style) */
.btn {
  border-radius: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover:not(:disabled) {
  transform: none;
}

.btn:active:not(:disabled) {
  transform: none;
}

.btn-gradient-primary {
  background: var(--primary-gradient);
  border: none;
  color: white;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn-gradient-primary:hover:not(:disabled) {
  transform: none;
  box-shadow: var(--accent-glow);
  color: white;
  opacity: 0.92;
}

.form-control-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: #ffffff;
  /* Brighter input text */
  font-weight: 500;
  padding: 0.8rem 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.form-control-dark::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
  /* Improved contrast placeholder */
  font-weight: 400;
}

.form-control-dark::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
  /* Improved contrast placeholder */
  font-weight: 400;
}

.form-control-dark:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
  /* Improved contrast placeholder */
  font-weight: 400;
}

.form-control-dark::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
  /* Improved contrast placeholder */
  font-weight: 400;
}

.form-control-dark::placeholder {
  color: rgba(255, 255, 255, 0.5);
  /* Improved contrast placeholder */
  font-weight: 400;
}

.form-control-dark:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  -webkit-box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  outline: none;
}

.form-select-dark {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.25rem center !important;
  background-size: 16px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  padding: 0.8rem 2.8rem 0.8rem 1.25rem !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  -webkit-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.form-select-dark:focus {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  -webkit-box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

.form-select-dark option {
  background-color: #1a1a24;
  color: #ffffff;
}

/* Status Badge */
.status-badge {
  font-size: 0.75rem;
  padding: 0.5em 1em;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.logout-btn {
  font-size: 0.75rem;
  padding: 0.5em 1.2em;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-password-toggle {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-password-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

.btn-password-toggle:focus {
  outline: none;
}

/* Markdown Styles */
.prose strong {
  color: #60a5fa;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.25rem;
}

/* Warning Utilities */
.blur-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pointer-events-none {
  pointer-events: none;
}

/* Sidebar CSS */
:root {
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --transition-speed: 0.4s;
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  z-index: 1050;
  background: rgba(10, 15, 25, 0.4);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-transition: all var(--transition-speed) cubic-bezier(0.25, 1, 0.25, 1);
  transition: all var(--transition-speed) cubic-bezier(0.25, 1, 0.25, 1);
  -webkit-transform: translateX(0);
  transform: translateX(0);
  padding: 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

#sidebar::-webkit-scrollbar {
  width: 5px;
}
#sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
#sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

body.sidebar-collapsed #sidebar {
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
}

#main-wrapper {
  -webkit-transition: all var(--transition-speed) cubic-bezier(0.25, 1, 0.25, 1);
  transition: all var(--transition-speed) cubic-bezier(0.25, 1, 0.25, 1);
  padding-left: var(--sidebar-width);
  min-height: 100vh;
  width: 100%;
}

body.sidebar-collapsed #main-wrapper {
  padding-left: 0;
}

.nav-link-custom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none !important;
  border-radius: 18px;
  margin-bottom: 0.5rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link-custom:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.nav-link-custom.active {
  background: var(--primary-gradient);
  color: white;
  -webkit-box-shadow: var(--accent-glow);
  box-shadow: var(--accent-glow);
}

.nav-link-custom i {
  width: 20px;
  height: 20px;
}

#sidebar-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-right: 20px;
  border-radius: 14px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

#sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

nav.navbar,
.emp-navbar {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
  #sidebar {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    width: 300px;
  }

  body.sidebar-open #sidebar {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  #main-wrapper {
    padding-left: 0 !important;
  }

  #sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    display: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  body.sidebar-open #sidebar-overlay {
    display: block;
  }
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #007aff 0%, #00d2ff 100%);
}

.text-transparent {
  color: transparent;
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.tracking-tight {
  letter-spacing: -0.03em;
}

.hero-visual-container {
  position: relative;
  padding: 40px;
}

.hero-visual-container img {
  position: relative;
  z-index: 2;
  -webkit-box-shadow: 0 0 100px rgba(0, 122, 255, 0.2);
  box-shadow: 0 0 100px rgba(0, 122, 255, 0.2);
}

.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.glow-ring-1 {
  width: 120%;
  height: 120%;
  -webkit-animation: pulse 4s ease-in-out infinite;
  animation: pulse 4s ease-in-out infinite;
}

.glow-ring-2 {
  width: 140%;
  height: 140%;
  animation: pulse 6s ease-in-out infinite reverse;
}

/* Animations */
.animate-float {
  -webkit-animation: float 6s ease-in-out infinite;
  animation: float 6s ease-in-out infinite;
}

@-webkit-keyframes float {

  0%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  50% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
}

@keyframes float {

  0%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  50% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
}

@-webkit-keyframes pulse {

  0%,
  100% {
    -webkit-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    -webkit-transform: translate(-50%, -50%) scale(1.1);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.1;
  }
}

@keyframes pulse {

  0%,
  100% {
    -webkit-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    -webkit-transform: translate(-50%, -50%) scale(1.1);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.1;
  }
}

.animate-fade-in {
  /* Start visible for Design View, then animate */
  -webkit-animation: fadeIn 0.8s ease-out forwards;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  /* Start visible for Design View, then animate */
  -webkit-animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-50 {
  -webkit-animation-delay: 0.05s;
  animation-delay: 0.05s;
}

.delay-100 {
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
}

.delay-150 {
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}

.delay-200 {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}

.delay-250 {
  -webkit-animation-delay: 0.25s;
  animation-delay: 0.25s;
}

.delay-300 {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

.delay-400 {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

.delay-500 {
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

.hero-title {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}

.feature-title {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
}

/* Bento Grid Layout & Spotlight */
.bento-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.bento-visual {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.bento-visual-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #34c759;
}

.hover-lift:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 122, 255, 0.08);
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes slideUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(30px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/* Sidebar & Navbar Custom Styles */
.sidebar-logo-container {
  width: 42px;
  height: 42px;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
}

.sidebar-subtitle {
  font-size: 0.7rem;
}

.sidebar-status-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-status-icon {
  width: 24px;
}

.navbar-custom {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.8rem 0;
}

.status-spinner-sm {
  width: 0.5rem;
  height: 0.5rem;
}

.logout-icon {
  width: 14px;
  height: 14px;
}

/* Icon Utility Classes */
.icon-xs {
  width: 14px;
}

.icon-sm {
  width: 18px;
}

.btn-icon-sm {
  width: 18px;
  height: 18px;
}

.btn-icon-md {
  width: 20px;
}

.feature-icon {
  width: 24px;
}

/* Home Page Specific Classes */
.hero-title {
  line-height: 1.1;
}

.hero-description {
  max-width: 500px;
}

.modal-glass {
  border-radius: 36px;
  overflow: hidden;
  background: rgba(30, 30, 40, 0.4);
  /* Adjusted to be consistent if needed, but using the one from home-page.ejs */
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  backdrop-filter: blur(50px) saturate(200%);
}

.modal-glass-dark {
  background: rgba(30, 30, 40, 0.6);
}

/* Global Modal Fallback to ensure no white background */
.modal-content {
  background: var(--card-bg) !important;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--card-border-subtle) !important;
  color: white !important;
  border-radius: 32px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.modal-header, .modal-footer {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Utility: Shadow Glow */
.shadow-glow {
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
}

.shadow-glow-primary {
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

.shadow-glow-danger {
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}

.shadow-glow-info {
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.4);
}

.shadow-glow-success {
  box-shadow: 0 0 15px rgba(25, 135, 84, 0.4);
}

.hover-link:hover {
  color: var(--bs-primary) !important;
  opacity: 1 !important;
}


.footer-logo {
  width: 48px;
  height: 48px;
}

.footer-description {
  max-width: 400px;
  line-height: 1.6;
}

.hover-link {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.hover-link:hover {
  color: #007aff !important;
  -webkit-transform: translateX(5px);
  transform: translateX(5px);
}

.h-link:hover {
  text-decoration: underline !important;
}

/* Atten-Face Specific Classes */
.spinner-lg {
  width: 3rem;
  height: 3rem;
}

.liveness-card {
  max-width: 340px;
  width: 90%;
}

.challenge-icon-container {
  width: 60px;
  height: 60px;
}

.challenge-icon {
  width: 30px;
  height: 30px;
}

.progress-sm {
  height: 6px;
}

.stat-card {
  border-radius: 24px;
}

.log-container {
  min-height: 400px;
  max-height: 600px;
}

.card-header-rounded {
  border-radius: 32px 32px 0 0;
}

.badge-rounded {
  border-radius: 12px;
}

.icon-16 {
  width: 16px;
}

/* Registered Users Specific Classes */
.user-icon-container {
  width: 80px;
  height: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.user-icon-lg {
  width: 40px;
  height: 40px;
}

.stat-badge-min {
  min-width: 120px;
}

.user-card-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-sm {
  border-radius: 8px;
  font-size: 0.7rem;
}

.icon-10 {
  width: 10px;
}

.icon-48 {
  width: 48px;
  height: 48px;
}

/* Login Page Specific Classes */
.login-logo {
  width: 60px;
  height: 60px;
}

.hover-link-glow:hover {
  text-shadow: 0 0 10px rgba(0, 122, 255, 0.4);
}

.hover-link-primary-alt:hover {
  color: #ffffff !important;
}

.transition-all-ease {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* Animations from registered-users.ejs script */
@keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
  }

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

.animate-in {
  -webkit-animation: fadeIn 0.6s cubic-bezier(0.25, 1, 0.25, 1) forwards;
  animation: fadeIn 0.6s cubic-bezier(0.25, 1, 0.25, 1) forwards;
}

.hover-lift-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.hover-lift:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hover-glow:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  -webkit-box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Shared Futuristic Components */
.x-small {
  font-size: 0.72rem;
}

.tracking-widest {
  letter-spacing: 0.12em;
}

.glow-primary {
  -webkit-box-shadow: 0 0 30px rgba(0, 122, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 122, 255, 0.2);
}

/* Pulse Dot for System Status */
.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  -webkit-animation: pulse-dot 2s infinite;
  animation: pulse-dot 2s infinite;
}

@-webkit-keyframes pulse-dot {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulse-dot {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Login Specific Background */
.login-glow-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, transparent 70%);
  -webkit-filter: blur(80px);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.custom-checkbox .form-check-input {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
  background-color: #007aff;
  border-color: #007aff;
}

/* Wappler Design View Specific Fixes */
@media dmx-design-view {

  .animate-fade-in,
  .animate-slide-up,
  .animate-reveal {
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-animation: none !important;
    animation: none !important;
  }

  body::after,
  .login-glow-bg {
    display: none !important;
  }
}

/* Reveal Animation fix for Login */
.animate-reveal {
  -webkit-animation: reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation: reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@-webkit-keyframes reveal {
  0% {
    opacity: 0;
    -webkit-transform: translateY(40px);
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes reveal {
  0% {
    opacity: 0;
    -webkit-transform: translateY(40px);
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/* Auth View Transitions */
.auth-view {
  -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.auth-view.view-hidden {
  opacity: 0;
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
  pointer-events: none;
}

.auth-view.d-none {
  display: none !important;
}

}

/* Compact Inline Login Inputs */
.auth-input {
  padding-left: 4.2rem !important;
  padding-right: 4.2rem !important;
  height: 54px;
  border-radius: 27px !important;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.input-with-icon {
  padding-left: 4.2rem !important;
}

.prefix-toggle-btn {
  position: absolute;
  top: 50%;
  left: 6px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 21px;
  /* Matches inner curve of 27px input */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.prefix-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  -webkit-transform: translateY(-50%) scale(1.05);
  transform: translateY(-50%) scale(1.05);
}

.inline-input-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 21px;
  /* Matches inner curve of 27px input */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.inline-input-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  -webkit-transform: translateY(-50%) translateX(2px);
  transform: translateY(-50%) translateX(2px);
}

.submit-btn {
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.submit-btn:hover {
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.5);
  -webkit-transform: translateY(-50%) scale(1.05);
  transform: translateY(-50%) scale(1.05);
}

/* Submit Button Loading State */
.submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.submit-btn.is-loading .btn-icon {
  display: none !important;
}

.submit-btn.is-loading .btn-spinner {
  display: inline-block !important;
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* Wappler Validation Overrides for Compact Layout */
.auth-input.is-valid,
.was-validated .auth-input:valid {
  background-color: rgba(255, 255, 255, 0.05) !important;
  /* Keep dark theme */
  border-color: rgba(76, 175, 80, 0.6) !important;
  background-position: right 60px center !important;
  /* Position checkmark before arrow button */
}

.auth-input.is-invalid,
.was-validated .auth-input:invalid {
  background-color: rgba(255, 255, 255, 0.05) !important;
  /* Keep dark theme */
  border-color: rgba(220, 53, 69, 0.6) !important;
  background-position: right 60px center !important;
  /* Position error icon before arrow button */
}

/* Two-Step Form Transitions */
.auth-steps-wrapper {
  position: relative;
  width: 100%;
}

.auth-step {
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.auth-step.step-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

/* Stable Input Wrapper Fix */
.auth-input-wrapper {
  position: relative;
  width: 100%;
}

.auth-input-wrapper .invalid-feedback {
  position: absolute;
  bottom: -22px;
  left: 20px;
  font-size: 0.75rem;
  color: #ff4d4d;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 10px;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  z-index: 20;
  margin-top: 0;
  display: none;
}

.auth-input.is-invalid+.invalid-feedback,
.was-validated .auth-input:invalid+.invalid-feedback {
  display: block !important;
}

/* Ensure form group has space for the absolute feedback */
.form-group.mb-0 {
  margin-bottom: 25px !important;
}

/* Password Toggle Enhancements */
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 50px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  z-index: 15;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.password-toggle-btn.dimmed {
  opacity: 0.3;
}

.password-toggle-btn:hover {
  color: #fff;
  -webkit-transform: translateY(-50%) scale(1.1);
  transform: translateY(-50%) scale(1.1);
}

/* Pricing Section Styles */
.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.price-card-enterprise {
  border: 1px solid rgba(0, 122, 255, 0.25) !important;
  background: rgba(10, 20, 40, 0.45) !important;
}

.price-card-enterprise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.price-value {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 4px;
}

.price-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

.pricing-feature-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-feature-list li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature-list li i {
  color: #34c759;
  flex-shrink: 0;
}

.form-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ========================================================= */
/* Antigravity Spatial Tables & Badges - Universal Dark Theme */
/* ========================================================= */

.custom-table {
  width: 100%;
  margin-bottom: 0;
  color: #e2e8f0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.custom-table > :not(caption) > * > * {
  background-color: transparent !important;
  box-shadow: none !important;
}

.custom-table {
  background: transparent !important;
}

.custom-table thead {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.custom-table thead th {
  color: #94a3b8 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.85rem 1rem !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  white-space: nowrap;
}

.custom-table tbody tr {
  background: transparent !important;
  transition: background-color 0.15s ease !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.custom-table tbody tr:hover,
.custom-table tbody tr:hover > * {
  background: rgba(255, 255, 255, 0.04) !important;
}

.custom-table tbody tr.table-active,
.custom-table tbody tr.table-active > * {
  background: rgba(0, 122, 255, 0.12) !important;
  border-left: 3px solid #007aff !important;
}

.custom-table tbody td {
  background: transparent !important;
  padding: 0.85rem 1rem !important;
  color: #f1f5f9 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  vertical-align: middle !important;
}

/* Micro-badge for Employee ID and Role in sub-row */
.emp-id-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 22px !important;
  padding: 0 7px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  background: rgba(0, 210, 255, 0.1) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 4px !important;
  line-height: 1 !important;
}

.emp-role-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 22px !important;
  padding: 0 8px !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  border-radius: 9999px !important;
  line-height: 1 !important;
}

/* Status Pill Badges (Unassigned, Enrolled, Pending) */
.pill-badge-md {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 26px !important;
  padding: 0 11px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  gap: 5px !important;
  line-height: 1 !important;
}

.pill-badge-md i, .pill-badge-md svg {
  width: 13px !important;
  height: 13px !important;
}

/* Employee Count Pill Badge */
.count-pill-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  padding: 0 14px !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  line-height: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.count-pill-badge i, .count-pill-badge svg {
  width: 14px !important;
  height: 14px !important;
  color: #38bdf8 !important;
  flex-shrink: 0 !important;
}

/* Compact Action Buttons */
.btn-action-compact {
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  transform: none !important;
}

.btn-action-compact i, .btn-action-compact svg {
  width: 13px !important;
  height: 13px !important;
}

/* Antigravity Glassmorphic Badges (High-Contrast & Solid Readability) */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

.badge svg, .badge i {
  display: inline-block !important;
  vertical-align: -1px !important;
  flex-shrink: 0 !important;
}

.badge-glass-primary {
  background: rgba(0, 122, 255, 0.22) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.45) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.badge-glass-primary svg {
  stroke: #60a5fa !important;
}

.badge-glass-success {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.badge-glass-success svg {
  stroke: #34d399 !important;
}

.badge-glass-warning {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.badge-glass-warning svg {
  stroke: #fbbf24 !important;
}

.badge-glass-info {
  background: rgba(6, 182, 212, 0.22) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.badge-glass-info svg {
  stroke: #38bdf8 !important;
}

.badge-glass-secondary {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(226, 232, 240, 0.3) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em !important;
}

.badge-glass-secondary svg {
  stroke: #e2e8f0 !important;
}

.badge-glass-danger {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.badge-glass-danger svg {
  stroke: #f87171 !important;
}

.badge-code {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: 6px !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.btn-icon-action:hover {
  background: rgba(0, 122, 255, 0.2);
  border-color: rgba(0, 122, 255, 0.4);
  color: #ffffff;
  transform: none;
}

/* Glassmorphic Stat Circle Icons */
.icon-glass-primary {
  background: rgba(0, 122, 255, 0.25) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.5) !important;
}
.icon-glass-primary svg {
  stroke: #60a5fa !important;
}

.icon-glass-success {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
}
.icon-glass-success svg {
  stroke: #34d399 !important;
}

.icon-glass-info {
  background: rgba(6, 182, 212, 0.25) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}
.icon-glass-info svg {
  stroke: #38bdf8 !important;
}

.icon-glass-warning {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
}
.icon-glass-warning svg {
  stroke: #fbbf24 !important;
}

.icon-glass-danger {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.5) !important;
}
.icon-glass-danger svg {
  stroke: #f87171 !important;
}

/* ==========================================================================
   iOS PWA Safe Area Insets & Touch Optimizations
   ========================================================================== */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  #sidebar {
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .navbar-custom, .emp-navbar {
    padding-top: calc(0.5rem + env(safe-area-inset-top));
  }
}

/* Touch Optimizations for iOS PWA */
button, a, input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* iOS PWA Install Banner */
.ios-pwa-banner {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 440px;
  z-index: 9990;
  pointer-events: auto;
}

.ios-pwa-card {
  padding: 1rem 1.25rem !important;
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 122, 255, 0.2) !important;
}

.ios-pwa-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-close-banner {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0 0 0.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.btn-close-banner:hover {
  color: #ffffff;
}

/* ==========================================================================
   Mobile-Friendly Employee Dashboard & Navigation
   ========================================================================== */
.emp-main-wrapper {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  .emp-main-wrapper {
    padding-bottom: 2rem;
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  gap: 3px;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.bottom-nav-item i,
.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: #94a3b8;
  transition: all 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #00d2ff !important;
}

.bottom-nav-item:hover svg,
.bottom-nav-item.active svg {
  stroke: #00d2ff !important;
  transform: translateY(-2px);
}

.bottom-nav-center-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 2px;
}

.bottom-nav-center-btn {
  width: 48px;
  height: 48px;
  margin-top: -22px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-center-action:active .bottom-nav-center-btn {
  transform: scale(0.92);
}

.bottom-nav-center-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

/* Mobile Quick Punch Hero Card */
.punch-hero-card {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(10, 15, 30, 0.8) 100%);
  border: 1px solid rgba(0, 122, 255, 0.25);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.punch-hero-btn {
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
  text-decoration: none;
  transition: all 0.2s ease;
}

.punch-hero-btn:active {
  transform: scale(0.98);
}

/* Mobile 2x2 Metric Tile */
.stat-tile-mobile {
  border-radius: 20px;
  padding: 1rem !important;
  background: rgba(12, 18, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-tile-mobile .stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-tile-mobile .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 600;
}

/* Mobile Timeline Log Card */
.mobile-log-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: background 0.2s ease;
}

.mobile-log-card:active {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-log-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Vertical Camera Viewport & Centered Action */
.vertical-camera-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(0, 122, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 122, 255, 0.2);
  background: #000;
}

@media (max-height: 720px) {
  .vertical-camera-wrapper {
    aspect-ratio: 4 / 5;
    max-width: 340px;
  }
}

.vertical-action-container {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto 0 auto;
}

/* Tactile Status Toggle Switch with Check & Xmark */
.status-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 22px;
  padding: 2px;
  border-radius: 9999px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  outline: none;
  line-height: 1;
  vertical-align: middle;
}
.status-toggle-switch:hover {
  filter: brightness(1.2);
  border-color: rgba(239, 68, 68, 0.65);
}
.status-toggle-switch.is-active {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.status-toggle-switch.is-active:hover {
  border-color: rgba(16, 185, 129, 0.8);
}
.status-toggle-switch .toggle-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.22s ease;
  transform: translateX(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.status-toggle-switch.is-active .toggle-thumb {
  transform: translateX(22px);
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.status-toggle-switch .toggle-thumb svg {
  display: block;
  pointer-events: none;
}
.status-toggle-switch .toggle-thumb .icon-check {
  display: none !important;
}
.status-toggle-switch .toggle-thumb .icon-xmark {
  display: block !important;
}
.status-toggle-switch.is-active .toggle-thumb .icon-check {
  display: block !important;
}
.status-toggle-switch.is-active .toggle-thumb .icon-xmark {
  display: none !important;
}

/* ==========================================================================
   BioFace Bento 2.0 & Mobile App Design Alignment
   ========================================================================== */

/* Sync & Biometric Directory Strip */
.dash-sync-strip {
  margin-bottom: 1.5rem;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.dash-sync-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.dash-sync-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sync-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sync-status-dot.syncing {
  background: #0071e3;
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.8);
  animation: syncPulse 1.2s infinite ease-in-out;
}

@keyframes syncPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.dash-sync-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
}

.dash-sync-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

@media (min-width: 768px) {
  .dash-sync-rows {
    flex-direction: row;
    align-items: center;
  }
  .sync-direction-row {
    flex: 1;
  }
}

.sync-direction-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.25s ease;
}

.sync-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-dir-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sync-dir-icon.inward {
  background: rgba(0, 113, 227, 0.15);
  color: #38bdf8;
}

.sync-dir-icon.outward {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
}

.sync-dir-icon.employees {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.sync-dir-icon.unassigned {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.sync-dir-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sync-dir-title {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
}

.sync-dir-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}

.sync-pending-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.sync-pending-pill.synced {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.sync-pending-pill.emp-stat-active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.sync-pending-pill.emp-stat-enrolled {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.sync-pending-pill.emp-stat-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.sync-pending-pill.emp-stat-unassigned {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.sync-emp-pills-grid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Bento 2.0 Cards */
.bento-app-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.bento-app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 113, 227, 0.08);
}

.bento-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bento-header-tag {
  text-transform: uppercase;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.bento-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.bento-row-item + .bento-row-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.bento-row-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.bento-row-val {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.bento-big-num {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
}

.bento-trend-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bento-trend-badge.positive {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
}

.bento-trend-badge.negative {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* App-Style Recent Activity Feed */
.recent-activity-container {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.ma-employee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ma-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.ma-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.ma-row-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Calendar Date Badge */
.recent-activity-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px 0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-activity-date-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #64748b;
}

.recent-activity-date-badge.activity-active::before {
  background: #34c759;
}

.recent-activity-date-badge.activity-complete::before {
  background: #0071e3;
}

.recent-activity-date-badge.activity-absent::before {
  background: #ef4444;
}

.recent-activity-date-badge.activity-void::before {
  background: #a855f7;
}

.recent-activity-date-badge.activity-warning::before {
  background: #f59e0b;
}

.recent-activity-date-badge.activity-manual::before {
  background: #0284c7;
}

.badge-day {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
}

.badge-divider {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2px 0;
}

.badge-month {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* Center Employee Info */
.ma-emp-info {
  flex: 1;
  min-width: 0;
}

.ma-emp-topline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ma-emp-name {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-emp-project {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.ma-emp-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ma-emp-id-tag {
  font-size: 10px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 6px;
}

.ma-time-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.ma-time-tag-onduty {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
}

.ma-time-tag-completed {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.ma-time-tag-absent {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.ma-time-tag-void {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.ma-absent-reason-tag {
  font-size: 10px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  padding: 1px 6px;
  border-radius: 6px;
}

.attn-puncher-tag {
  font-size: 10px;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Right Status Column */
.ma-status-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.attn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-transform: uppercase;
}

.attn-badge svg {
  flex-shrink: 0;
}

/* 1. Manual Present: Blue */
.attn-badge-manual {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.28);
}

/* 2. On Duty (Bio): Green */
.attn-badge-onduty {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.28);
}

/* 3. Completed Today (Worked Hours): Gray */
.attn-badge-completed {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 4. Absent: Red */
.attn-badge-absent {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

/* 5. Void: Purple */
.attn-badge-void {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

/* Top Attenders Dark Theme Leaderboard */
.top-attender-card {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.top-attender-card:hover {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.28) !important;
  transform: translateX(2px);
}

.top-attender-rank {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
}

.top-attender-rank.rank-1 {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.top-attender-rank.rank-2 {
  background: rgba(203, 213, 225, 0.16) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(203, 213, 225, 0.3) !important;
}

.top-attender-rank.rank-3 {
  background: rgba(217, 119, 6, 0.18) !important;
  color: #fb923c !important;
  border: 1px solid rgba(217, 119, 6, 0.35) !important;
}

.top-attender-rank.rank-default {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.top-attender-info {
  flex-grow: 1;
  min-width: 0;
}

.top-attender-name {
  color: #f8fafc !important;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.top-attender-id {
  color: #94a3b8 !important;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
}

.top-attender-hours-badge {
  text-align: right;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 4px 10px;
}

.top-attender-hours-val {
  color: #38bdf8 !important;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  line-height: 1.1;
}

.top-attender-hours-lbl {
  color: #64748b !important;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 1px;
}

/* ========================================================= */
/* BioFace Liquid Glass - Theme Toggle Button                */
/* ========================================================= */
.btn-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-theme-toggle:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.15);
  color: #fde047;
  border-color: rgba(255, 255, 255, 0.3);
}

[data-bs-theme="light"] .btn-theme-toggle,
[data-theme="light"] .btn-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .btn-theme-toggle:hover,
[data-theme="light"] .btn-theme-toggle:hover {
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  border-color: rgba(0, 122, 255, 0.3);
}

/* ========================================================= */
/* BioFace Liquid Glass - Light Theme Module                 */
/* ========================================================= */

[data-bs-theme="light"],
[data-theme="light"],
html[data-bs-theme="light"],
html[data-theme="light"],
body[data-bs-theme="light"],
body[data-theme="light"] {
  --bg-color: #f8fafc;
  --grid-color: rgba(148, 163, 184, 0.12);
  --glow-color: rgba(0, 122, 255, 0.06);

  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border-top: rgba(0, 0, 0, 0.08);
  --card-border-subtle: rgba(0, 0, 0, 0.06);

  --primary-gradient: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
  --accent-glow: 0 4px 20px rgba(0, 122, 255, 0.25);
}

/* Light Theme Canvas */
html[data-bs-theme="light"],
html[data-theme="light"],
body[data-bs-theme="light"],
body[data-theme="light"],
[data-bs-theme="light"] body,
[data-theme="light"] body {
  background-color: #f8fafc !important;
  background-image:
    radial-gradient(circle at 50% -20%, rgba(0, 122, 255, 0.06), transparent 70%),
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px) !important;
  color: #0f172a !important;
}

html[data-bs-theme="light"] body::after,
html[data-theme="light"] body::after,
body[data-bs-theme="light"]::after,
body[data-theme="light"]::after,
[data-bs-theme="light"] body::after,
[data-theme="light"] body::after {
  display: none !important;
  opacity: 0 !important;
}

/* Universal Text & Contrast Adaptation */
[data-bs-theme="light"] .text-white,
[data-theme="light"] .text-white {
  color: #0f172a !important;
}

[data-bs-theme="light"] .text-white-50,
[data-theme="light"] .text-white-50 {
  color: #64748b !important;
}

[data-bs-theme="light"] .border-white,
[data-theme="light"] .border-white {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .border-opacity-10,
[data-theme="light"] .border-opacity-10 {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .btn-outline-light,
[data-theme="light"] .btn-outline-light {
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  background: rgba(0, 0, 0, 0.02) !important;
}

[data-bs-theme="light"] .btn-outline-light:hover,
[data-theme="light"] .btn-outline-light:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="light"] .btn-close-white,
[data-theme="light"] .btn-close-white {
  filter: none !important;
}

[data-bs-theme="light"] hr,
[data-theme="light"] hr {
  border-color: rgba(0, 0, 0, 0.08) !important;
  opacity: 1 !important;
}

/* Glass Cards */
[data-bs-theme="light"] .glass-card,
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Sidebar */
[data-bs-theme="light"] #sidebar,
[data-theme="light"] #sidebar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.03) !important;
}

[data-bs-theme="light"] #sidebar .nav-section-label,
[data-theme="light"] #sidebar .nav-section-label {
  color: #94a3b8 !important;
}

[data-bs-theme="light"] .nav-link-custom,
[data-theme="light"] .nav-link-custom {
  color: #475569 !important;
}

[data-bs-theme="light"] .nav-link-custom:hover,
[data-theme="light"] .nav-link-custom:hover {
  background: rgba(0, 122, 255, 0.08) !important;
  color: #007aff !important;
}

[data-bs-theme="light"] .nav-link-custom.active,
[data-theme="light"] .nav-link-custom.active {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35) !important;
}

[data-bs-theme="light"] #sidebar .glass-card,
[data-theme="light"] #sidebar .glass-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Navbar */
[data-bs-theme="light"] nav.navbar,
[data-theme="light"] nav.navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03) !important;
}

[data-bs-theme="light"] #sidebar-toggle,
[data-theme="light"] #sidebar-toggle {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}

[data-bs-theme="light"] #sidebar-toggle:hover,
[data-theme="light"] #sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] nav.navbar .status-badge,
[data-theme="light"] nav.navbar .status-badge {
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  color: #b45309 !important;
}

[data-bs-theme="light"] .logout-btn,
[data-theme="light"] .logout-btn {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}

[data-bs-theme="light"] .logout-btn:hover,
[data-theme="light"] .logout-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Dashboard Bento & Telemetry */
[data-bs-theme="light"] .dash-sync-strip,
[data-theme="light"] .dash-sync-strip {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px -5px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .dash-sync-title,
[data-theme="light"] .dash-sync-title {
  color: #0f172a !important;
}

[data-bs-theme="light"] .sync-direction-row,
[data-theme="light"] .sync-direction-row {
  background: rgba(248, 250, 252, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .sync-dir-title,
[data-theme="light"] .sync-dir-title {
  color: #1e293b !important;
}

[data-bs-theme="light"] .sync-dir-subtitle,
[data-theme="light"] .sync-dir-subtitle {
  color: #64748b !important;
}

[data-bs-theme="light"] .bento-app-card,
[data-theme="light"] .bento-app-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
}

[data-bs-theme="light"] .bento-app-card:hover,
[data-theme="light"] .bento-app-card:hover {
  border-color: rgba(0, 122, 255, 0.35) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 122, 255, 0.12) !important;
}

[data-bs-theme="light"] .bento-header-tag,
[data-theme="light"] .bento-header-tag {
  color: #64748b !important;
}

[data-bs-theme="light"] .bento-big-num.text-white,
[data-theme="light"] .bento-big-num.text-white {
  color: #0f172a !important;
}

[data-bs-theme="light"] .bento-row-item + .bento-row-item,
[data-theme="light"] .bento-row-item + .bento-row-item {
  border-top: 1px dashed rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .bento-row-label,
[data-theme="light"] .bento-row-label {
  color: #64748b !important;
}

[data-bs-theme="light"] .bento-row-val,
[data-theme="light"] .bento-row-val {
  color: #0f172a !important;
}

[data-bs-theme="light"] .bento-row-val.text-white-50,
[data-theme="light"] .bento-row-val.text-white-50 {
  color: #64748b !important;
}

/* Recent Activity Feed */
[data-bs-theme="light"] .recent-activity-container,
[data-theme="light"] .recent-activity-container {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .ma-row,
[data-theme="light"] .ma-row {
  background: rgba(248, 250, 252, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .ma-row:hover,
[data-theme="light"] .ma-row:hover {
  background: #ffffff !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .recent-activity-date-badge,
[data-theme="light"] .recent-activity-date-badge {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

[data-bs-theme="light"] .badge-day,
[data-theme="light"] .badge-day {
  color: #0f172a !important;
}

[data-bs-theme="light"] .badge-month,
[data-theme="light"] .badge-month {
  color: #64748b !important;
}

[data-bs-theme="light"] .badge-divider,
[data-theme="light"] .badge-divider {
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .ma-emp-name,
[data-theme="light"] .ma-emp-name {
  color: #0f172a !important;
}

[data-bs-theme="light"] .ma-emp-project,
[data-theme="light"] .ma-emp-project {
  color: #64748b !important;
}

[data-bs-theme="light"] .ma-emp-id-tag,
[data-theme="light"] .ma-emp-id-tag {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #475569 !important;
}

[data-bs-theme="light"] .ma-time-tag,
[data-theme="light"] .ma-time-tag {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #334155 !important;
}

/* Top Attenders Leaderboard */
[data-bs-theme="light"] .top-attender-card,
[data-theme="light"] .top-attender-card {
  background: rgba(248, 250, 252, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .top-attender-card:hover,
[data-theme="light"] .top-attender-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .top-attender-name,
[data-theme="light"] .top-attender-name {
  color: #0f172a !important;
}

[data-bs-theme="light"] .top-attender-id,
[data-theme="light"] .top-attender-id {
  color: #64748b !important;
}

[data-bs-theme="light"] .top-attender-rank.rank-default,
[data-theme="light"] .top-attender-rank.rank-default {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #64748b !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .top-attender-hours-badge,
[data-theme="light"] .top-attender-hours-badge {
  background: rgba(0, 122, 255, 0.08) !important;
  border: 1px solid rgba(0, 122, 255, 0.2) !important;
}

[data-bs-theme="light"] .top-attender-hours-val,
[data-theme="light"] .top-attender-hours-val {
  color: #0284c7 !important;
}

[data-bs-theme="light"] .top-attender-hours-lbl,
[data-theme="light"] .top-attender-hours-lbl {
  color: #64748b !important;
}

[data-bs-theme="light"] .attn-badge-manual,
[data-theme="light"] .attn-badge-manual {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

[data-bs-theme="light"] .attn-badge-onduty,
[data-theme="light"] .attn-badge-onduty {
  background: rgba(22, 163, 74, 0.1) !important;
  color: #16a34a !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
}

[data-bs-theme="light"] .attn-badge-completed,
[data-theme="light"] .attn-badge-completed {
  background: rgba(100, 116, 139, 0.1) !important;
  color: #64748b !important;
  border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-bs-theme="light"] .attn-badge-absent,
[data-theme="light"] .attn-badge-absent {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
}

[data-bs-theme="light"] .attn-badge-void,
[data-theme="light"] .attn-badge-void {
  background: rgba(147, 51, 234, 0.1) !important;
  color: #9333ea !important;
  border-color: rgba(147, 51, 234, 0.25) !important;
}

[data-bs-theme="light"] .attn-puncher-tag,
[data-theme="light"] .attn-puncher-tag {
  background: rgba(124, 58, 237, 0.1) !important;
  color: #7c3aed !important;
}

/* Tables Across Portal */
[data-bs-theme="light"] .custom-table,
[data-theme="light"] .custom-table {
  color: #1e293b !important;
}

[data-bs-theme="light"] .custom-table thead,
[data-theme="light"] .custom-table thead {
  border-bottom: 2px solid rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .custom-table thead th,
[data-theme="light"] .custom-table thead th {
  color: #64748b !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .custom-table tbody tr,
[data-theme="light"] .custom-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .custom-table tbody tr:hover,
[data-bs-theme="light"] .custom-table tbody tr:hover > *,
[data-theme="light"] .custom-table tbody tr:hover,
[data-theme="light"] .custom-table tbody tr:hover > * {
  background: rgba(0, 122, 255, 0.04) !important;
}

[data-bs-theme="light"] .custom-table tbody tr.table-active,
[data-bs-theme="light"] .custom-table tbody tr.table-active > *,
[data-theme="light"] .custom-table tbody tr.table-active,
[data-theme="light"] .custom-table tbody tr.table-active > * {
  background: rgba(0, 122, 255, 0.08) !important;
}

[data-bs-theme="light"] .custom-table tbody td,
[data-theme="light"] .custom-table tbody td {
  color: #1e293b !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .table,
[data-theme="light"] .table {
  color: #1e293b !important;
  --bs-table-color: #1e293b;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(0, 0, 0, 0.08);
  --bs-table-hover-bg: rgba(0, 122, 255, 0.04);
}

[data-bs-theme="light"] .table thead th,
[data-theme="light"] .table thead th {
  color: #64748b !important;
}

[data-bs-theme="light"] .table tbody td,
[data-theme="light"] .table tbody td {
  color: #1e293b !important;
}

[data-bs-theme="light"] .emp-id-badge,
[data-theme="light"] .emp-id-badge {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

/* Form Controls & Inputs */
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select,
[data-bs-theme="light"] .form-control-dark,
[data-bs-theme="light"] .filter-input,
[data-theme="light"] .form-control,
[data-theme="light"] .form-select,
[data-theme="light"] .form-control-dark,
[data-theme="light"] .filter-input {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] .form-control::placeholder,
[data-bs-theme="light"] .form-control-dark::placeholder,
[data-bs-theme="light"] .filter-input::placeholder,
[data-theme="light"] .form-control::placeholder,
[data-theme="light"] .form-control-dark::placeholder,
[data-theme="light"] .filter-input::placeholder {
  color: #94a3b8 !important;
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus,
[data-bs-theme="light"] .form-control-dark:focus,
[data-bs-theme="light"] .filter-input:focus,
[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-control-dark:focus,
[data-theme="light"] .filter-input:focus {
  background-color: #ffffff !important;
  border-color: #007aff !important;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15) !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] .input-group-text,
[data-bs-theme="light"] .filter-input-icon,
[data-theme="light"] .input-group-text,
[data-theme="light"] .filter-input-icon {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #64748b !important;
}

/* Modals */
[data-bs-theme="light"] .modal-content,
[data-bs-theme="light"] .modal-glass-dark,
[data-theme="light"] .modal-content,
[data-theme="light"] .modal-glass-dark {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="light"] .modal-header,
[data-bs-theme="light"] .modal-footer,
[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Badges */
[data-bs-theme="light"] .badge-glass-primary,
[data-theme="light"] .badge-glass-primary {
  background: rgba(0, 122, 255, 0.12) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  text-shadow: none !important;
}

[data-bs-theme="light"] .badge-glass-success,
[data-theme="light"] .badge-glass-success {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  text-shadow: none !important;
}

[data-bs-theme="light"] .badge-glass-warning,
[data-theme="light"] .badge-glass-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
  text-shadow: none !important;
}

[data-bs-theme="light"] .badge-glass-info,
[data-theme="light"] .badge-glass-info {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #0891b2 !important;
  border: 1px solid rgba(8, 145, 178, 0.3) !important;
  text-shadow: none !important;
}

[data-bs-theme="light"] .badge-glass-secondary,
[data-theme="light"] .badge-glass-secondary {
  background: rgba(100, 116, 139, 0.1) !important;
  color: #475569 !important;
  border: 1px solid rgba(100, 116, 139, 0.25) !important;
  text-shadow: none !important;
}

[data-bs-theme="light"] .badge-glass-danger,
[data-theme="light"] .badge-glass-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  text-shadow: none !important;
}

[data-bs-theme="light"] .badge-code,
[data-theme="light"] .badge-code {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  text-shadow: none !important;
}

/* Accordion & Reports */
[data-bs-theme="light"] .report-accordion-btn,
[data-theme="light"] .report-accordion-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] .report-accordion-btn:not(.collapsed),
[data-theme="light"] .report-accordion-btn:not(.collapsed) {
  background: rgba(0, 122, 255, 0.08) !important;
  color: #007aff !important;
}

[data-bs-theme="light"] .report-accordion-btn::after,
[data-theme="light"] .report-accordion-btn::after {
  filter: none !important;
}

[data-bs-theme="light"] .report-accordion .accordion-body,
[data-theme="light"] .report-accordion .accordion-body {
  background: rgba(248, 250, 252, 0.8) !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* Timesheet Calendar */
[data-bs-theme="light"] .calendar-cell,
[data-theme="light"] .calendar-cell {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

[data-bs-theme="light"] .calendar-cell:hover,
[data-theme="light"] .calendar-cell:hover {
  background: #ffffff !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .calendar-day-header,
[data-theme="light"] .calendar-day-header {
  color: #64748b !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .calendar-day-num,
[data-theme="light"] .calendar-day-num {
  color: #64748b !important;
}

/* Footer */
[data-bs-theme="light"] footer,
[data-theme="light"] footer,
[data-bs-theme="light"] #main-wrapper > footer,
[data-theme="light"] #main-wrapper > footer,
[data-bs-theme="light"] body.user-access-page footer,
[data-theme="light"] body.user-access-page footer,
[data-bs-theme="light"] body.user-access-page #main-wrapper > footer,
[data-theme="light"] body.user-access-page #main-wrapper > footer {
  background: rgba(255, 255, 255, 0.85) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] footer p,
[data-theme="light"] footer p {
  color: #64748b !important;
}

[data-bs-theme="light"] footer .badge,
[data-theme="light"] footer .badge {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #64748b !important;
}

/* Employee Portal Navigation */
[data-bs-theme="light"] .nav-pill-link,
[data-theme="light"] .nav-pill-link {
  color: #475569 !important;
}

[data-bs-theme="light"] .nav-pill-link:hover,
[data-theme="light"] .nav-pill-link:hover {
  color: #007aff !important;
  background: rgba(0, 122, 255, 0.08) !important;
  border-color: rgba(0, 122, 255, 0.2) !important;
}

[data-bs-theme="light"] .nav-pill-link.active-nav-pill,
[data-theme="light"] .nav-pill-link.active-nav-pill {
  color: #ffffff !important;
  background: var(--primary-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35) !important;
}

/* Mobile Bottom Navigation (Employee & Mobile) */
[data-bs-theme="light"] .mobile-bottom-nav,
[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .bottom-nav-item,
[data-theme="light"] .bottom-nav-item {
  color: #64748b !important;
}

[data-bs-theme="light"] .bottom-nav-item i,
[data-bs-theme="light"] .bottom-nav-item svg,
[data-theme="light"] .bottom-nav-item i,
[data-theme="light"] .bottom-nav-item svg {
  stroke: #64748b !important;
}

[data-bs-theme="light"] .bottom-nav-item:hover,
[data-bs-theme="light"] .bottom-nav-item.active,
[data-theme="light"] .bottom-nav-item:hover,
[data-theme="light"] .bottom-nav-item.active {
  color: #007aff !important;
}

[data-bs-theme="light"] .bottom-nav-item:hover svg,
[data-bs-theme="light"] .bottom-nav-item.active svg,
[data-theme="light"] .bottom-nav-item:hover svg,
[data-theme="light"] .bottom-nav-item.active svg {
  stroke: #007aff !important;
}

/* Supervisor Overview Cards & Telemetry */
.supervisor-card {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  padding: 11px 13px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.supervisor-card:hover {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  transform: translateY(-1px);
}

.supervisor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.supervisor-name {
  color: #f8fafc !important;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.supervisor-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
}

.supervisor-metric-chip.chip-bio {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.supervisor-metric-chip.chip-man {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.supervisor-metric-chip.chip-abs {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.supervisor-metric-chip.chip-unmarked {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Light mode for supervisors */
[data-bs-theme="light"] .supervisor-card,
[data-theme="light"] .supervisor-card {
  background: rgba(248, 250, 252, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .supervisor-card:hover,
[data-theme="light"] .supervisor-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .supervisor-avatar,
[data-theme="light"] .supervisor-avatar {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

[data-bs-theme="light"] .supervisor-name,
[data-theme="light"] .supervisor-name {
  color: #0f172a !important;
}

[data-bs-theme="light"] .supervisor-metric-chip.chip-unmarked,
[data-theme="light"] .supervisor-metric-chip.chip-unmarked {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ==========================================================================
   BioFace Public Landing Page Styles
   ========================================================================== */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav .nav-link {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.landing-nav .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.landing-ambient-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 700px;
  background: radial-gradient(circle at 50% 10%, rgba(0, 242, 254, 0.12) 0%, rgba(79, 172, 254, 0.05) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #38bdf8;
  font-weight: 600;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-glow 2s infinite;
}

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

.comparison-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.comparison-card.bioface-highlight {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 40px -10px rgba(14, 165, 233, 0.25);
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row:last-child {
  border-bottom: none;
}

.bento-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 30px -10px rgba(0, 122, 255, 0.2);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover::before {
  opacity: 1;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.4);
}

.pricing-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 2.25rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 35px -10px rgba(56, 189, 248, 0.25);
  transform: scale(1.02);
}

@media (max-width: 991.98px) {
  .pricing-card.popular {
    transform: none;
  }
}

.tech-readout {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}