/**
 * MeraTheme - Design Tokens & Multi-Brand System
 * Supports: MeraHost, cpanelfree, and custom brand profiles + Dark/Light modes.
 */

:root {
  /* =========================================================================
     DEFAULT: MeraHost Brand Profile (Modern Cloud Infrastructure)
     ========================================================================= */
  --brand-navy:         #0A2540;
  --brand-navy-deep:    #061633;
  --brand-navy-darker:  #030d1d;
  
  --brand-primary:      #0B5FFF;
  --brand-primary-hover:#0546C9;
  --brand-primary-soft: rgba(11, 95, 255, 0.08);
  --brand-primary-glow: rgba(11, 95, 255, 0.25);
  
  --brand-accent:       #22D3EE;  /* Electric Cyan */
  --brand-accent-soft:  rgba(34, 211, 238, 0.12);
  --brand-warm:         #FF6B2C;  /* Signal Orange */
  
  /* Status Colors */
  --color-success:      #10B981;
  --color-success-soft: rgba(16, 185, 129, 0.12);
  --color-warning:      #F59E0B;
  --color-warning-soft: rgba(245, 158, 11, 0.12);
  --color-danger:       #EF4444;
  --color-danger-soft:  rgba(239, 68, 68, 0.12);
  --color-info:         #3B82F6;
  --color-info-soft:    rgba(59, 130, 246, 0.12);

  /* Light Theme Surfaces & Text - High-Contrast Crisp Modern SaaS Canvas */
  --app-bg:             #F1F5F9;  /* Crisp cool slate background to make pure white cards pop */
  --app-surface:        #FFFFFF;  /* Pure white crisp card layer */
  --app-surface-subtle: #E2E8F0;  /* Well-defined secondary background */
  --app-surface-hover:  #F8FAFC;  /* Crisp item hover */
  
  --sidebar-bg:         #0A2540;
  --sidebar-text:       #C1D1E5;
  --sidebar-text-hover: #FFFFFF;
  --sidebar-active-bg:  rgba(255, 255, 255, 0.1);
  --sidebar-border:     rgba(255, 255, 255, 0.08);

  --header-bg:          #FFFFFF;
  --header-border:      #E2E8F0;

  --text-primary:       #0F172A;  /* Deep obsidian/slate-900 (ultra sharp) */
  --text-secondary:     #334155;  /* Slate-700 (crisp, high readability) */
  --text-muted:         #64748B;  /* Slate-500 (WCAG AA compliant, 4.6:1 contrast ratio) */
  --text-inverse:       #FFFFFF;

  --border-light:       #E2E8F0;  /* Crisp card borders */
  --border-medium:      #CBD5E1;  /* High visibility inputs & controls */
  --border-strong:      #94A3B8;  /* Active borders */
  
  /* Typography */
  --font-sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading:       'Space Grotesk', 'Inter', -apple-system, sans-serif;

  /* Shadows with crisp modern elevation */
  --shadow-xs:          0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm:          0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:          0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg:          0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl:          0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.05);

  /* Radii */
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          14px;
  --radius-xl:          20px;
  --radius-pill:        9999px;

  /* Dimensions */
  --sidebar-width:      260px;
  --sidebar-collapsed:  72px;
  --header-height:      68px;
}

/* =========================================================================
   DARK MODE PALETTE
   ========================================================================= */
[data-theme="dark"] {
  --app-bg:             #090D16;
  --app-surface:        #111827;
  --app-surface-subtle: #1E293B;
  --app-surface-hover:  #283548;

  --sidebar-bg:         #060B12;
  --sidebar-text:       #94A3B8;
  --sidebar-text-hover: #F8FAFC;
  --sidebar-active-bg:  rgba(11, 95, 255, 0.16);
  --sidebar-border:     #1E293B;

  --header-bg:          #111827;
  --header-border:      #1E293B;

  --text-primary:       #F8FAFC;
  --text-secondary:     #CBD5E1;
  --text-muted:         #64748B;
  --text-inverse:       #0F172A;

  --border-light:       #1E293B;
  --border-medium:      #334155;

  --shadow-xs:          0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm:          0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md:          0 4px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg:          0 10px 25px rgba(0, 0, 0, 0.6);
  --shadow-xl:          0 20px 35px rgba(0, 0, 0, 0.7);
}

/* =========================================================================
   BRAND FLAVOR 2: cpanelfree Brand Profile
   ========================================================================= */
[data-brand="cpanelfree"] {
  --brand-navy:         #0F172A;
  --brand-navy-deep:    #020617;
  --brand-primary:      #10B981;  /* Emerald */
  --brand-primary-hover:#059669;
  --brand-primary-soft: rgba(16, 185, 129, 0.1);
  --brand-primary-glow: rgba(16, 185, 129, 0.25);
  --brand-accent:       #6366F1;  /* Indigo */
  --brand-warm:         #F97316;  /* Orange */
  --font-heading:       'Outfit', 'Inter', sans-serif;
}

