/* core-consolidated.css - Built: 2025-12-05 15:36:10 UTC */
/* Source files: 13 */


/* ========== tokens/colors-tokens.css ========== */
/**
 * Design Tokens - Colors
 * bIDMIO
 * 
 * Color palette including brand colors, neutrals, semantic colors, and states
 */

:root {
  /* ========================================
     COLOR PALETTE
     ======================================== */
  
  /* Primary Brand Colors */
  --color-primary: #1e3a8a;           /* Main brand blue */
  --color-primary-hover: #1e3a5f;    /* Darker blue for hover states */
  --color-primary-light: #2563eb;     /* Lighter blue for accents */
  --color-primary-dark: #1e293b;      /* Very dark blue */
  
  /* Neutral Colors (Grays) */
  --color-background: #f7f9fc;        /* Page background */
  --color-surface: #ffffff;           /* Card/panel background */
  --color-surface-secondary: #f8fafc; /* Subtle backgrounds (headers, sidebars) */
  --color-surface-tertiary: #f3f4f6;  /* Even more subtle backgrounds */
  --color-border: #e5e7eb;            /* Default borders */
  --color-border-strong: #d1d5db;     /* Stronger borders for emphasis */
  --color-border-light: #f3f4f6;      /* Very light borders */
  
  /* Text Colors */
  --color-text-primary: #1f2937;      /* Main text - darkest */
  --color-text-secondary: #6b7280;    /* Secondary text - medium gray */
  --color-text-tertiary: #9ca3af;     /* Tertiary/muted text - light gray */
  --color-text-inverse: #ffffff;      /* White text on dark backgrounds */
  --color-text-disabled: #d1d5db;     /* Disabled text */
  
  /* Additional Gray Scale (Tailwind-style) */
  --color-gray-50: #f9fafb;           /* Lightest gray */
  --color-gray-100: #f3f4f6;          /* Very light gray (same as surface-tertiary) */
  --color-gray-200: #e5e7eb;          /* Light gray (same as border) */
  --color-gray-300: #d1d5db;          /* Medium-light gray (same as border-strong) */
  --color-gray-400: #9ca3af;          /* Medium gray - for borders/dividers */
  --color-gray-500: #6b7280;          /* Medium-dark gray (same as text-secondary) */
  --color-gray-600: #4b5563;          /* Dark gray */
  --color-gray-700: #374151;          /* Darker gray - for buttons/text */
  --color-gray-800: #1f2937;          /* Very dark gray (same as text-primary) */
  --color-gray-900: #111827;          /* Darkest gray */
  
  /* Semantic Colors - Success */
  --color-success: #10b981;           /* Success green */
  --color-success-dark: #059669;      /* Darker success */
  --color-success-light: #34d399;     /* Lighter success */
  --color-success-bg: #d1fae5;        /* Success background */
  --color-success-border: #a7f3d0;    /* Success border */
  
  /* Semantic Colors - Warning */
  --color-warning: #f59e0b;           /* Warning orange */
  --color-warning-dark: #d97706;      /* Darker warning */
  --color-warning-light: #fbbf24;     /* Lighter warning */
  --color-warning-bg: #fef3c7;        /* Warning background */
  --color-warning-bg-lighter: #fffbeb; /* Very light warning background */
  --color-warning-border: #fde68a;    /* Warning border */
  
  /* Semantic Colors - Danger */
  --color-danger: #ef4444;            /* Error/danger red */
  --color-danger-dark: #dc2626;       /* Darker danger */
  --color-danger-light: #f87171;      /* Lighter danger */
  --color-danger-bg: #fee2e2;         /* Danger background */
  --color-danger-border: #fecaca;     /* Danger border */
  
  /* Semantic Colors - Info */
  --color-info: #3b82f6;              /* Info blue */
  --color-info-dark: #2563eb;         /* Darker info */
  --color-info-light: #60a5fa;        /* Lighter info */
  --color-info-bg: #dbeafe;           /* Info background */
  --color-info-bg-lighter: #eff6ff;   /* Very light info background */
  --color-info-bg-hover: #dbeafe;     /* Info background hover state */
  --color-info-border: #bfdbfe;       /* Info border */
  --color-info-gradient-start: #f0f9ff; /* Info gradient start (very light blue-gray) */
  --color-info-gradient-end: #e0f2fe;   /* Info gradient end (light blue) */

  /* Semantic Colors - Purple */
  --color-purple: #8b5cf6;            /* Purple */
  --color-purple-dark: #7c3aed;       /* Darker purple */
  --color-purple-light: #a78bfa;      /* Lighter purple */
  --color-purple-bg: #ede9fe;         /* Purple background */
  --color-purple-border: #ddd6fe;     /* Purple border */
  
  /* Indigo Colors */
  --color-indigo-dark: #4f46e5;       /* Indigo dark (indigo-600) */

  /* Extended Semantic Colors */
  --color-success-darker: #065f46;    /* Very dark green (emerald-800) */
  --color-success-darkest: #064e3b;   /* Darkest green (emerald-900) */
  --color-success-bg-light: #f0fdf4;  /* Very light green background */
  --color-danger-bg-light: #fef2f2;   /* Very light red background */
  --color-danger-critical: #bf360c;   /* Deep orange for critical warnings */
  --color-danger-darker: #991b1b;     /* Very dark red (red-800) */
  --color-danger-darkest: #7f1d1d;    /* Darkest red (red-900) */
  --color-warning-bright: #ff9800;    /* Bright orange (Material Design) */
  --color-warning-darker: #e65100;    /* Dark orange (Material Design deep orange) */
  --color-warning-dark-brown: #92400e; /* Dark amber (amber-800) */
  --color-warning-darkest: #78350f;   /* Darkest amber (amber-900) */
  --color-brown: #5d4037;             /* Brown for neutral warnings */
  --color-cyan: #0284c7;              /* Cyan blue (sky-600) */
  --color-blue-dark: #1d4ed8;         /* Dark blue (blue-700) */
  --color-blue-darker: #1e40af;       /* Darker blue (blue-800) */
  --color-indigo: #6366f1;            /* Indigo (indigo-500) */

  /* Alert-specific colors */
  --color-warning-bg-gradient-start: #fff5e1;  /* Warning gradient start */
  --color-warning-bg-gradient-end: #ffe8cc;    /* Warning gradient end */
  --color-alert-hover: rgba(0, 0, 0, 0.05);    /* Alert button hover overlay */
  
  /* Interactive States */
  --color-hover: #f3f4f6;             /* Hover background (light gray) */
  --color-active: #e5e7eb;            /* Active/pressed state */
  --color-focus: #3b82f6;             /* Focus ring color (blue) */
  --color-focus-ring: rgba(59, 130, 246, 0.2); /* Focus ring with opacity */
}


