/* Design Tokens & CSS Variables for EmployeeOS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  /* Sky-Blue Aqua Minimalist Theme */
  --color-primary: #0ea5e9; /* Sky Blue */
  --color-primary-hover: #0284c7;
  --color-primary-light: #e0f2fe;
  
  --color-accent: #06b6d4; /* Aqua */
  --color-accent-hover: #0891b2;
  --color-accent-light: #e0f7fa;

  --color-success: #10b981; /* Emerald Green */
  --color-success-light: #ecfdf5;
  
  --color-warning: #f59e0b; /* Amber Orange */
  --color-warning-light: #fefbeb;
  
  --color-danger: #ef4444; /* Red */
  --color-danger-light: #fef2f2;
  
  --color-info: #0ea5e9; /* Sky Blue */
  --color-info-light: #e0f2fe;

  /* Neutrals: Cool backgrounds & contrast */
  --color-bg-main: #f8fafc; /* Crisp light grey/blue */
  --color-bg-card: #ffffff;
  --color-bg-sidebar: #0f172a; /* Rich dark Slate 900 for sidebar contrast */
  
  --color-text-main: #0f172a; /* Slate 900 */
  --color-text-muted: #475569; /* Slate 600 */
  --color-text-light: #94a3b8; /* Slate 400 */
  --color-text-inverse: #ffffff;
  
  --color-border: #e2e8f0; /* Slate 200 */
  --color-border-hover: #cbd5e1; /* Slate 300 */
  
  /* Typography Scale */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-2.5: 0.625rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radii (Modern soft curves) */
  --radius-sm: 8px;
  --radius-md: 24px; /* Soft card/input curves */
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-round: 9999px;

  /* Shadows (Ambient & subtle) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.01);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.06), 0 4px 8px rgba(15, 23, 42, 0.02);
  --shadow-xl: 0 32px 64px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.03);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-Index Layers */
  --z-index-base: 1;
  --z-index-sticky: 100;
  --z-index-dropdown: 200;
  --z-index-nav: 300;
  --z-index-modal: 1000;
  --z-index-toast: 2000;
  
  /* Layout Dimensions */
  --sidebar-width: 260px;
  --bottom-nav-height: calc(64px + env(safe-area-inset-bottom, 0px));
  --header-height: 70px;
  --max-content-width: 1600px;
  
  /* Safe Area Helpers */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Onyx Premium Visual Theme Variable Overrides */
body[data-theme="onyx"] {
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-primary: #1e1e1e;
  --color-primary-hover: #111111;
  --color-primary-light: #f3f4f6;
  
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-accent-light: #ecfdf5;

  --color-bg-main: #f8f9fa;
  --color-bg-card: #ffffff;
  
  --color-text-main: #111827;
  --color-text-muted: #374151;
  --color-text-light: #6b7280;
  
  --color-border: #e5e7eb;
  --color-border-hover: #d1d5db;
  
  --radius-md: 16px; /* Soft rounded-2xl curves */
}

/* Terracotta Premium Visual Theme Variable Overrides */
body[data-theme="terracotta"] {
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-primary: #9e5939; /* Rich Polished Ceramic Clay Brown */
  --color-primary-hover: #834628;
  --color-primary-light: #faf1ec;
  
  --color-accent: #b66e4a; /* Lighter Warm Earthenware Highlight */
  --color-accent-hover: #9b5a38;
  --color-accent-light: #fbf2ed;

  --color-bg-main: #f8f9fa;
  --color-bg-card: #ffffff;
  
  --color-text-main: #1e293b;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;
  
  --color-border: #eef1f4;
  --color-border-hover: #e2e8f0;
  
  --radius-md: 26px; /* Soft executive curvature */
  
  /* Pinned Shadows */
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
}

/* Jade Glass Premium Visual Theme Variable Overrides */
body[data-theme="jadeglass"] {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-primary: #0f9d7a; /* Polished Jade Green */
  --color-primary-hover: #0c8265;
  --color-primary-light: #d1fae5;
  
  --color-accent: #10b981; /* Emerald Green */
  --color-accent-hover: #059669;
  --color-accent-light: #ecfdf5;

  --color-bg-main: #f7faf8;
  --color-bg-card: rgba(255, 255, 255, 0.88);
  
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  
  --color-border: rgba(255, 255, 255, 0.48);
  --color-border-hover: rgba(255, 255, 255, 0.72);
  
  --radius-md: 26px; /* Floating airy curves */
  
  /* Suspended Shadows */
  --shadow-md: 0 10px 35px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.07);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.1);
}
