/**
 * CogniSafe Design System - Editorial Safety Premium
 * 
 * Concept: "Editorial Safety" - Authority of behavioral science meets clean editorial aesthetic
 * Philosophy: Minimalist, elegant, and premium
 * 
 * Design Principles:
 * - Clarity: Clear hierarchy and objective information
 * - Authority: Confidence through typography and space
 * - Elegance: Clean, sophisticated, editorial feel
 * - Trust: Solid foundations with human warmth
 */

/* ========================================
   1. DESIGN TOKENS
   ======================================== */

:root {
  /* ===== BRAND COLORS ===== */
  /* Primary - Safety Orange (Action & Alert) */
  --brand-orange: #F97316;
  --brand-orange-light: #FFEDD5;
  /* Lighter for backgrounds */
  --brand-orange-dark: #C2410C;
  --brand-orange-50: #FFF7ED;

  /* Secondary - Cognitive Blue (Depth & Trust) */
  --brand-dark: #0F172A;
  --brand-slate-900: #0F172A;
  --brand-slate-800: #1E293B;
  --brand-slate-700: #334155;
  --brand-slate-600: #475569;

  /* Neutral - Structure & Canvas */
  --color-white: #FFFFFF;
  --color-canvas: #FFFFFF;
  --color-soft-gray: #F8FAFC;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-300: #CBD5E1;

  /* Text Colors - Editorial Hierarchy */
  --color-text-primary: #111827;
  /* Darker, sharper */
  --color-text-secondary: #4B5563;
  /* Softer gray */
  --color-text-muted: #9CA3AF;
  --color-text-light: #D1D5DB;
  --color-text-inverse: #FFFFFF;

  /* Semantic Colors - Functional Feedback */
  --color-success: #059669;
  /* Emerald 600 */
  --color-success-light: #D1FAE5;
  --color-warning: #D97706;
  /* Amber 600 */
  --color-warning-light: #FEF3C7;
  --color-danger: #DC2626;
  /* Red 600 */
  --color-danger-light: #FEE2E2;
  --color-info: #2563EB;
  /* Blue 600 */
  --color-info-light: #DBEAFE;

  /* Background Colors */
  --color-background: #F3F4F6;
  /* Cool Gray 100 - Distinction from cards */
  --color-background-alt: #F9FAFB;
  --color-background-card: #FFFFFF;
  --color-background-dark: #111827;
  --color-background-footer: #111827;

  /* Borders */
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-border-dark: #D1D5DB;

  /* Overlays & Shadows */
  --color-overlay: rgba(17, 24, 39, 0.6);
  --color-shadow: rgba(17, 24, 39, 0.05);

  /* ===== TYPOGRAPHY ===== */
  /* Font Families - Editorial System */
  --font-serif: 'Merriweather', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: var(--font-sans);
  --font-heading: var(--font-sans);
  /* Using Inter for headings for modern clean look */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Font Sizes - Modular Scale */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */
  --font-size-6xl: 3.75rem;
  /* 60px */
  --font-size-7xl: 4.5rem;
  /* 72px */

  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;

  /* ===== SPACING ===== */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  --space-4xl: 6rem;
  /* 96px */
  --space-5xl: 8rem;
  /* 128px */

  /* ===== BORDER RADIUS (Editorial Shapes) ===== */
  --radius-xs: 0.25rem;
  /* 4px */
  --radius-sm: 0.5rem;
  /* 8px */
  --radius-md: 0.75rem;
  /* 12px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-2xl: 2rem;
  /* 32px */
  --radius-full: 9999px;
  /* Pill shape for buttons */

  /* ===== SHADOWS (Soft & Elevated) ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Specific Card Shadows */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Z-INDEX ===== */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ===== LAYOUT ===== */
  --layout-max-width: 1400px;
  --layout-max-width-text: 65ch;
  --layout-gutter: var(--space-lg);

  /* Section Padding */
  --section-padding: 5rem 0;
  --section-padding-lg: 8rem 0;
  --section-padding-sm: 3rem 0;

  /* Navbar */
  --navbar-height: 80px;
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content should grow to push footer down */
main,
.page-wrapper {
  flex: 1;
}

/* ========================================
   3. TYPOGRAPHY (Editorial System)
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: clamp(2.5rem, 6vw, var(--font-size-6xl));
  line-height: var(--line-height-none);
  margin-bottom: var(--space-xl);
}

h2 {
  font-size: clamp(2rem, 5vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
}

h3 {
  font-size: clamp(1.5rem, 3vw, var(--font-size-3xl));
}

h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

/* Italic Emphasis for Titles (Editorial Style) */
.title-emphasis {
  font-style: italic;
  color: var(--brand-orange);
}

p {
  margin-bottom: var(--space-md);
  max-width: var(--layout-max-width-text);
}

.lead {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.small {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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

/* Links */
a {
  color: var(--brand-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-orange-dark);
}

/* ========================================
   4. BUTTONS (Pill Shape Premium)
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button - Safety Orange */
.btn-primary {
  background-color: var(--brand-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button - Outline */
.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-dark);
  box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-primary-light);
}

/* Alert Button */
.btn-alert,
.btn-danger {
  background-color: var(--color-danger);
  color: var(--color-white);
  border-radius: var(--radius-full);
}

.btn-alert:hover:not(:disabled),
.btn-danger:hover:not(:disabled) {
  background-color: #D84344;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Warning Button */
.btn-warning {
  background-color: var(--color-warning);
  color: var(--color-white);
  border-radius: var(--radius-full);
}

.btn-warning:hover:not(:disabled) {
  background-color: #FF8C2E;
}

/* Success Button */
.btn-success {
  background-color: var(--color-success);
  color: var(--color-white);
  border-radius: var(--radius-full);
}

.btn-success:hover:not(:disabled) {
  background-color: #22B05F;
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* Icon Button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover:not(:disabled) {
  box-shadow: var(--shadow-md);
}

/* ========================================
   5. CARDS & PANELS
   ======================================== */

.card {
  background-color: var(--color-background-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

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

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-neutral-light);
}

.card-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.card-body {
  margin-bottom: var(--space-md);
}

.card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-neutral-light);
}

/* Status Cards */
.card-status {
  position: relative;
  overflow: hidden;
}

.card-status::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.card-status.status-safe::before {
  background-color: var(--color-primary);
}

.card-status.status-warning::before {
  background-color: var(--color-warning);
}

.card-status.status-alert::before {
  background-color: var(--color-alert);
}

/* Monitoring Panel */
.panel-monitoring {
  background-color: #F0F7F4;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* ========================================
   6. BADGES & LABELS
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.badge-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.badge-success {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-warning {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-alert {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* ========================================
   7. ALERTS & NOTIFICATIONS
   ========================================*/
/* Alerts */
.alerts-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.alert {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.alert:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.alert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.alert-message {
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* Alert Variants */
.alert-danger {
  border-left-color: #dc2626;
  background-color: #fef2f2;
}

.alert-danger .alert-icon {
  background-color: #fee2e2;
  color: #dc2626;
}

.alert-danger .alert-title {
  color: #991b1b;
}

.alert-danger .alert-message {
  color: #7f1d1d;
}

.alert-warning {
  border-left-color: #f59e0b;
  background-color: #fffbeb;
}

.alert-warning .alert-icon {
  background-color: #fef3c7;
  color: #f59e0b;
}

.alert-warning .alert-title {
  color: #92400e;
}

.alert-warning .alert-message {
  color: #78350f;
}

.alert-info {
  border-left-color: #3b82f6;
  background-color: #eff6ff;
}

.alert-info .alert-icon {
  background-color: #dbeafe;
  color: #3b82f6;
}

.alert-info .alert-title {
  color: #1e40af;
}

.alert-info .alert-message {
  color: #1e3a8a;
}

.alert-success {
  border-left-color: #10b981;
  background-color: #f0fdf4;
}

.alert-success .alert-icon {
  background-color: #d1fae5;
  color: #10b981;
}

.alert-success .alert-title {
  color: #065f46;
}

.alert-success .alert-message {
  color: #064e3b;
}

/* Pulse Animation for Alerts */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.alert-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   8. AVATARS
   ======================================== */

.avatar {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-safe {
  border-color: var(--color-primary);
}

.avatar-warning {
  border-color: var(--color-warning);
}

.avatar-alert {
  border-color: var(--color-alert);
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

/* ========================================
   9. FORMS
   ======================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  /* Better padding */
  border: 1px solid var(--color-border);
  /* Thinner border default */
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
  /* Subtle depth */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 79, 63, 0.1);
}

.form-input::placeholder {
  color: var(--color-neutral-dark);
  opacity: 0.5;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   10. GRID & LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 768px) {

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

/* ========================================
   11. UTILITIES
   ======================================== */

/* Spacing */
.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.p-sm {
  padding: var(--space-sm);
}

.p-md {
  padding: var(--space-md);
}

.p-lg {
  padding: var(--space-lg);
}

.p-xl {
  padding: var(--space-xl);
}

/* Text Alignment */
.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

/* Display */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

/* Flex */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Colors */
.text-primary {
  color: var(--color-primary);
}

.text-alert {
  color: var(--color-alert);
}

.text-warning {
  color: var(--color-warning);
}

.text-muted {
  opacity: 0.7;
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-light {
  background-color: var(--color-background);
}

.bg-white {
  background-color: var(--color-white);
}

/* ========================================
   12. ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================================
   13. PRINT STYLES
   ======================================== */

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background-color: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ========================================
   14. NAVBAR
   ======================================== */

.navbar {
  height: var(--navbar-height);
  background-color: var(--color-background);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: 0 var(--space-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
}

.navbar-logo {
  width: 32px;
  height: 32px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.navbar-link {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.navbar-link:hover {
  color: var(--color-primary);
}

/* ========================================
   15. HERO SECTION
   ======================================== */

.hero {
  padding: var(--section-padding-lg);
  background: var(--gradient-hero);
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  max-width: 100%;
  height: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   16. SECTION STYLES
   ======================================== */

.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--color-background-alt);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   17. FOOTER
   ======================================== */

.footer {
  padding: var(--section-padding-sm);
  background-color: var(--color-background-footer);
  color: var(--color-text-inverse);
  text-align: center;
}

.footer-text {
  color: var(--color-text-inverse);
  opacity: 0.8;
}

.footer-link {
  color: #CCCCCC;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-text-inverse);
}

/* ========================================
   18. INPUT STYLES
   ======================================== */

.input {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  width: 100%;
}

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

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ========================================
   19. TESTIMONIAL CARD
   ======================================== */

.testimonial-card {
  background-color: var(--color-background-card);
  padding: var(--space-lg);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-text {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========================================
   20. MAP COMPONENT
   ======================================== */

.map-container {
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* ========================================
   21. SERVICE CARD
   ======================================== */

.service-card {
  background-color: var(--color-background-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
}

.service-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.service-description {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   22. EXPERT PROFILE
   ======================================== */

.expert-card {
  text-align: center;
  transition: transform var(--transition-base);
}

.expert-card:hover {
  transform: translateY(-4px);
}

.expert-image {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto var(--space-md);
}

.expert-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.expert-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.expert-title {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========================================
   23. PARTNER LOGO GRID
   ======================================== */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-xl);
  align-items: center;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.partner-grid:hover {
  opacity: 1;
}

.partner-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.partner-logo:hover {
  filter: grayscale(0%);
}

/* ========================================
   24. RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 36px;
    --font-size-4xl: 28px;
    --font-size-3xl: 24px;
    --section-padding: 40px 0;
    --section-padding-lg: 60px 0;
  }

  .navbar {
    padding: 0 var(--space-md);
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .navbar-nav {
    gap: var(--space-md);
  }
}

/* ========================================
   25. ANIMATION UTILITIES
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out;
}

/* ========================================
   26. TABLE STYLES
   ======================================== */

.table {
  width: 100%;
  border-collapse: separate;
  /* Allows border-radius on rows/cells if needed */
  border-spacing: 0;
  background-color: var(--color-background-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.table thead {
  background-color: var(--color-background-alt);
}

.table th {
  padding: var(--space-md);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.table tr:hover {
  background-color: var(--color-background-alt);
}

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

/* ========================================
   27. LOADER / SPINNER
   ======================================== */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ========================================
   28. MODAL
   ======================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal {
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  z-index: var(--z-modal);
}

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

.modal-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ========================================
   29. PROGRESS BAR
   ======================================== */

.progress {
  height: 8px;
  background-color: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.progress-bar-success {
  background-color: var(--color-success);
}

.progress-bar-warning {
  background-color: var(--color-warning);
}

.progress-bar-danger {
  background-color: var(--color-danger);
}

/* ========================================
   30. TOOLTIPS
   ======================================== */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  background-color: var(--color-text-primary);
  color: var(--color-text-inverse);
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  position: absolute;
  z-index: var(--z-tooltip);
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--font-size-xs);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ========================================
   31. ONBOARDING STYLES
   ======================================== */

.onboarding-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: var(--space-lg);
}

.onboarding-card {
  background: var(--color-background-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  max-width: 600px;
  width: 100%;
  padding: var(--space-3xl);
}

.onboarding-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.onboarding-logo {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-lg);
}

.onboarding-title {
  font-size: var(--font-size-4xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.onboarding-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

.user-info {
  background: var(--color-background-alt);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: 20px;
}

.user-details h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--color-text-primary);
}

.user-details p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.onboarding-form {
  margin-top: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-help {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.submit-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .onboarding-card {
    padding: var(--space-xl);
  }
}

/* ========================================
   32. WORKER PAGES
   ======================================== */

.worker-container {
  width: 100%;
  max-width: 400px;
  padding: var(--space-lg);
  margin: 0 auto;
}

.worker-card {
  background: var(--color-background-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-strong);
}

.worker-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.worker-header h1 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-primary);
  font-size: var(--font-size-3xl);
}

.worker-location {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: var(--space-xs) 0;
}

.worker-sublocation {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* PIN Input */
.pin-input {
  width: 100%;
  padding: var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-2xl);
  text-align: center;
  letter-spacing: 8px;
  font-weight: var(--font-weight-bold);
  box-sizing: border-box;
  transition: all var(--transition-base);
}

.pin-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.employee-input {
  width: 100%;
  padding: var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  box-sizing: border-box;
  transition: all var(--transition-base);
}

.employee-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.help-text {
  text-align: center;
  margin-top: var(--space-lg);
}

.help-text p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Worker Success Page */
.success-icon {
  font-size: 80px;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.success-title {
  text-align: center;
  color: var(--color-success);
  margin-bottom: var(--space-md);
}

.success-message {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* Commitment Section */
.commitment-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.commitment-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.commitment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.commitment-option {
  padding: var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--color-background);
}

.commitment-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.commitment-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.commitment-title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.commitment-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Inactive Message */
.inactive-message {
  text-align: center;
  padding: var(--space-2xl);
}

.inactive-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
}

.inactive-title {
  color: var(--color-warning);
  margin-bottom: var(--space-md);
}

.inactive-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

@media (max-width: 480px) {
  .worker-card {
    padding: var(--space-xl) var(--space-lg);
  }
}

/**
 * CogniSafe - Landing Page Styles
 * Editorial Safety aesthetic for marketing pages
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  padding: var(--space-5xl) 0;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background-color: var(--brand-orange-50);
  color: var(--brand-orange-dark);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--brand-orange);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   LANDING NAVBAR
   ======================================== */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.nav-container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--layout-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-orange);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--brand-orange);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--color-text-primary);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--brand-orange-50);
  color: var(--brand-orange-dark);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, var(--font-size-5xl));
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.section-description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

/* ========================================
   SCIENCE SECTION
   ======================================== */

.science-section {
  padding: var(--space-5xl) var(--layout-gutter);
  background-color: var(--color-soft-gray);
}

/* Commented out - using landing.css styles instead
.science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: var(--layout-max-width);
  margin: 0 auto;
}
*/

.science-card {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.science-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-orange-50);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--brand-orange);
}

.science-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.science-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: var(--font-size-sm);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
  padding: var(--space-5xl) var(--layout-gutter);
  background-color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.feature-card {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-orange-50);
  color: var(--brand-orange);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-size: var(--font-size-sm);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works-section {
  padding: var(--space-5xl) var(--layout-gutter);
  background-color: var(--color-soft-gray);
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-xl);
}

.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-orange);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.step-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   IMPACT SECTION
   ======================================== */

.impact-section {
  padding: var(--space-5xl) var(--layout-gutter);
  background-color: var(--color-white);
}

/* Commented out - using landing.css styles instead
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: var(--layout-max-width);
  margin: 0 auto;
}
*/

/* Commented out - using landing.css styles instead
.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-soft-gray);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--brand-orange);
  margin-bottom: var(--space-sm);
}

.stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}
*/

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  padding: var(--space-5xl) var(--layout-gutter);
  background-color: var(--brand-dark);
  color: var(--color-white);
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-container h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-container p {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   LANDING FOOTER
   ======================================== */

.landing-footer {
  background-color: var(--brand-dark);
  color: var(--color-white);
  padding: var(--space-4xl) 0 var(--space-lg);
}

.footer-content {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.footer-section h4 {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-section p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--layout-gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Site Footer (Manager Pages) - Same styling as landing footer */
.site-footer {
  background-color: var(--brand-dark);
  color: var(--color-white);
  padding: var(--space-4xl) 0 var(--space-lg);
}

/* ========================================
   CONFIGURATION PAGE
   ======================================== */

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
}

.tab-button {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--color-text-primary);
}

.tab-button.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Remove card border in configuration */
.tab-content .card {
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Card Header */
.card-header {
  padding: 0 0 var(--space-lg) 0;
  border-bottom: none;
}

.card-header h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs) 0;
}

.card-header p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Sector Risk Section */
.sector-risk-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.sector-risk-section:last-child {
  border-bottom: none;
}

.sector-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) 0;
}

/* Compact table inputs */
.tab-content .data-table td {
  padding: var(--space-sm) var(--space-md);
}

.tab-content .form-input {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
}

.tab-content .data-table {
  margin-bottom: var(--space-md);
}

/* Icon buttons in tables */
.tab-content .btn-icon svg {
  stroke: currentColor;
}

.tab-content .btn-icon.btn-danger {
  color: #dc2626;
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .science-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ========================================
   PLACEHOLDERS & ICON STYLES
   ======================================== */

.hero-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--brand-orange-50) 0%, var(--brand-blue-50) 100%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-placeholder::before {
  content: 'CogniSafe';
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: var(--font-weight-black);
  color: var(--brand-orange);
  opacity: 0.2;
}

.diagram-placeholder {
  padding: var(--space-4xl);
  background: linear-gradient(135deg, var(--brand-blue-50) 0%, var(--brand-orange-50) 100%);
  border-radius: var(--radius-xl);
  text-align: center;
}

.diagram-placeholder p {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-blue-dark);
  margin: 0;
}

/* Icon classes using CSS */
.science-icon,
.feature-icon,
.stat-icon,
.action-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Specific icon variations */
.icon-brain,
.icon-atom,
.icon-dna {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
}

.icon-robot,
.icon-dashboard,
.icon-refresh {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
}

.icon-users,
.icon-smartphone,
.icon-settings {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
}

/* ========================================
   LANGUAGE SELECTOR (from main.css)
   ======================================== */

.language-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-fixed);
}

/* Language selector in navbar */
.language-selector.navbar-lang {
  position: relative;
  bottom: auto;
  right: auto;
}

.language-selector.navbar-lang .lang-btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  box-shadow: none;
  gap: 0;
}

.language-selector.navbar-lang .lang-btn:hover {
  background: transparent;
  color: var(--color-text-primary);
  transform: none;
  box-shadow: none;
}

.language-selector.navbar-lang .lang-text {
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
}

.language-selector.navbar-lang .lang-menu {
  bottom: auto;
  top: 100%;
  margin-top: var(--space-xs);
  min-width: 150px;
}

.lang-btn {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  color: var(--color-white);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.lang-icon {
  font-size: 18px;
}

.lang-text {
  text-transform: uppercase;
  font-size: var(--font-size-xs);
}

.lang-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: var(--color-background-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  display: none;
  overflow: hidden;
}

.lang-menu.show {
  display: block;
  animation: slideUp 0.3s ease;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--transition-base);
}

.lang-option:hover {
  background: var(--color-background-alt);
}

.flag {
  font-size: 20px;
}

/**
 * CogniSafe - Manager Area Styles
 * Administrative dashboard and management interfaces
 */

/* ========================================
   MANAGER NAVBAR
   ======================================== */

.manager-navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.manager-navbar .navbar-container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
}

.manager-navbar .navbar-brand a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
}

.manager-navbar .navbar-brand svg {
  color: var(--brand-orange);
}

.manager-navbar .navbar-links {
  display: flex;
  gap: var(--space-xs);
  flex: 1;
  justify-content: center;
}

.manager-navbar .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.manager-navbar .nav-link svg {
  flex-shrink: 0;
}

.manager-navbar .nav-link:hover {
  background-color: var(--brand-orange-50);
  color: var(--brand-orange);
}

.manager-navbar .nav-link.active {
  background-color: var(--brand-orange);
  color: var(--color-white);
}

.manager-navbar .navbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.page-header .subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.manager-footer {
  padding: var(--space-md);
  text-align: center;
  background-color: var(--color-soft-gray);
  border-top: 1px solid var(--color-border);
}

.manager-footer p {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ========================================
   METRICS GRID
   ======================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.metric-card {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-soft-gray) 100%);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.metric-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.metric-label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.metric-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.metric-change.positive {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.metric-change.negative {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.dashboard-column .card {
  flex: 1;
}

.dashboard-column .card h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

/* Participation Card */
.participation-card {
  background: linear-gradient(135deg, var(--brand-orange-50) 0%, var(--color-white) 100%);
}

.participation-display {
  text-align: center;
  padding: var(--space-lg) 0;
}

.participation-rate-large {
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: var(--font-weight-black);
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.participation-stats-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Compact Sector List */
.sector-list-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sector-item-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
}

.sector-name {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.sector-rate {
  font-weight: var(--font-weight-semibold);
  color: var(--brand-orange);
}

.sector-bar {
  height: 6px;
  background-color: var(--color-soft-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sector-progress {
  height: 100%;
  background-color: var(--brand-orange);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

/* Compact Commitments List */
.commitments-list-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-height: 300px;
  overflow-y: auto;
}

.commitment-item-compact {
  padding: var(--space-sm);
  background-color: var(--color-soft-gray);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-orange);
}

.commitment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-xs);
}

.commitment-worker {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.commitment-time {
  color: var(--color-text-muted);
}

.commitment-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-xl);
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
}

/* ========================================
   DATA TABLE
   ======================================== */

.table-container {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

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

.table-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.table-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.search-input {
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  min-width: 250px;
  transition: all var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background-color: var(--color-soft-gray);
}

.data-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

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

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

.table-cell-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.table-cell-main strong {
  color: var(--color-text-primary);
}

.table-cell-main small {
  font-size: var(--font-size-xs);
}

.table-responsive {
  overflow-x: auto;
}

.table-actions {
  display: flex;
  gap: var(--space-xs);
  justify-content: flex-end;
}

.text-right {
  text-align: right;
}

/* Empty State Card */
.empty-state-card {
  text-align: center;
  padding: var(--space-5xl) var(--space-xl);
}

.empty-state-card svg {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.empty-state-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.empty-state-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* Page Header Improvements */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs) 0;
}

.page-header .subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Badge Variants */
.badge-secondary {
  background-color: var(--color-soft-gray);
  color: var(--color-text-secondary);
}

.badge-baixo,
.badge-low {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-medio,
.badge-medium {
  background-color: #fed7aa;
  color: #92400e;
}

.badge-alto,
.badge-high {
  background-color: #fecaca;
  color: #991b1b;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background-color: #fecaca;
  color: #991b1b;
}

/* QR Code Thumbnail */
.qr-thumbnail {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Progress Bars */
.progress-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.progress-bar-inline {
  flex: 1;
  height: 8px;
  background-color: var(--color-soft-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--brand-orange);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.progress-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  min-width: 45px;
  text-align: right;
}

/* Form Cards - Simplified */
.form-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  border: none;
  box-shadow: none;
}

.form-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) 0;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.form-label.required::after {
  content: ' *';
  color: var(--color-alert);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: border-color var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.form-help {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  cursor: pointer;
  accent-color: var(--brand-orange);
}

.info-box {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: #1e40af;
}

.info-box svg {
  flex-shrink: 0;
  color: #3b82f6;
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   AUTHENTICATION PAGES
   ======================================== */

.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-soft-gray);
  padding: var(--space-xl) var(--space-lg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.onboarding-card {
  max-width: 600px;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--brand-orange) 0%, #fb923c 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.auth-header h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm) 0;
}

.auth-header p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin: 0;
}

.auth-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-google:hover {
  background-color: var(--color-soft-gray);
  border-color: var(--color-text-muted);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: var(--space-md) 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--color-border);
}

.auth-divider span {
  position: relative;
  background-color: var(--color-white);
  padding: 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.auth-footer p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.auth-footer a {
  color: var(--brand-orange);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer-note {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: var(--space-md) 0 0 0;
}

/* User Info Card */
.user-info-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-soft-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--brand-orange);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.user-details h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs) 0;
}

.user-details p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========================================
   CHARTS & VISUALIZATION
   ======================================== */

.chart-container {
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.chart-header {
  margin-bottom: var(--space-xl);
}

.chart-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.chart-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========================================
   PARTICIPATION RATE
   ======================================== */

.participation-section {
  margin-bottom: var(--space-3xl);
}

.participation-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-xl);
}