/* ========== tokens/typography-tokens.css ========== */
/**
 * Design Tokens - Typography
 * bIDMIO
 * 
 * Font families, sizes, weights, line heights, and letter spacing
 */

:root {
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  /* Font Families */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
  
  /* Font Sizes - Modern, larger typography for better readability */
  --font-size-xs: 0.75rem;      /* 12px - Small labels */
  --font-size-sm: 0.875rem;     /* 14px - Secondary text */
  --font-size-base: 0.9375rem;  /* 15px - BASE SIZE - Body text */
  --font-size-md: 1rem;         /* 16px - Emphasized body text */
  --font-size-lg: 1.125rem;     /* 18px - Subheadings */
  --font-size-xl: 1.25rem;      /* 20px - Section headers */
  --font-size-2xl: 1.5rem;      /* 24px - Page titles */
  --font-size-3xl: 1.875rem;    /* 30px - Large headings */
  --font-size-4xl: 2.25rem;     /* 36px - Hero headings */
  --font-size-5xl: 3rem;        /* 48px - Display text */
  --font-size-6xl: 6rem;        /* 96px - Extra large display (error pages) */
  
  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights - More breathing room for better readability */
  --line-height-none: 1;
  --line-height-tight: 1.3;       /* Tighter for headings */
  --line-height-snug: 1.4;        /* Snug for large text */
  --line-height-normal: 1.6;      /* Normal for body text - more space */
  --line-height-relaxed: 1.75;    /* Relaxed for long-form content */
  --line-height-loose: 2;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
}


/* ========== tokens/spacing-tokens.css ========== */
/**
 * Design Tokens - Spacing
 * bIDMIO
 * 
 * Spacing scale based on 8px base unit
 */

