/* Tainaat WorkforceOS CSS Framework */
/* Clean, professional, premium LIGHT UI with soft shadows and high-contrast typography */

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

:root {
  /* Brand Guidelines CSS Variables */
  --color-primary-navy: #0D1426;
  --color-navy-hover: #121C33;

  --color-brand-cyan: #4CC9E0;
  --color-interactive-blue: #16B9D6;
  --color-interactive-hover: #0EA5C2;

  --color-background: #FFFFFF;
  --color-section-bg: #F6FAFC;
  --color-cyan-soft: #E6F7FB;

  --text-heading: #0D1426;
  --text-body: #475569;
  --text-muted: #7A8797;
  --text-white: #FFFFFF;

  --border-light: #E2E8F0;
  --border-medium: #D8E3EA;

  --success: #18C37E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #2563EB;

  /* Legacy Mapping for Seamless Integration with Existing Rules */
  --bg-dark: var(--color-background);
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-glow: var(--border-light);
  --border-glow-hover: var(--color-brand-cyan);
  
  --accent-primary: var(--color-interactive-blue);
  --accent-secondary: var(--color-brand-cyan);
  --glow-accent: var(--color-cyan-soft);
  
  --text-primary: var(--text-heading);
  --text-secondary: var(--text-body);
  --text-muted: var(--text-muted);
  
  --danger: var(--error);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-premium: 0 16px 40px rgba(13, 20, 38, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glow-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.08);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  top: 12px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .navbar {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

header .logo {
  margin-right: 24px;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-img {
  transform: scale(1.06) rotate(-2deg);
}

/* Beautiful navigation links capsule design */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(15, 23, 42, 0.03);
  padding: 5px 8px;
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(4px);
}

header.scrolled .nav-links {
  background: rgba(15, 23, 42, 0.02);
}

.nav-links a {
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: white;
  background: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#admin-drawer-toggle svg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#admin-drawer-toggle:hover svg {
  transform: rotate(90deg);
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-interactive-blue) 100%);
  color: white;
  box-shadow: 0 12px 28px rgba(22, 185, 214, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-interactive-hover) 100%);
  box-shadow: 0 14px 32px rgba(22, 185, 214, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-primary-navy);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--color-section-bg);
  border-color: var(--color-brand-cyan);
}

.btn-dark {
  background: var(--color-primary-navy);
  color: var(--text-white);
  border: none;
}

.btn-dark:hover {
  background: var(--color-navy-hover);
}