.participation-rate {
  position: relative;
}

.rate-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-orange) 0% calc(var(--rate) * 1%),
      var(--color-border) calc(var(--rate) * 1%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rate-circle::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: var(--color-white);
  border-radius: 50%;
}

.rate-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  color: var(--brand-orange);
}

.participation-details {
  flex: 1;
}

.participation-details p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.week-stat {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

/* ========================================
   FORMS & INPUTS (Manager specific)
   ======================================== */

.form-section {
  background-color: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.form-section-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* ========================================
   WORKER LIST
   ======================================== */

.worker-list {
  display: grid;
  gap: var(--space-md);
}

.worker-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  align-items: center;
  transition: all var(--transition-base);
}

.worker-item:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
}

.worker-info {
  flex: 1;
}

.worker-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.worker-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.worker-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ========================================
   QR CODE DISPLAY
   ======================================== */

.qr-display {
  text-align: center;
  padding: var(--space-3xl);
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.qr-code {
  margin: var(--space-2xl) auto;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  display: inline-block;
  box-shadow: var(--shadow-lg);
}

.qr-code img {
  display: block;
  max-width: 300px;
  height: auto;
}

.qr-instructions {
  margin-top: var(--space-xl);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

  .manager-navbar,
  .page-actions,
  .btn,
  .table-actions {
    display: none !important;
  }

  .card,
  .table-container,
  .qr-display {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
  }

  .qr-code {
    box-shadow: none;
    border: 2px solid #000;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .manager-navbar .navbar-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .manager-navbar .navbar-links {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .participation-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: var(--font-size-sm);
  }

  .data-table th,
  .data-table td {
    padding: var(--space-sm) var(--space-md);
  }

  .worker-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .worker-actions {
    justify-content: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TABS COMPONENT
   ======================================== */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-border);
}

.tab-button {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.tab-button:hover {
  color: var(--color-primary);
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tab-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* ========================================
   CONFIGURATION CARDS
   ======================================== */
.sectors-risk-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.sector-risk-card {
  background: var(--color-background);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.sector-risk-card h3 {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
}

.risks-list {
  margin-bottom: var(--space-md);
}

.risk-item,
.rule-item,
.shift-item,
.season-item,
.vocab-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: center;
}

.btn-remove-risk,
.btn-remove-rule,
.btn-remove-shift,
.btn-remove-season,
.btn-remove-vocab {
  width: 32px;
  height: 32px;
  background: var(--color-danger);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  transition: background-color var(--transition-fast);
}

.btn-remove-risk:hover,
.btn-remove-rule:hover,
.btn-remove-shift:hover,
.btn-remove-season:hover,
.btn-remove-vocab:hover {
  background: var(--color-danger-dark);
}

.rule-number {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.shift-icon,
.season-icon {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
}

.vocab-separator {
  color: var(--color-text-muted);
}

/* ========================================
   MANAGER RESOURCE GRIDS & LISTS
   ======================================== */

/* Grids */
.sectors-grid,
.teams-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Cards */
.sector-card,
.team-card,
.resource-card {
  padding: var(--space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sector-header,
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.sector-header h3,
.team-header h3 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-h3);
}

.sector-description,
.team-shift {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
}

/* Stats inside cards */
.sector-stats,
.team-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

/* Managers / Leaders info */
.sector-manager,
.team-leader {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.sector-manager strong,
.team-leader strong {
  color: var(--color-primary);
}

.sector-actions,
.team-actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-sm);
}

/* Badges */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.risk-low {
  background: var(--color-success-light);
  color: var(--color-success);
}

.risk-medium {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.risk-high {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.sector-badge {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Tables (Workers, etc) */
.workers-table-container,
.table-container {
  overflow-x: auto;
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.workers-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.workers-table thead,
.data-table thead {
  background: var(--color-background);
}

.workers-table th,
.data-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
}

.workers-table td,
.data-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

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

.workers-table td.actions {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  gap: var(--space-md);
}

.back-link {
  margin-top: var(--space-xl);
}

/* ========================================
   ACCESS POINTS
   ======================================== */
.access-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.ap-card {
  padding: var(--space-xl);
  height: 100%;
}

.ap-card.inactive {
  opacity: 0.6;
}

.ap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.ap-header h3 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-h3);
}

.status-badge.active {
  background: var(--color-success-light);
  color: var(--color-success);
}

.status-badge.inactive {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.ap-description {
  color: var(--color-text-secondary);
  opacity: 0.7;
  margin-bottom: var(--space-md);
}

.ap-details {
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.detail-item {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.detail-item strong {
  color: var(--color-primary);
}

.qr-preview {
  text-align: center;
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-background);
  border-radius: var(--radius-md);
}

.qr-preview img {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-sm);
}

.ap-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ========================================
   FORMS (GENERIC)
   ======================================== */
.container.form-page {
  max-width: 800px;
}

.form-container {
  padding: var(--space-2xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-label,
label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: all var(--transition-base);
  background: var(--color-white);
}

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

/* ========================================
   REPORTS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Commented out - using landing.css styles instead
.stat-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border: 1px solid var(--color-border);
}
*/

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background: var(--color-background);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content .stat-value {
  font-size: 2rem;
  line-height: 1.2;
}

.report-section {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
}

.report-section h2 {
  margin: 0 0 var(--space-lg) 0;
  color: var(--color-text-primary);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th {
  background: var(--color-background);
  padding: var(--space-md);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
}

.report-table td {
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.report-table tr:hover {
  background: var(--color-background-hover);
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--color-background-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s;
}

.progress-text {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  min-width: 50px;
}

.report-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-xl);
}

@media print {

  .report-actions,
  .navbar,
  .sidebar {
    display: none !important;
  }

  .dashboard-container,
  .container {
    margin: 0;
    padding: 0;
    max-width: none;
  }
}

/* ========================================
   PRINT STYLES (Access Point QR)
   ======================================== */
.print-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.print-header {
  margin-bottom: var(--space-xl);
}

.print-header h1 {
  color: var(--color-primary);
  margin: 0 0 var(--space-md) 0;
}

.print-header p {
  color: var(--color-text-secondary);
  margin: 0;
}

.qr-section {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
}

.qr-code {
  margin: var(--space-lg) 0;
}

.qr-code img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.access-point-name {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: var(--space-lg) 0;
}

.print-details {
  text-align: left;
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  background: var(--color-background);
  border-radius: var(--radius-md);
}

.print-details .detail-item {
  margin: var(--space-sm) 0;
  color: var(--color-text-secondary);
}

.print-details .detail-item strong {
  color: var(--color-text-primary);
}

.print-instructions {
  background: var(--color-primary-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.print-instructions h3 {
  color: var(--color-primary);
  margin-top: 0;
}

.print-instructions ol {
  text-align: left;
  color: var(--color-text-primary);
  padding-left: var(--space-xl);
}

.print-button {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  cursor: pointer;
  margin-top: var(--space-lg);
}

.print-button:hover {
  background: var(--color-primary-dark);
}

@media print {
  .no-print {
    display: none !important;
  }

  body {
    margin: 0;
    padding: 0;
    background: white;
  }

  .print-container {
    max-width: 100%;
    box-shadow: none;
    padding: 0;
  }

  .qr-section {
    box-shadow: none;
    border: none;
  }
}

/* ========================================
   TIMELINE (Worker History)
   ======================================== */
/* ========================================
   DASHBOARD METRICS (Premium)
   ======================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.metric-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.metric-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-orange-50);
  color: var(--brand-orange);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
}

/* ========================================
   PREMIUM DATA TABLES
   ======================================== */
.table-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.data-table,
.workers-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead,
.workers-table thead {
  background: var(--color-soft-gray);
  border-bottom: 1px solid var(--color-border);
}

.data-table th,
.workers-table th {
  padding: var(--space-md) var(--space-xl);
  text-align: left;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td,
.workers-table td {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover,
.workers-table tbody tr:hover {
  background-color: var(--color-background-alt);
}

.data-table td.actions,
.workers-table td.actions {
  text-align: right;
  white-space: nowrap;
}

/* ========================================
   TIMELINE (Worker History)
   ======================================== */
.timeline-section {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.timeline-section h2 {
  margin: 0 0 var(--space-xl) 0;
  color: var(--color-text-primary);
}

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}



.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-content {
  background: var(--color-background);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.timeline-date {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
}

.timeline-weekday {
  font-weight: normal;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.timeline-time {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.timeline-body {
  margin-top: var(--space-sm);
}

.commitment-text {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.6;
  font-size: var(--font-size-base);
}

.timeline-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.meta-item {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ========================================
   AI GENERATION MODAL & ANIMATIONS
   ======================================== */

/* Magic Button */
.btn-magic {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-magic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  50% {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  }
}

/* AI Modal */
.ai-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.ai-modal.active {
  display: flex;
}

.ai-modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modal-slide-in 0.3s ease-out;
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

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

.ai-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.ai-modal-icon {
  font-size: 32px;
  animation: rotate-icon 2s linear infinite;
}

@keyframes rotate-icon {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ai-modal-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.ai-modal-body {
  margin-bottom: var(--space-xl);
}

.ai-modal-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.ai-modal-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-base);
}

.ai-modal-input:focus {
  outline: none;
  border-color: #667eea;
}

.ai-modal-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.ai-modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* Loading Overlay */
.ai-loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ai-loading.active {
  display: flex;
}

.ai-loading-spinner {
  width: 80px;
  height: 80px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-xl);
}

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

.ai-loading-message {
  color: white;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  text-align: center;
  max-width: 400px;
  animation: fade-in-out 2s ease-in-out infinite;
}

@keyframes fade-in-out {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Success Alert */
.ai-success-alert {
  background-color: #d1fae5;
  border-left: 4px solid #10b981;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: none;
  animation: slide-down 0.3s ease-out;
}

.ai-success-alert.active {
  display: block;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.ai-success-alert p {
  color: #065f46;
  font-size: var(--font-size-sm);
  margin: 0;
  font-weight: var(--font-weight-medium);
}


/* Success button state */
.btn-success {
  background-color: #10b981;
  color: white;
  border-color: #10b981;
}

.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}


/* AI Loading Overlay */
.ai-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.ai-loading-overlay.active {
  display: flex;
}

.ai-loading-content {
  text-align: center;
  color: white;
}

.ai-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #F97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.ai-loading-message {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

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

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10001;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background-color: #10b981;
  color: white;
}

.toast-error .toast-icon {
  background-color: #ef4444;
  color: white;
}

.toast-message {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}