:root {
  /* ========================================
     SPACING SYSTEM (8px base scale)
     ======================================== */
  
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;  /* 2px */
  --space-1: 0.25rem;     /* 4px */
  --space-1-5: 0.375rem;  /* 6px */
  --space-2: 0.5rem;      /* 8px */
  --space-2-5: 0.625rem;  /* 10px */
  --space-3: 0.75rem;     /* 12px */
  --space-3-5: 0.875rem;  /* 14px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-7: 1.75rem;     /* 28px */
  --space-8: 2rem;        /* 32px */
  --space-9: 2.25rem;     /* 36px */
  --space-10: 2.5rem;     /* 40px */
  --space-11: 2.75rem;    /* 44px */
  --space-12: 3rem;       /* 48px */
  --space-14: 3.5rem;     /* 56px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
}


/* ========== tokens/effects-tokens.css ========== */
/**
 * Design Tokens - Effects
 * bIDMIO
 * 
 * Borders, shadows, transitions, animations, opacity, gradients
 */

:root {
  /* ========================================
     BORDERS & RADIUS
     ======================================== */
  
  --border-width-0: 0;
  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  --border-width-8: 8px;
  
  --border-radius-none: 0;
  --border-radius-sm: 0.375rem;  /* 6px - Small elements */
  --border-radius: 0.5rem;       /* 8px - DEFAULT - Modern rounded */
  --border-radius-md: 0.625rem;  /* 10px - Medium */
  --border-radius-lg: 0.75rem;   /* 12px - Cards and panels */
  --border-radius-xl: 1rem;      /* 16px - Large containers */
  --border-radius-2xl: 1.5rem;   /* 24px - Extra large */
  --border-radius-3xl: 2rem;     /* 32px - Very large */
  --border-radius-full: 9999px;  /* Fully rounded (pills, circles) */
  
  /* ========================================
     SHADOWS - Softer, more subtle elevation
     ======================================== */
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.1), 0 12px 25px rgba(0, 0, 0, 0.05);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-none: none;
  
  /* Card elevation shadows - floating effect */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  
  /* Focus shadows */
  --shadow-focus: 0 0 0 3px var(--color-focus-ring);
  --shadow-focus-visible: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-focus);

  /* Color-specific shadows for gradient buttons */
  --shadow-info: 0 4px 6px -1px rgba(59, 130, 246, 0.3);        /* Blue gradient shadow */
  --shadow-warning: 0 4px 6px -1px rgba(245, 158, 11, 0.3);     /* Orange gradient shadow */
  --shadow-purple: 0 4px 6px -1px rgba(139, 92, 246, 0.3);      /* Purple gradient shadow */
  --shadow-danger: 0 4px 6px -1px rgba(239, 68, 68, 0.3);       /* Red gradient shadow */

  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */
  
  --transition-fast: 100ms ease;
  --transition-base: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  
  --transition-all: all 200ms ease;
  --transition-colors: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  --transition-opacity: opacity 200ms ease;
  --transition-shadow: box-shadow 200ms ease;
  --transition-transform: transform 200ms ease;
  
  /* Easing functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ========================================
     OPACITY LEVELS
     ======================================== */
  
  --opacity-0: 0;
  --opacity-5: 0.05;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-25: 0.25;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-75: 0.75;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-95: 0.95;
  --opacity-100: 1;
  
  /* ========================================
     CUSTOM GRADIENTS
     ======================================== */
  
  --gradient-primary: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary-light) 100%);
  --gradient-surface: linear-gradient(to bottom, var(--color-surface), var(--color-surface-secondary));
  
  /* ========================================
     UTILITIES
     ======================================== */
  
  /* Focus visible outline (for accessibility) */
  --focus-outline: 2px solid var(--color-focus);
  --focus-outline-offset: 2px;
}


/* ========== tokens/layout-tokens.css ========== */
/**
 * Design Tokens - Layout
 * bIDMIO
 * 
 * Z-index layers, layout dimensions, breakpoints
 */

:root {
  /* ========================================
     Z-INDEX LAYERS
     ======================================== */
  
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-overlay: 1055;  /* Mobile backdrop overlay */
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1080;
  
  /* ========================================
     LAYOUT DIMENSIONS
     ======================================== */
  
  /* Navigation */
  --nav-height: 60px;
  --nav-height-mobile: 60px;
  
  /* Sidebar */
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 60px;
  --settings-sidebar-width: 280px;
  
  /* Containers */
  --container-max-width: 1400px;
  --container-padding: var(--space-6);
  --container-padding-mobile: var(--space-4);
  
  /* Max Widths (for content areas, error pages, etc.) */
  --max-width-sm: 400px;
  --max-width-md: 500px;
  --max-width-lg: 600px;
  --max-width-form: 700px;    /* Form containers */
  --max-width-xl: 800px;
  --max-width-prose: 600px;  /* Optimal reading width for prose content */
  
  /* Min Heights */
  --min-height-screen: 100vh;
  
  /* ========================================
     BREAKPOINTS (for reference in comments/JS)
     ======================================== */
  
  /* Note: CSS doesn't support custom property interpolation in media queries */
  /* These are for documentation and JavaScript usage only */
  --breakpoint-xs: 0;       /* Extra small devices (portrait phones) */
  --breakpoint-sm: 576px;   /* Small devices (landscape phones) */
  --breakpoint-md: 768px;   /* Medium devices (tablets) */
  --breakpoint-lg: 992px;   /* Large devices (desktops) */
  --breakpoint-xl: 1200px;  /* Extra large devices (large desktops) */
  --breakpoint-xxl: 1400px; /* Extra extra large devices */
}


/* ========== tokens/components-tokens.css ========== */
/**
 * Design Tokens - Components
 * bIDMIO
 * 
 * Component-specific design tokens (forms, buttons, cards, tables, etc.)
 */