.btn-accent {
  background: linear-gradient(135deg, var(--success) 0%, var(--accent-primary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Pulse animation for CTA */
.pulse {
  animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(ellipse, var(--glow-accent) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtext {
  font-size: 1.125rem;
  max-width: 720px;
  margin: 0 auto 36px auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Creative Core Workflow Strip in Hero */
.hero-workflow-strip {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-top: 36px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
}

.workflow-step {
  flex: 1;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.workflow-step:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.workflow-step-num {
  width: 24px;
  height: 24px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.workflow-step-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Image Assets Container & Split Layout */
.hero-layout-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.hero-camera-image {
  width: 100%;
  height: calc(100% - 38px);
  object-fit: cover;
  border-radius: 0 0 12px 12px;
  display: block;
}

/* Industry Selector Styling */
.vertical-selector-container {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.8s ease-out;
}

.vertical-selector-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vertical-selector-pills {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 5px;
  border-radius: 100px;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
}

.vertical-pill-btn {
  border: none;
  background: transparent;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vertical-pill-btn:hover {
  color: var(--text-primary);
}

.vertical-pill-btn.active {
  background: white;
  color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
}

.vertical-pill-btn svg {
  opacity: 0.8;
}

/* Hero Stage Container with Layered Cutouts & Animations */
.hero-stage-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  perspective: 1000px;
}

.stage-background-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(76, 201, 224, 0.15) 0%, rgba(13, 20, 38, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(20px);
  pointer-events: none;
}

.stage-layer {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.layer-back {
  z-index: 1;
  width: 290px;
  top: 10px;
  left: 20px;
}

.layer-front {
  z-index: 3;
  width: 330px;
  bottom: -10px;
  right: -5px;
}

.stage-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(13, 20, 38, 0.22));
}

/* Stamp Rotate */
.stage-stamp {
  position: absolute;
  z-index: 4;
  width: 105px;
  height: 105px;
  right: -25px;
  top: 30px;
  will-change: transform;
  pointer-events: none;
}

.stamp-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(13, 20, 38, 0.18));
}

/* Stage Widgets */
.stage-widget {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(13, 20, 38, 0.08);
  pointer-events: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.stage-widget:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(13, 20, 38, 0.12);
}
.widget-1 {
  left: -50px;
  top: 130px;
  padding: 8px 12px;
  gap: 8px;
}

.widget-1 .widget-icon {
  font-size: 1.05rem;
}

.widget-1 .widget-title {
  font-size: 0.6rem;
}

.widget-1 .widget-value {
  font-size: 0.72rem;
}

.widget-2 {
  right: -25px;
  bottom: 120px;
}

.widget-3 {
  left: -10px;
  bottom: 40px;
}

.widget-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.widget-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.widget-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

.text-green {
  color: #10B981 !important;
}

.text-blue {
  color: var(--color-interactive-blue) !important;
}

/* Floating Bubbles */
.floating-bubble {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 2;
  pointer-events: none;
}

.bubble-1 {
  left: 30%;
  top: 15%;
}

.bubble-2 {
  right: 35%;
  bottom: 25%;
}

.bubble-3 {
  left: 20%;
  bottom: 45%;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-indicator.green { background-color: var(--success); box-shadow: 0 0 8px var(--success); }
.dot-indicator.blue { background-color: var(--color-interactive-blue); box-shadow: 0 0 8px var(--color-interactive-blue); }
.dot-indicator.yellow { background-color: var(--warning); box-shadow: 0 0 8px var(--warning); }

/* Keyframe animations */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(0px) translate3d(0,0,0); }
  50% { transform: translateY(-15px) translate3d(5px, 0, 0); }
}

@keyframes float-4 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.float-anim-1 {
  animation: float-1 6s ease-in-out infinite;
}

.float-anim-2 {
  animation: float-2 5s ease-in-out infinite;
}

.float-anim-3 {
  animation: float-3 7s ease-in-out infinite;
}

.float-anim-4 {
  animation: float-4 5.5s ease-in-out infinite;
}

.rotate-stamp {
  animation: rotate-slow 25s linear infinite;
}

/* Bento Grid Features Section */
.features-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
}

.bento-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-premium);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(37, 99, 235, 0.05), transparent 80%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-5 { grid-column: span 5; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-7 { grid-column: span 7; }
.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-12 { grid-column: span 12; }

.bento-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.bento-card:hover .bento-card-icon {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
  transform: scale(1.05);
}

.bento-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bento-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Feature Specific Interactive Bento Content */
.bento-interactive {
  margin-top: 20px;
  background: var(--color-section-bg);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.shift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.shift-block {
  padding: 8px;
  background: white;
  border-radius: 6px;
  text-align: center;
  font-size: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 3px solid var(--accent-primary);
}

.shift-block.active {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

/* Custom slider style */
.calc-slider-group {
  margin-bottom: 24px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(15, 23, 42, 0.08);
  height: 6px;
  border-radius: 5px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
  transition: 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.roi-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.roi-stat-box {
  padding: 16px;
  background: var(--color-section-bg);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  text-align: center;
}

.roi-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--success);
  margin-top: 4px;
}

/* -------------------------------------------------------------
   WorkforceOS Interactive Dashboard Mockup Styles
   Matches Screenshot UI Structure Perfectly
   ------------------------------------------------------------- */
.dashboard-mockup {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #fbfbfc;
  border-radius: 10px;
  overflow: hidden;
  height: 580px;
  color: #1e293b;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

/* Sidebar */
.dashboard-sidebar {
  background: var(--color-section-bg);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
}

.sidebar-brand {
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.sidebar-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.sidebar-menu {
  list-style: none;
  padding: 10px 12px;
  flex-grow: 1;
}

.sidebar-menu-section {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 12px 10px 4px 10px;
  letter-spacing: 0.05em;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  margin-bottom: 2px;
  transition: var(--transition-smooth);
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.sidebar-menu-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Main Dashboard Panel Container */
.dashboard-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/* Topbar Header */
.dashboard-topbar {
  height: 60px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.branch-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.search-bar {
  background: #f1f5f9;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  width: 280px;
  font-size: 0.8rem;
  outline: none;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

.avatar-circle {
  width: 28px;
  height: 28px;
  background: #2563eb;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Content Frame */
.dashboard-content-area {
  padding: 24px;
  flex-grow: 1;
  background: var(--color-section-bg);
}

/* Active tab view control */
.dashboard-view-panel {
  display: none;
}

.dashboard-view-panel.active {
  display: block;
}

/* Good Day Title */
.dash-welcome {
  margin-bottom: 24px;
}

.dash-welcome h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.dash-welcome p {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
}

/* Metric Cards Layout */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.metric-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

.metric-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Lower Section Grid */
.dashboard-subgrid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.dash-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.dash-card-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 16px;
}

/* Attendance list styles */
.attendance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.75rem;
}

.attendance-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.attendance-item span:first-child {
  color: #475569;
}

.attendance-item span:last-child {
  font-weight: 700;
  color: #0f172a;
}

/* Action Items List */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--color-section-bg);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-item:hover {
  background: #f1f5f9;
}

.action-item-arrow {
  color: #94a3b8;
  font-weight: bold;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-dash-action {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-dash-action:hover {
  background: var(--color-section-bg);
  border-color: #cbd5e1;
}

.btn-dash-action svg {
  color: #64748b;
}

/* Leads/Clients View Table Styles */
.dashboard-table-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-table-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-table-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.dashboard-table-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.dash-table th {
  background: var(--color-section-bg);
  padding: 10px 20px;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

.dash-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

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

.contact-name {
  font-weight: 600;
  color: #0f172a;
}

.contact-email {
  color: #64748b;
  font-size: 0.7rem;
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: #e6fcf5;
  color: #0ca678;
}

.badge-warning {
  background: #fff9db;
  color: #f08c00;
}

/* Payroll view list */
.payroll-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.payroll-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--color-section-bg);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.payroll-item:hover {
  border-color: #cbd5e1;
}

.payroll-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
}

.payroll-subtitle {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
}

.payroll-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payroll-amount {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

/* -------------------------------------------------------------
   Tainaat Real Kanban Board Simulator Section (Replaces old Counsellor App)
   ------------------------------------------------------------- */
.kanban-section {
  padding: 80px 0;
  background: var(--color-section-bg);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}

.kanban-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.kanban-board-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.kanban-column {
  background: #f1f5f9; /* Slate-100 column bg for card contrast */
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 14px;
  padding: 16px 14px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.kanban-column[data-stage="draft"] { border-top: 3px solid #94a3b8; }
.kanban-column[data-stage="docs_pending"] { border-top: 3px solid var(--warning); }
.kanban-column[data-stage="kyc_verified"] { border-top: 3px solid var(--success); }
.kanban-column[data-stage="deployable"] { border-top: 3px solid var(--accent-primary); }

.kanban-column:hover {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03);
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.kanban-column-title {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.kanban-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.kanban-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

.kanban-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.worker-id {
  color: var(--accent-primary);
  font-weight: 700;
}

.worker-role-badge {
  background: rgba(37, 99, 235, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.worker-name {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.worker-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.worker-time {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.65rem;
}

.kanban-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.kanban-empty {
  text-align: center;
  padding: 32px 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  border: 1px dashed rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  margin: auto 0;
}

/* Onboarding completion progress meter */
.kanban-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.kanban-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
}

.kanban-progress-bar-bg {
  background: rgba(15, 23, 42, 0.05);
  height: 5px;
  border-radius: 10px;
  overflow: hidden;
}

.kanban-progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Profile details grid */
.kanban-card-details-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kanban-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* Checklist indicators */
.kanban-checklist {
  display: flex;
  gap: 8px;
  font-size: 0.65rem;
  background: rgba(15,23,42,0.02);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(15,23,42,0.03);
  justify-content: space-between;
}

.kanban-check-item {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   Interactive Deep-Feature Showcase Section
   Exposes dynamic screens: Rule Packs, margins reports, settings catalog
   ------------------------------------------------------------- */
.showcase-section {
  padding: 100px 0;
  background: white;
  border-bottom: 1px solid var(--border-glow);
}

.showcase-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.showcase-tab-btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.showcase-tab-btn:hover,
.showcase-tab-btn.active {
  background: var(--text-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.showcase-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.showcase-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reports-kpis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.reports-kpi-card {
  padding: 24px;
  border-radius: 12px;
  background: var(--color-section-bg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
}

.reports-kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.reports-kpi-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.reports-kpi-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.catalog-column {
  padding: 24px;
  background: var(--color-section-bg);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.catalog-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 10px;
}

.catalog-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

/* -------------------------------------------------------------
   Admin Panel Config Center (Floating / Slide Out Panel)
   Satisfies Dynamic Ecosystem Sync Rule
   ------------------------------------------------------------- */
.admin-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.admin-drawer.open {
  right: 0;
}

.admin-header {
  padding: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 6px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-section-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.admin-quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-footer {
  padding: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 12px;
}

/* Floating admin toggle button */
.admin-floating-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
}

.admin-floating-toggle:hover {
  transform: scale(1.08) rotate(15deg);
}

/* Footer Section */
footer {
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-glow);
  background: var(--color-section-bg);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Helper styles */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-layout-split,
  .kanban-split-layout,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .reports-kpis-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-4,
  .bento-card.col-5,
  .bento-card.col-6,
  .bento-card.col-7,
  .bento-card.col-8,
  .bento-card.col-12 {
    grid-column: span 12;
    height: auto !important;
    flex-direction: column !important;
    padding: 24px !important;
  }
  .bento-card img {
    max-height: 180px !important;
    transform: none !important;
    margin-top: 16px !important;
    width: auto !important;
  }
  .dashboard-mockup {
    grid-template-columns: 1fr;
    height: auto;
  }
  .dashboard-sidebar {
    display: none;
  }
  .kanban-board-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .kanban-column {
    min-width: 280px;
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-workflow-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Premium OS Mockup Window Header Styles */
.mockup-window-wrapper {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mockup-window-header {
  height: 38px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  position: relative;
  border-radius: 12px 12px 0 0;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #f59e0b; }
.window-dot.green { background-color: #10b981; }

.window-title-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  font-family: var(--font-body);
}

/* Enhancements to Buttons & Cards Glow */
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  transform: translateY(-2px) scale(1.02);
}

.bento-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.02);
}

.bento-card:hover {
  transform: translateY(-3px);
}

.showcase-tab-btn.active {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
  background: var(--accent-primary);
}

.quick-source-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 2;
  min-width: 300px;
}

@media (max-width: 768px) {
  .quick-source-wrapper {
    flex-direction: column;
    min-width: 100%;
    width: 100%;
  }
  .quick-source-wrapper input,
  .quick-source-wrapper select,
  .quick-source-wrapper button {
    width: 100% !important;
    flex: none !important;
  }
}

/* --- Geofenced Verification Hub Styles --- */
.verification-section {
  position: relative;
  background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.02), transparent 45%),
                    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.015), transparent 45%);
}

.floating-widget {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
  z-index: 10;
  pointer-events: none;
  animation: float-slow 4s ease-in-out infinite;
}

.floating-widget.widget-1 {
  top: 60px;
  left: -20px;
  animation-delay: 0s;
}

.floating-widget.widget-2 {
  bottom: 80px;
  right: -20px;
  animation-delay: 2s;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@media (max-width: 1024px) {
  .floating-widget {
    transform: scale(0.85);
  }
  .floating-widget.widget-1 {
    left: -10px;
  }
  .floating-widget.widget-2 {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .floating-widget {
    display: none;
  }
}

.console-card {
  position: relative;
  overflow: hidden;
}

.console-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--success), transparent);
  opacity: 0.8;
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- View Transition Floating Paper Effect --- */
::view-transition-group(*) {
  animation-duration: 0.8s !important;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* spring physics for sliding */
}

::view-transition-old(*) {
  animation: view-transition-float-old 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}
::view-transition-new(*) {
  animation: view-transition-float-new 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Keep the root page transitions simple and standard */
::view-transition-old(root) {
  animation: 0.3s ease both fade-out;
}
::view-transition-new(root) {
  animation: 0.3s ease both fade-in;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lifts and floats cards during the view transition */
@keyframes view-transition-float-old {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
    opacity: 1;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.08));
  }
  100% {
    transform: scale(1.08) translateY(-24px) rotate(3deg);
    opacity: 0;
    filter: drop-shadow(0 30px 40px rgba(15, 23, 42, 0.25));
  }
}

@keyframes view-transition-float-new {
  0% {
    transform: scale(1.08) translateY(-24px) rotate(3deg);
    opacity: 0;
    filter: drop-shadow(0 30px 40px rgba(15, 23, 42, 0.25));
  }
  100% {
    transform: scale(1) translateY(0) rotate(0deg);
    opacity: 1;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.08));
  }
}
/* --- Onboarding Tutorial Timeline & Column Highlights --- */
.onboarding-timeline {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto 48px auto;
  position: relative;
  padding: 0 40px;
}

.timeline-progress-line {
  position: absolute;
  top: 20px;
  left: 80px;
  right: 80px;
  height: 4px;
  background: rgba(13, 20, 38, 0.06);
  z-index: 1;
  border-radius: 2px;
}

.timeline-progress-fill {
  height: 100%;
  width: 0%; /* Will animate between 0%, 33.3%, 66.6%, 100% */
  background: linear-gradient(90deg, var(--color-brand-cyan) 0%, var(--color-interactive-blue) 100%);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.timeline-step .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-medium);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
  box-shadow: var(--shadow-premium);
  transition: all 0.4s ease;
}

.timeline-step.active .step-number {
  border-color: var(--color-interactive-blue);
  background: var(--color-interactive-blue);
  color: white;
  box-shadow: 0 0 16px rgba(22, 185, 214, 0.4);
}

.timeline-step.completed .step-number {
  border-color: var(--success);
  background: var(--success);
  color: white;
  box-shadow: 0 0 12px rgba(24, 195, 126, 0.25);
}

.timeline-step .step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

.timeline-step.active .step-label {
  color: var(--color-primary-navy);
}

.timeline-step.completed .step-label {
  color: var(--success);
}



.kanban-column {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.kanban-column.active-stage {
  border-color: var(--color-brand-cyan) !important;
  box-shadow: 0 8px 24px rgba(76, 201, 224, 0.12);
  transform: translateY(-2px);
}

.gps-log-row:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--color-brand-cyan) !important;
  transform: translateY(-2px);
}

.gps-log-row.active-log-row {
  background: rgba(76, 201, 224, 0.08) !important;
  border-color: var(--color-interactive-blue) !important;
  box-shadow: 0 4px 12px rgba(76, 201, 224, 0.15);
}


/* --- Fix: stop whole-page "blink" on View Transitions --------------------
   The simulator triggers document.startViewTransition(); by default that
   captures the ROOT, and the ::view-transition-*(root) rules above cross-fade
   the ENTIRE page on every transition (and one fired every 9s) — looked like
   the landing was blinking. Disable the root animation so only named elements
   (if any) transition; the page itself stays put. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
}

/* ============================================================
   Mobile responsiveness pass (≤768 / ≤480). Appended last so it
   wins among equal-specificity rules; desktop is untouched.
   ============================================================ */
@media (max-width: 768px) {
  /* Static landing has no hamburger — collapse the inline section menu;
     the logo + Login (nav-actions) are enough on a phone. */
  .nav-links { display: none !important; }

  .container { padding-left: 16px !important; padding-right: 16px !important; }

  /* Tighter vertical rhythm on small screens. */
  .hero-section { padding-top: 104px !important; padding-bottom: 56px !important; }
  .features-section,
  .showcase-section,
  .verification-section { padding-top: 56px !important; padding-bottom: 56px !important; }

  /* Media never forces a sideways scroll. */
  img, video, canvas, svg { max-width: 100%; height: auto; }

  /* Hero scales down; CTAs stack full-width. */
  .hero-title { font-size: 2rem !important; line-height: 1.15 !important; }
  .hero-subtext { font-size: 1rem !important; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Simulator stage + fixed-width mockup panels fit the viewport. */
  .hero-stage-container { max-width: 100% !important; }
  .admin-drawer { width: 100% !important; max-width: 100% !important; }
  .search-bar { width: 100% !important; }

  .section-title { font-size: 1.6rem !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem !important; }
  .hero-badge { font-size: 0.7rem !important; }
  .btn { font-size: 0.9rem !important; }
  .container { padding-left: 14px !important; padding-right: 14px !important; }
}
