/**
 * ShiftBridge V-Connect Design Tokens
 * Version: 1.0
 * Framework: NobleUI (Bootstrap 5 based)
 * Last Updated: May 12, 2026
 * 
 * This file contains all CSS custom properties for the V-Connect redesign.
 * Use these tokens instead of hardcoded values throughout the application.
 */

/* ==========================================================================
   COLOR PALETTE
   ========================================================================== */
:root {
  /* Primary Brand Colors */
  --sb-navy: #0f172a;
  --sb-navy-light: #1e293b;
  --sb-primary: #3b82f6;
  --sb-primary-light: #60a5fa;
  --sb-primary-dark: #2563eb;
  
  /* Status Colors */
  --sb-success: #22c55e;
  --sb-success-light: #86efac;
  --sb-success-bg: rgba(34, 197, 94, 0.1);
  --sb-warning: #f59e0b;
  --sb-warning-light: #fcd34d;
  --sb-warning-bg: rgba(245, 158, 11, 0.1);
  --sb-danger: #ef4444;
  --sb-danger-light: #fca5a5;
  --sb-danger-bg: rgba(239, 68, 68, 0.1);
  --sb-danger-bg-heavy: rgba(239, 68, 68, 0.15);
  --sb-info: #06b6d4;
  --sb-info-light: #67e8f9;
  --sb-info-bg: rgba(6, 182, 212, 0.1);
  
  /* Sidebar Colors */
  --sb-sidebar-bg-start: #1e293b;
  --sb-sidebar-bg-end: #0f172a;
  --sb-sidebar-text: rgba(255, 255, 255, 0.8);
  --sb-sidebar-text-hover: #ffffff;
  --sb-sidebar-active-bg: rgba(77, 138, 240, 0.3);
  --sb-sidebar-active-bg-strong: rgba(77, 138, 240, 0.4);
  --sb-sidebar-brand-text: #4d8af0;
  --sb-sidebar-border: rgba(255, 255, 255, 0.1);
  
  /* Background Colors */
  --sb-content-bg: #f8f9fa;
  --sb-card-bg: #ffffff;
  --sb-card-header-bg: #f8f9fa;
  --sb-topbar-bg-start: #ffffff;
  --sb-topbar-bg-end: #f1f5f9;
  
  /* Text Colors */
  --sb-text-primary: #212529;
  --sb-text-secondary: #64748b;
  --sb-text-muted: #6c757d;
  --sb-text-white: #ffffff;
  
  /* Border Colors */
  --sb-border: #e2e8f0;
  --sb-border-light: #dee2e6;
  --sb-divider: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   TYPOGRAPHY SCALE
   ========================================================================== */
:root {
  /* Font Sizes */
  --sb-text-xs: 0.75rem;      /* 12px */
  --sb-text-sm: 0.875rem;     /* 14px */
  --sb-text-base: 1rem;       /* 16px */
  --sb-text-lg: 1.125rem;     /* 18px */
  --sb-text-xl: 1.25rem;      /* 20px - Section Heading */
  --sb-text-2xl: 1.5rem;      /* 24px */
  --sb-text-3xl: 1.75rem;     /* 28px - Page Title */
  --sb-text-4xl: 2rem;        /* 32px - Card Numbers */
  
  /* Font Weights */
  --sb-font-normal: 400;
  --sb-font-medium: 500;
  --sb-font-semibold: 600;
  --sb-font-bold: 700;
  
  /* Line Heights */
  --sb-leading-tight: 1.25;
  --sb-leading-normal: 1.5;
  --sb-leading-relaxed: 1.625;
}

/* ==========================================================================
   SPACING SYSTEM (8px Base Grid)
   ========================================================================== */
:root {
  --sb-space-1: 4px;     /* Tight spacing */
  --sb-space-2: 8px;     /* Default gap */
  --sb-space-3: 12px;    /* Card padding small */
  --sb-space-4: 16px;    /* Standard padding */
  --sb-space-5: 20px;    /* Card padding medium */
  --sb-space-6: 24px;    /* Section spacing */
  --sb-space-8: 32px;    /* Large gaps */
  --sb-space-10: 40px;   /* Page sections */
  --sb-space-12: 48px;   /* Major sections */
}

/* ==========================================================================
   BORDER RADIUS SCALE
   ========================================================================== */
:root {
  --sb-radius-sm: 4px;    /* Buttons, badges, inputs */
  --sb-radius-md: 6px;    /* Cards, tables */
  --sb-radius-lg: 8px;    /* Modals, large cards */
  --sb-radius-xl: 12px;   /* Special containers */
  --sb-radius-full: 9999px; /* Pills, avatars */
}

/* ==========================================================================
   ELEVATION / SHADOW RULES
   ========================================================================== */
:root {
  /* Card Shadows */
  --sb-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
  --sb-shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
  --sb-shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.15);
  --sb-shadow-modal: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Component Shadows */
  --sb-shadow-sidebar: 2px 0 8px rgba(0, 0, 0, 0.1);
  --sb-shadow-topbar: 0 2px 8px rgba(0, 0, 0, 0.06);
  --sb-shadow-button: 0 1px 2px rgba(0, 0, 0, 0.05);
  --sb-shadow-focus: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   STATUS BADGE STYLES
   ========================================================================== */
:root {
  /* Online/Registered */
  --sb-status-online-bg: rgba(34, 197, 94, 0.1);
  --sb-status-online-text: #16a34a;
  --sb-status-online-dot: #22c55e;
  
  /* Offline/Unregistered */
  --sb-status-offline-bg: rgba(239, 68, 68, 0.1);
  --sb-status-offline-text: #dc2626;
  --sb-status-offline-dot: #ef4444;
  
  /* Warning/Degraded */
  --sb-status-warning-bg: rgba(245, 158, 11, 0.1);
  --sb-status-warning-text: #d97706;
  --sb-status-warning-dot: #f59e0b;
  
  /* Info */
  --sb-status-info-bg: rgba(6, 182, 212, 0.1);
  --sb-status-info-text: #0891b2;
  --sb-status-info-dot: #06b6d4;
  
  /* Critical */
  --sb-status-critical-bg: rgba(239, 68, 68, 0.15);
  --sb-status-critical-text: #dc2626;
  --sb-status-critical-icon: #ef4444;
}

/* ==========================================================================
   TRANSITIONS & ANIMATIONS
   ========================================================================== */
:root {
  --sb-transition-fast: 150ms ease;
  --sb-transition-normal: 200ms ease;
  --sb-transition-slow: 300ms ease;
  --sb-transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   Z-INDEX SCALE
   ========================================================================== */
:root {
  --sb-z-dropdown: 1000;
  --sb-z-sticky: 1020;
  --sb-z-fixed: 1030;
  --sb-z-modal-backdrop: 1040;
  --sb-z-modal: 1050;
  --sb-z-popover: 1060;
  --sb-z-tooltip: 1070;
  --sb-z-toast: 1080;
}

/* ==========================================================================
   UTILITY CLASSES (Optional - for quick reference)
   ========================================================================== */

/* Status Badge Utility Classes */
.sb-badge-online {
  background-color: var(--sb-status-online-bg);
  color: var(--sb-status-online-text);
}

.sb-badge-offline {
  background-color: var(--sb-status-offline-bg);
  color: var(--sb-status-offline-text);
}

.sb-badge-warning {
  background-color: var(--sb-status-warning-bg);
  color: var(--sb-status-warning-text);
}

.sb-badge-info {
  background-color: var(--sb-status-info-bg);
  color: var(--sb-status-info-text);
}

.sb-badge-critical {
  background-color: var(--sb-status-critical-bg);
  color: var(--sb-status-critical-text);
}

/* Typography Utility Classes */
.sb-text-page-title {
  font-size: var(--sb-text-3xl);
  font-weight: var(--sb-font-semibold);
  color: var(--sb-text-primary);
}

.sb-text-section-heading {
  font-size: var(--sb-text-xl);
  font-weight: var(--sb-font-semibold);
  color: var(--sb-text-primary);
}

.sb-text-card-number {
  font-size: var(--sb-text-4xl);
  font-weight: var(--sb-font-bold);
  color: var(--sb-text-primary);
}

.sb-text-helper {
  font-size: var(--sb-text-xs);
  color: var(--sb-text-secondary);
}

/* Card Utility Classes */
.sb-card {
  background-color: var(--sb-card-bg);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-md);
  box-shadow: var(--sb-shadow-card);
}

.sb-card-header {
  background-color: var(--sb-card-header-bg);
  border-bottom: 1px solid var(--sb-border-light);
  padding: var(--sb-space-4) var(--sb-space-5);
  border-radius: var(--sb-radius-md) var(--sb-radius-md) 0 0;
}

.sb-card-body {
  padding: var(--sb-space-5);
}

.sb-card-footer {
  background-color: var(--sb-card-header-bg);
  border-top: 1px solid var(--sb-border-light);
  padding: var(--sb-space-4) var(--sb-space-5);
  border-radius: 0 0 var(--sb-radius-md) var(--sb-radius-md);
}