:root {
  /* ========================================
     COMPONENT-SPECIFIC TOKENS
     ======================================== */
  
  /* Touch Targets (Mobile Accessibility) */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  
  /* Form Controls */
  --input-height: 38px;
  --input-height-sm: 32px;
  --input-height-lg: 44px;
  --input-height-mobile: 44px;
  --input-padding-x: var(--space-3);
  --input-padding-y: var(--space-2);
  --input-border-radius: var(--border-radius);
  --input-disabled-bg: #f8f9fa;  /* Background for disabled/readonly inputs */
  
  /* Form-specific tokens */
  --form-focus-ring-primary: rgba(59, 130, 246, 0.1);
  --form-focus-ring-danger: rgba(239, 68, 68, 0.1);
  --form-focus-ring-success: rgba(16, 185, 129, 0.1);
  --form-select-option-padding: var(--space-2);
  --textarea-min-height: 100px;
  
  /* Form icon and focus sizing */
  --form-select-icon-width: 16px;
  --form-select-icon-height: 12px;
  --form-focus-ring-size: 3px;
  
  /* Buttons */
  --btn-height: 38px;
  --btn-height-sm: 32px;
  --btn-height-lg: 44px;
  --btn-height-mobile: 44px;
  --btn-padding-x: var(--space-4);
  --btn-padding-y: var(--space-2);
  --btn-border-radius: var(--border-radius);
  --btn-font-weight: var(--font-weight-medium);
  
  /* Cards - Modern floating style with subtle shadows */
  --card-padding: var(--space-6);          /* 24px - More breathing room */
  --card-padding-lg: var(--space-8);       /* 32px - Large cards */
  --card-border-color: transparent;        /* No borders - use shadow instead */
  --card-border-radius: var(--border-radius-lg);  /* 12px - Rounded corners */
  --card-shadow: var(--shadow-card);       /* Soft floating shadow */
  --card-shadow-hover: var(--shadow-card-hover);  /* Elevated on hover */
  --card-bg: var(--color-surface);
  
  /* Tables */
  --table-cell-padding-x: var(--space-4);
  --table-cell-padding-y: var(--space-3);
  --table-header-bg: var(--color-surface-secondary);
  --table-border-color: var(--color-border);
  --table-row-hover-bg: var(--color-hover);
  
  /* Badges */
  --badge-padding-x: var(--space-2);
  --badge-padding-y: var(--space-1);
  --badge-font-size: var(--font-size-xs);
  --badge-border-radius: var(--border-radius-sm);
  
  /* Modals */
  --modal-padding: var(--space-6);
  --modal-header-padding: var(--space-4);
  --modal-footer-padding: var(--space-4);
  --modal-border-radius: var(--border-radius-md);
  --modal-backdrop-bg: rgba(0, 0, 0, 0.5);
  
  /* Tooltips */
  --tooltip-padding-x: var(--space-2);
  --tooltip-padding-y: var(--space-1);
  --tooltip-bg: var(--color-text-primary);
  --tooltip-color: var(--color-text-inverse);
  --tooltip-font-size: var(--font-size-xs);
  --tooltip-border-radius: var(--border-radius-sm);
  
  /* Dropdowns */
  --dropdown-padding-y: var(--space-2);
  --dropdown-border-radius: var(--border-radius);
  --dropdown-shadow: var(--shadow-lg);
  --dropdown-bg: var(--color-surface);
  --dropdown-border-color: var(--color-border);
  
  /* Avatars */
  --avatar-size-sm: 64px;    /* 64px - Small avatar */
  --avatar-size-md: 96px;    /* 96px - Medium avatar */
  --avatar-size-lg: 150px;   /* 150px - Large avatar (profile page) */
  --avatar-size-xl: 200px;   /* 200px - Extra large avatar */
  
  /* Profile Layout */
  --profile-grid-template: 1fr 2fr;  /* Sidebar:Main content ratio */
}


/* ========== tokens/responsive-tokens.css ========== */
/**
 * Design Tokens - Responsive Overrides
 * bIDMIO
 * 
 * Responsive typography and spacing adjustments for different screen sizes
 */

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

/**
 * Tablet Devices (768px - 991px)
 * Slightly reduce font sizes for better fit on medium screens
 */
@media (max-width: 991px) and (min-width: 768px) {
  :root {
    /* Reduce large headings slightly on tablets */
    --font-size-2xl: 1.375rem;    /* 22px - Page titles (was 24px) */
    --font-size-3xl: 1.75rem;     /* 28px - Large headings (was 30px) */
    --font-size-4xl: 2rem;        /* 32px - Hero headings (was 36px) */
    --font-size-5xl: 2.5rem;      /* 40px - Display text (was 48px) */
  }
}

/**
 * Mobile Devices (max 767px)
 * Optimized typography for mobile readability and touch targets
 */
@media (max-width: 767px) {
  :root {
    /* Base text sizes - slightly smaller for mobile screens */
    --font-size-xs: 0.6875rem;    /* 11px - Small labels (was 12px) */
    --font-size-sm: 0.8125rem;    /* 13px - Secondary text (was 14px) */
    --font-size-base: 0.875rem;   /* 14px - Body text (was 15px) */
    --font-size-md: 0.9375rem;    /* 15px - Emphasized text (was 16px) */
    --font-size-lg: 1rem;         /* 16px - Subheadings (was 18px) */

    /* Headings - scaled down for mobile */
    --font-size-xl: 1.125rem;     /* 18px - Section headers (was 20px) */
    --font-size-2xl: 1.25rem;     /* 20px - Page titles (was 24px) */
    --font-size-3xl: 1.5rem;      /* 24px - Large headings (was 30px) */
    --font-size-4xl: 1.75rem;     /* 28px - Hero headings (was 36px) */
    --font-size-5xl: 2rem;        /* 32px - Display text (was 48px) */
    --font-size-6xl: 3rem;        /* 48px - Error pages (was 96px) */

    /* Spacing - slightly tighter on mobile to maximize content */
    --space-6: 1.25rem;           /* 20px (was 24px) */
    --space-8: 1.75rem;           /* 28px (was 32px) */
    --space-10: 2.25rem;          /* 36px (was 40px) */
    --space-12: 2.75rem;          /* 44px (was 48px) */

    /* Component adjustments for mobile */
    --card-padding: var(--space-4);  /* 16px (was 24px) */
    --btn-height-mobile: 44px;    /* Maintain touch-friendly size */
    --input-height-mobile: 44px;  /* Maintain touch-friendly size */
  }
}

