/* ===========================
   BloomFlow CRM — Design Tokens
   Theme: Dark Noir Rose
   =========================== */

:root {
  /* Surface Colors */
  --bf-bg: #0a0c12;
  --bf-surface-1: #12151e;
  --bf-surface-2: #1a1e2c;
  --bf-surface-3: #232838;
  --bf-surface-hover: #1e2333;
  --bf-border: #262d42;
  --bf-border-light: #1e2333;

  /* Text */
  --bf-text-primary: #edf0f7;
  --bf-text-secondary: #8890a8;
  --bf-text-muted: #555d78;
  --bf-text-inverse: #0a0c12;

  /* Brand */
  --bf-rose: #f43f5e;
  --bf-rose-hover: #e11d48;
  --bf-rose-ghost: rgba(244, 63, 94, 0.08);
  --bf-rose-glow: rgba(244, 63, 94, 0.15);

  /* Semantic */
  --bf-success: #22c55e;
  --bf-success-bg: rgba(34, 197, 94, 0.1);
  --bf-warning: #f59e0b;
  --bf-warning-bg: rgba(245, 158, 11, 0.1);
  --bf-danger: #ef4444;
  --bf-danger-bg: rgba(239, 68, 68, 0.1);
  --bf-info: #3b82f6;
  --bf-info-bg: rgba(59, 130, 246, 0.1);
  --bf-purple: #a855f7;
  --bf-purple-bg: rgba(168, 85, 247, 0.1);
  --bf-cyan: #06b6d4;
  --bf-cyan-bg: rgba(6, 182, 212, 0.1);

  /* Messenger Colors */
  --bf-telegram: #0088cc;
  --bf-whatsapp: #25D366;
  --bf-max: #168ACD;

  /* Typography */
  --bf-font: 'Outfit', system-ui, -apple-system, sans-serif;
  --bf-font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --bf-space-xs: 4px;
  --bf-space-sm: 8px;
  --bf-space-md: 12px;
  --bf-space-lg: 16px;
  --bf-space-xl: 24px;
  --bf-space-2xl: 32px;

  /* Radius */
  --bf-radius-sm: 6px;
  --bf-radius-md: 10px;
  --bf-radius-lg: 14px;
  --bf-radius-xl: 20px;
  --bf-radius-full: 100px;

  /* Shadows */
  --bf-shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --bf-shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --bf-shadow-lg: 0 8px 30px rgba(0,0,0,.5);
  --bf-shadow-glow: 0 0 20px var(--bf-rose-glow);

  /* Sidebar */
  --bf-sidebar-width: 230px;

  /* Transitions */
  --bf-transition: 0.15s ease;
  --bf-transition-slow: 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --bf-sidebar-width: 0px; }
  
  .bf-sidebar { transform: translateX(-280px); width: 280px !important; transition: transform 0.3s ease; }
  .bf-sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.7); }
  .bf-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
  .bf-sidebar-overlay.open { display: block; }
  
  .bf-hamburger { display: flex !important; }
  
  main { padding: var(--bf-space-md) !important; padding-top: 52px !important; margin-left: 0 !important; max-width: 100vw !important; }
  
  /* Mobile tables */
  .bf-table { font-size: 11px; }
  .bf-table th, .bf-table td { padding: 6px 8px; }
  
  /* Mobile cards grid */
  .bf-stat-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  
  /* Mobile modal */
  .bf-modal-overlay .bf-modal { width: 95vw !important; max-height: 90vh; margin: 5vh auto; }
  
  /* Hide columns on mobile */
  .hide-mobile { display: none !important; }
}
