/* ============================================
   BridgeWork Design System
   Modern, Professional Dashboard Styling
   ============================================ */

:root {
  /* Brand Colors - BridgeWork logo palette (subtle & professional) */
  /* Warm gradient inspired by logo but toned down for corporate use */
  --brand-primary: #E86A33;    /* warm terracotta-orange (muted) */
  --brand-secondary: #C74B6D;  /* dusty rose/magenta (softened) */
  --brand-accent: #F5B945;     /* golden amber (less saturated) */
  --brand-light: #F4A574;      /* soft coral for light accents */

  /* Derived brand shades */
  --brand-primary-dark: #C7581F; /* deeper terracotta for hover */
  --brand-secondary-dark: #A83A58;
  
  /* Professional neutral tones for main UI */
  --brand-text: #2D3748;       /* dark slate for body text */
  --brand-surface: #F7F8FA;    /* very light gray surface */
  --brand-muted: #718096;      /* muted gray for secondary text */
  
  /* Functional Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* Neutral Palette */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background & Surface */
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f6;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;
  
  /* Borders & Shadows */
  --border-color: #e5e7eb;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  
  /* 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);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
}

/* ============================================
   Base Styles
   ============================================ */

* {
  box-sizing: border-box;
}

body.app-body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Layout Components
   ============================================ */

#wrapper {
  min-height: 100vh;
}

#sidebar-wrapper {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
}

#page-content-wrapper {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  padding: 2rem;
  transition: margin-left var(--transition-base), width var(--transition-base);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-primary);
  background: var(--gray-100);
}

.nav-link.active {
  color: var(--brand-primary);
  background: var(--gray-100);
}

/* ============================================
   Cards & Panels
   ============================================ */

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

/* ... (rest of file unchanged for brevity) */