/**
 * Small Mobile Devices (max 480px)
 * Further optimizations for very small screens
 */
@media (max-width: 480px) {
  :root {
    /* Compact spacing for small screens */
    --space-8: 1.5rem;            /* 24px (was 28px on mobile) */
    --space-10: 2rem;             /* 32px (was 36px on mobile) */
    --space-12: 2.5rem;           /* 40px (was 44px on mobile) */

    /* Even smaller headings on very small screens */
    --font-size-3xl: 1.375rem;    /* 22px (was 24px) */
    --font-size-4xl: 1.625rem;    /* 26px (was 28px) */
    --font-size-5xl: 1.875rem;    /* 30px (was 32px) */
    --font-size-6xl: 2.5rem;      /* 40px (was 48px) */

    /* Tighter card padding on small screens */
    --card-padding: var(--space-3);  /* 12px (was 16px) */
  }
}


/* ========== tokens/dark-mode-tokens.css ========== */
/**
 * Design Tokens - Dark Mode
 * bIDMIO
 * 
 * Dark mode theme overrides
 * JavaScript sets: <html data-theme="dark"> or <html data-theme="light">
 * User preference is stored in localStorage
 */

[data-theme="dark"] {
  /* Background & Surface Colors */
  --color-background: #0f172a;        /* Slate-900 - Deep dark background */
  --color-surface: #1e293b;           /* Slate-800 - Card/panel background */
  --color-surface-secondary: #334155; /* Slate-700 - Subtle backgrounds */
  --color-surface-tertiary: #475569;  /* Slate-600 - Even lighter surfaces */

  /* Border Colors */
  --color-border: #475569;            /* Slate-600 - Default borders */
  --color-border-strong: #64748b;     /* Slate-500 - Stronger borders */
  --color-border-light: #334155;      /* Slate-700 - Very light borders */

  /* Text Colors */
  --color-text-primary: #f1f5f9;      /* Slate-100 - Main text */
  --color-text-secondary: #cbd5e1;    /* Slate-300 - Secondary text */
  --color-text-tertiary: #94a3b8;     /* Slate-400 - Tertiary/muted text */
  --color-text-inverse: #1f2937;      /* Gray-800 - Dark text on light backgrounds */
  --color-text-disabled: #64748b;     /* Slate-500 - Disabled text */

  /* Gray Scale (inverted for dark mode) */
  --color-gray-50: #1e293b;           /* Darkest in dark mode */
  --color-gray-100: #334155;
  --color-gray-200: #475569;
  --color-gray-300: #64748b;
  --color-gray-400: #94a3b8;
  --color-gray-500: #cbd5e1;
  --color-gray-600: #e2e8f0;
  --color-gray-700: #f1f5f9;
  --color-gray-800: #f8fafc;
  --color-gray-900: #ffffff;          /* Lightest in dark mode */

  /* Interactive States */
  --color-hover: #334155;             /* Slate-700 - Hover background */
  --color-active: #475569;            /* Slate-600 - Active/pressed state */
  --color-focus-ring: rgba(59, 130, 246, 0.4); /* Brighter focus ring */

  /* Card & Component Backgrounds */
  --card-bg: #1e293b;                 /* Slate-800 */
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);

  /* Shadows - Darker and more pronounced */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.45), 0 8px 10px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.5), 0 12px 25px rgba(0, 0, 0, 0.3);

  /* Semantic Colors - Slightly adjusted for dark mode visibility */
  --color-success-bg: #064e3b;        /* Emerald-900 - darker green bg */
  --color-success-border: #065f46;    /* Emerald-800 */

  --color-warning-bg: #78350f;        /* Amber-900 - darker orange bg */
  --color-warning-border: #92400e;    /* Amber-800 */

  --color-danger-bg: #7f1d1d;         /* Red-900 - darker red bg */
  --color-danger-border: #991b1b;     /* Red-800 */

  --color-info-bg: #1e3a8a;           /* Blue-900 - darker blue bg */
  --color-info-border: #1e40af;       /* Blue-800 */

  /* Alert backgrounds for dark mode */
  --color-success-bg-light: #064e3b;  /* Dark green */
  --color-danger-bg-light: #7f1d1d;   /* Dark red */
  --color-alert-hover: rgba(255, 255, 255, 0.05); /* Light hover on dark */
}


/* ========== core/header-navigation.css ========== */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
}

/* Two-Row Header Container */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: var(--color-surface);
    border-bottom: var(--border-width) solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

/* Top Row - Tasks/Email/Chat, Settings, Notifications, User menu */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-1-5) var(--space-5);
    background-color: var(--color-surface-secondary);
    border-bottom: var(--border-width) solid var(--color-border);
    min-height: 36px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-top-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-colors);
    white-space: nowrap;
}

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

/* Dark Mode Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
    cursor: pointer;
}

.theme-toggle i {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover i {
    transform: scale(1.1);
}

.notification-icon {
    position: relative;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: var(--transition-colors);
}

.notification-icon:hover {
    color: var(--color-primary);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--color-danger-dark);
    color: var(--color-text-inverse);
    border-radius: var(--border-radius-full);
    padding: var(--space-0-5) var(--space-1-5);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    min-width: 16px;
    text-align: center;
    line-height: var(--line-height-tight);
}

/* Bottom Row - Logo and Main Navigation */
.top-nav {
    background-color: var(--color-surface);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 var(--space-5);
}

.logo {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-right: var(--space-10);
    min-width: 120px;
    display: flex;
    align-items: center;
}

.logo i {
    font-size: var(--font-size-xl);
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-tabs-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.nav-tabs {
    border: none;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-wrap: nowrap !important;
    gap: var(--space-1-5);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scroll-behavior: smooth;
    cursor: grab;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

/* Fade indicators for scrollable content */
.nav-tabs::before,
.nav-tabs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: var(--z-sticky-local);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-tabs::before {
    left: 0;
    background: linear-gradient(to right, var(--color-surface) 0%, color-mix(in srgb, var(--color-surface) 80%, transparent) 30%, transparent 100%);
}

.nav-tabs::after {
    right: 0;
    background: linear-gradient(to left, var(--color-surface) 0%, color-mix(in srgb, var(--color-surface) 80%, transparent) 30%, transparent 100%);
}

.nav-tabs.can-scroll-left::before {
    opacity: 1;
}

.nav-tabs.can-scroll-right::after {
    opacity: 1;
}

.nav-tabs .nav-item {
    flex-shrink: 0;
    position: relative;
    z-index: var(--z-base);
}

/* Navigation scroll arrows */
.nav-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: var(--color-surface);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-layer-11);
    color: var(--color-text-secondary);
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.nav-scroll-arrow:hover {
    background-color: var(--color-hover);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.nav-scroll-arrow.left {
    left: 8px;
}

.nav-scroll-arrow.right {
    right: 8px;
}

.nav-scroll-arrow.visible {
    display: flex;
}

/* Change cursor to grabbing when dragging */
.nav-tabs.dragging {
    cursor: grabbing !important;
    user-select: none;
}

.nav-tabs .nav-link {
    border: none;
    background: none;
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    white-space: nowrap;
    transition: var(--transition-all);
    cursor: pointer;
}

.nav-tabs .nav-link.active {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border: none;
    font-weight: var(--font-weight-semibold);
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: var(--color-hover);
    color: var(--color-text-primary);
    border: none;
}

.user-area {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    min-width: 200px;
    justify-content: flex-end;
}

.user-area i {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-colors);
}

.user-area i:hover {
    color: var(--color-primary);
}

/* Mobile menu button - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    padding: var(--space-2);
    transition: var(--transition-colors);
}

.mobile-menu-btn:hover {
    color: var(--color-primary);
}



/* ========== core/mobile-small.css ========== */
/* ========================================
   MOBILE SMALL SCREEN STYLES (< 768px)
   ======================================== */

@media (max-width: 768px) {
    .user-area .dropdown-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-2);
    }
    
    .user-area .dropdown-toggle i {
        font-size: var(--font-size-xl);
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-col {
        width: 100%;
        min-width: 100%;
        flex: none;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-3);
    }
    
    .filter-section {
        padding: var(--space-3);
    }
    
    .table-wrapper {
        overflow: visible;
        -webkit-overflow-scrolling: unset !important;
    }
    
    .data-table,
    .data-table * {
        display: block;
        width: 100%;
        border: none;
        background: transparent;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .data-table {
        border-collapse: unset;
    }
    
    .data-table thead,
    .data-table thead tr,
    .data-table thead th {
        display: none;
        visibility: hidden;
        height: 0;
        overflow: hidden;
    }
    
    .data-table tbody tr {
        display: block;
        border: var(--border-width) solid var(--color-border);
        border-radius: 8px;
        background: var(--color-surface);
        box-shadow: var(--shadow-sm);
        margin-bottom: var(--space-4);
        padding: var(--space-4);
        position: relative;
    }
    
    .data-table tbody td {
        display: block;
        width: 100%;
        padding: var(--space-2) 0;
        border: none;
        border-bottom: var(--border-width) solid var(--color-gray-100);
        text-align: left;
        font-size: var(--font-size-sm);
        line-height: 1.4;
        position: relative;
    }
    
    .data-table tbody td:last-child {
        border-bottom: none;
    }
    
    .data-table tbody td[data-label]:before {
        content: attr(data-label) ":";
        display: block;
        font-weight: var(--font-weight-semibold);
        font-size: var(--font-size-xs);
        color: var(--color-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: var(--space-1);
    }
    
    .data-table tbody td[data-label="Project budget in hours"],
    .data-table tbody td[data-label="Budget"],
    .data-table tbody td[data-label="Customer"],
    .data-table tbody td[data-label="Address"] {
        display: none;
    }
    
    .data-table tbody td[data-label="Actions"] {
        text-align: center;
        padding-top: 12px;
    }
    
    .data-table tbody td[data-label="Actions"] div {
        justify-content: center;
        display: flex;
        gap: 8px;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    padding: var(--space-2);
    transition: var(--transition-colors);
}

.mobile-menu-btn:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Desktop hover improvements */
@media (min-width: 769px) {
    .nav-tabs .nav-link {
        position: relative;
    }
    
    .nav-tabs .nav-link:not(.active):hover {
        transform: translateY(-1px);
    }
}

/* Extra small screens - further optimization */
@media (max-width: 480px) {
    .top-nav {
        padding: 0 8px;
        height: 56px;
    }
    
    .logo {
        margin-right: var(--space-2);
        min-width: 60px;
        font-size: var(--font-size-base);
    }
    
    .logo i {
        font-size: var(--font-size-lg);
    }
    
    .nav-tabs {
        padding: 0 4px;
        flex-wrap: nowrap !important;
    }
    
    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
    
    .nav-tabs .nav-link {
        padding: var(--space-2-5) var(--space-3-5);
        font-size: var(--font-size-sm);
    }
    
    .mobile-menu-btn {
        font-size: var(--font-size-xl);
        margin-right: 6px;
    }
    
    .user-area {
        gap: 12px;
        font-size: var(--font-size-xs);
    }
}


/* ========== core/mobile-tablet.css ========== */
/* Tablet Responsive Styles */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
    .header-top-link {
        font-size: var(--font-size-xs);
    }
    
    .header-top-right {
        gap: var(--space-3);
    }
    
    .logo {
        margin-right: var(--space-5);
        font-size: var(--font-size-md);
    }
    
    .nav-tabs .nav-link {
        padding: var(--space-2) var(--space-3-5);
        font-size: var(--font-size-sm);
    }
}

/* Medium screens - optimize navigation spacing */
@media only screen and (max-width: 1440px) and (min-width: 1025px) {
    .logo {
        margin-right: var(--space-6);
    }
    
    .nav-tabs {
        gap: var(--space-1);
    }
    
    .nav-tabs .nav-link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-sm);
    }
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    /* Header auto-hide on scroll */
    .header-container {
        transition: transform 0.3s ease-in-out;
    }
    
    .header-container.header-hidden {
        transform: translateY(-100%);
    }
    
    .header-top-row {
        padding: var(--space-1) var(--space-3);
    }
    
    .header-top-right {
        gap: var(--space-3);
    }
    
    /* Hide all text labels in top header on mobile - icons only */
    .header-top-link {
        font-size: var(--font-size-sm);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-1);
    }
    
    .header-top-link span,
    .header-top-link .d-none.d-md-inline,
    .theme-toggle .theme-text {
        display: none !important;
    }
    
    .header-top-link i {
        margin-right: 0 !important;
    }
    
    /* Mobile menu button icon size */
    .mobile-menu-btn i {
        font-size: 1.25rem;
    }
    
    /* Hide Tasks & Email & Chats link on mobile (non-functional) */
    .header-top-link.tasks-link {
        display: none !important;
    }
    
    .notification-icon {
        font-size: var(--font-size-base);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-tabs {
        display: none;
    }
    
    /* Hide navigation wrapper and scroll arrows on mobile */
    .nav-tabs-wrapper {
        display: none !important;
    }
    
    .nav-scroll-arrow {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 96px;
        padding: var(--space-3);
        /* Extra top padding to create visual gap between header and content */
        padding-top: var(--space-5);
    }
    
    /* ================================================
       GLOBAL MOBILE HORIZONTAL PADDING
       Ensures all main content areas have left/right gutters
       Use !important to override page-specific padding:0 rules
       ================================================ */
    .main-content,
    #app-content,
    .ds-project-content,
    .ds-dashboard-content,
    .project-main-card,
    .tab-content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Remove negative margins that cause content overflow */
    .project-main-card,
    .ds-project-tabs-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .sidebar {
        display: block !important;
        position: fixed;
        left: 0;
        top: 96px;
        height: calc(100vh - 96px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1060;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        width: 280px;
        background-color: var(--color-surface);
    }
    
    .sidebar.show {
        transform: translateX(0) !important;
    }
    
    .sidebar-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-4);
        border-bottom: var(--border-width) solid var(--color-border);
        background-color: var(--color-surface);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .sidebar-title {
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-semibold);
        margin: 0;
        color: var(--color-text-primary);
    }
    
    .sidebar-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--color-text-secondary);
        font-size: var(--font-size-xl);
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        padding: var(--space-2);
        border-radius: var(--border-radius);
        transition: var(--transition-all);
    }
    
    .sidebar-close-btn:hover {
        background-color: var(--color-hover);
        color: var(--color-text-primary);
    }
    
    .sidebar-nav a {
        min-height: 44px;
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-base);
    }
    
    .sidebar-nav a i {
        font-size: var(--font-size-md);
        width: 20px;
    }
    
    .sidebar-nav a.active i {
        color: var(--color-text-inverse) !important;
    }
    
    .top-nav {
        padding: 0 0.75rem;
        height: 60px;
        gap: 0.75rem;
    }
    
    .logo {
        margin-right: auto;
        margin-left: auto;
        min-width: auto;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        pointer-events: auto;
    }
    
    .logo-image {
        height: 32px;
        width: auto;
        max-width: 140px;
    }
    
    .user-area {
        min-width: auto;
        gap: var(--space-2);
        margin-left: auto;
    }
    
    .user-area span {
        display: none;
    }
    
    .user-area a[href*="settings"] {
        padding: var(--space-2);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .user-area .dropdown {
        margin-left: auto;
    }
}


/* ========== core/sidebar.css ========== */
/* Sidebar - Hidden on desktop, shown as drawer on mobile */
.sidebar {
    position: fixed;
    top: 96px;
    left: 0;
    width: 180px;
    height: calc(100vh - 96px);
    background-color: var(--color-background);
    border-right: var(--border-width) solid var(--color-border);
    padding: 0;
    overflow-y: auto;
    display: none;
}

.sidebar-header {
    display: none;
}

.sidebar-close-btn {
    display: none;
}

.sidebar-nav {
    list-style: none;
    padding: var(--space-4) 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: var(--space-0-5);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-all);
    border-radius: var(--border-radius-sm);
    margin: 0 var(--space-2);
}

.sidebar-nav a:hover {
    background-color: var(--color-hover);
}

.sidebar-nav a.active {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.sidebar-nav a i {
    margin-right: var(--space-3);
    width: 18px;
    font-size: var(--font-size-base);
}

/* Main Content - No left margin on desktop (no sidebar) */
.main-content {
    margin-left: 0;
    margin-top: 96px;
    padding: var(--space-6);
    background-color: var(--color-background);
    min-height: calc(100vh - 96px);
}

/* Content Card */
.content-card {
    background: var(--color-surface);
    border-radius: 6px;
    border: var(--border-width) solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: var(--border-width) solid var(--color-border);
}

.page-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-900);
    margin: 0;
}

/* Filter Section */
.filter-section {
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface-secondary);
    border-bottom: var(--border-width) solid var(--color-border);
}

.filter-row {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.filter-col {
    flex: 1;
    min-width: 160px;
}

.filter-col.small {
    flex: 0.6;
    min-width: 120px;
}

.filter-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
    font-weight: var(--font-weight-medium);
}

.form-control {
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: 4px;
    padding: var(--space-1-5) var(--space-2-5);
    font-size: var(--font-size-sm);
    background: var(--color-surface);
    height: 32px;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
    outline: none;
}

.input-group-text {
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-border-strong);
    border-right: none;
    padding: var(--space-1-5) var(--space-2-5);
    font-size: var(--font-size-xs);
}

.input-group .form-control {
    border-left: none;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.view-btn {
    border: var(--border-width) solid var(--color-border-strong);
    background: var(--color-surface);
    padding: var(--space-1) var(--space-2-5);
    border-radius: 4px;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.view-btn:hover:not(.active) {
    background: var(--color-gray-100);
}

/* Settings Sidebar - Override default sidebar padding */
body.settings-route .settings-sidebar {
    padding-top: var(--space-6) !important;
}

/* Workzone Sidebar - Match settings padding */
body.workzone-route .settings-sidebar {
    padding-top: var(--space-6) !important;
}


/* ========== core/tables-forms.css ========== */

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
}

.data-table thead th {
    background: var(--color-gray-50);
    border-bottom: var(--border-width) solid var(--color-border);
    padding: var(--space-2-5) var(--space-2);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.data-table tbody td {
    padding: var(--space-3) var(--space-2);
    border-bottom: var(--border-width) solid var(--color-gray-100);
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    vertical-align: middle;
}

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

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: 10px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-align: center;
}

.status-badge.ready {
    background: var(--color-success-bg);
    color: var(--color-success-dark);
}

.status-badge.open {
    background: var(--color-info-bg);
    color: var(--color-info-dark);
}

.status-badge.normal { 
    background: var(--color-gray-100); 
    color: var(--color-text-secondary); 
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    border: var(--border-width) solid var(--color-primary);
    color: white;
    padding: var(--space-1-5) var(--space-3);
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-link {
    color: var(--color-text-secondary);
    border: none;
    background: none;
    padding: var(--space-0-5) var(--space-1);
    font-size: var(--font-size-xs);
}

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

/* Mobile backdrop for sidebar */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
}

.mobile-backdrop.show {
    display: block;
}

