/* /dashboard/static/dashboard/css/mail-dashboard.tokens.css
 * 
 * CSS Variables - Imported from Asterion Design System
 * Maintains consistency with asterion-core theme
 */

:root {
  /* === ASTERION BASE TOKENS === */
  
  /* Colors - Primary palette */
  --ast-bg-0: #0c1018;              /* Darkest background */
  --ast-bg-1: #121620;              /* Dark background */
  --ast-bg-2: #1a1f2e;              /* Medium dark background */
  
  /* Text colors */
  --ast-text-0: rgba(255,255,255,1.00);     /* Primary text (100%) */
  --ast-text-1: rgba(255,255,255,0.75);     /* Secondary text (75%) */
  --ast-text-2: rgba(255,255,255,0.50);     /* Tertiary text (50%) */
  --ast-text-3: rgba(255,255,255,0.35);     /* Quaternary text (35%) */
  
  /* Line/Border colors */
  --ast-line-0: rgba(255,255,255,0.08);     /* Primary line */
  --ast-line-1: rgba(255,255,255,0.12);     /* Secondary line */
  --ast-line-2: rgba(255,255,255,0.16);     /* Tertiary line */
  
  /* Semantic colors */
  --ast-error: #ef4444;             /* Red */
  --ast-warning: #f59e0b;           /* Orange */
  --ast-success: #10b981;           /* Green */
  --ast-info: #3b82f6;              /* Blue */
  
  /* Accent colors (brand) */
  --ast-gold: #d6b15e;              /* Gold accent */
  --ast-azure: #7aa7ff;             /* Azure blue */
  
  /* Spacing system */
  --ast-spacing-xs: 4px;
  --ast-spacing-sm: 8px;
  --ast-spacing-md: 12px;
  --ast-spacing-lg: 18px;
  --ast-spacing-xl: 24px;
  --ast-spacing-2xl: 32px;
  
  /* Border radius */
  --ast-radius-sm: 8px;
  --ast-radius-md: 12px;
  --ast-radius-lg: 18px;
  --ast-radius-full: 999px;
  
  /* Shadows */
  --ast-shadow-1: 0 4px 12px rgba(0,0,0,0.15);
  --ast-shadow-2: 0 8px 24px rgba(0,0,0,0.25);
  --ast-shadow-3: 0 12px 32px rgba(0,0,0,0.35);
  
  /* Glows (gold accent) */
  --ast-glow-gold: 0 0 12px rgba(214,177,94,0.25), inset 0 0 12px rgba(214,177,94,0.15);
  --ast-glow-gold-shadow: 0 0 20px rgba(214,177,94,0.2);
  
  /* Glows (azure accent) */
  --ast-glow-azure: 0 0 12px rgba(122,167,255,0.25), inset 0 0 12px rgba(122,167,255,0.15);
  --ast-glow-azure-shadow: 0 0 20px rgba(122,167,255,0.2);
  
  /* Animations */
  --ast-speed-0: 100ms;
  --ast-speed-1: 200ms;
  --ast-speed-2: 300ms;
  --ast-speed-3: 400ms;
  --ast-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ast-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ast-ease-out: cubic-bezier(0, 0, 0.2, 1);
  
  /* Typography */
  --ast-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ast-font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  --ast-font-size-xs: 12px;
  --ast-font-size-sm: 13px;
  --ast-font-size-base: 14px;
  --ast-font-size-md: 15px;
  --ast-font-size-lg: 16px;
  --ast-font-size-xl: 18px;
  --ast-font-size-2xl: 22px;
  --ast-font-weight-normal: 400;
  --ast-font-weight-medium: 500;
  --ast-font-weight-semibold: 600;
  --ast-font-weight-bold: 700;
  
  /* === MAIL-SPECIFIC SEMANTIC TOKENS === */
  
  /* Message statuses */
  --mail-status-new: rgba(59,130,246,0.8);       /* Blue */
  --mail-status-processing: rgba(245,158,11,0.8);/* Orange */
  --mail-status-acted: rgba(34,197,94,0.8);      /* Green */
  --mail-status-error: rgba(239,68,68,0.8);      /* Red */
  --mail-status-skipped: rgba(107,114,128,0.8);  /* Gray */
  
  /* AI confidence ranges */
  --mail-confidence-critical: #ef4444;           /* < 0.3 */
  --mail-confidence-low: #f97316;                /* 0.3-0.5 */
  --mail-confidence-medium: #eab308;             /* 0.5-0.7 */
  --mail-confidence-high: #84cc16;               /* 0.7-0.9 */
  --mail-confidence-excellent: #22c55e;          /* > 0.9 */
  
  /* Intent colors */
  --mail-intent-invoice: #3b82f6;                /* Blue */
  --mail-intent-payment: #10b981;                /* Green */
  --mail-intent-reply: #f59e0b;                  /* Orange */
  --mail-intent-spam: #ef4444;                   /* Red */
  --mail-intent-other: #8b5cf6;                  /* Purple */
  
  /* Action states */
  --mail-action-idle: rgba(255,255,255,0.05);
  --mail-action-hover: rgba(255,255,255,0.08);
  --mail-action-active: rgba(122,167,255,0.15);
  --mail-action-disabled: rgba(255,255,255,0.02);
}

/* === Light mode (AsterionMail v1) === */
html[data-mail-theme="light"] {
  --ast-bg-0: #f8f3eb;
  --ast-bg-1: #fcfaf6;
  --ast-bg-2: #ffffff;
  --ast-text-0: rgba(20,30,46,0.98);
  --ast-text-1: rgba(35,48,69,0.88);
  --ast-text-2: rgba(58,72,95,0.78);
  --ast-text-3: rgba(86,100,124,0.68);
  --ast-line-0: rgba(25,35,53,0.08);
  --ast-line-1: rgba(25,35,53,0.12);
  --ast-line-2: rgba(25,35,53,0.16);
  --ast-error: #d83b3b;
  --ast-warning: #d08a12;
  --ast-success: #109f6f;
  --ast-info: #2c6ae5;
  --ast-gold: #9f7a1e;
  --ast-azure: #2c6ae5;
  --ast-shadow-1: 0 6px 18px rgba(68, 60, 48, 0.08);
  --ast-shadow-2: 0 10px 28px rgba(68, 60, 48, 0.12);
  --ast-shadow-3: 0 16px 36px rgba(68, 60, 48, 0.16);
  --ast-glow-gold: 0 0 10px rgba(159,122,30,0.14), inset 0 0 10px rgba(159,122,30,0.08);
  --ast-glow-gold-shadow: 0 0 16px rgba(159,122,30,0.10);
  --ast-glow-azure: 0 0 10px rgba(44,106,229,0.12), inset 0 0 10px rgba(44,106,229,0.08);
  --ast-glow-azure-shadow: 0 0 16px rgba(44,106,229,0.10);
  --mail-action-idle: rgba(25,35,53,0.03);
  --mail-action-hover: rgba(25,35,53,0.06);
  --mail-action-active: rgba(44,106,229,0.12);
  --mail-action-disabled: rgba(25,35,53,0.02);
}

/* === High contrast mode === */
@media (prefers-contrast: more) {
  :root {
    --ast-line-0: rgba(255,255,255,0.15);
    --ast-line-1: rgba(255,255,255,0.25);
    --ast-line-2: rgba(255,255,255,0.35);
    --ast-shadow-1: 0 4px 12px rgba(0,0,0,0.3);
    --ast-shadow-2: 0 8px 24px rgba(0,0,0,0.4);
  }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  :root {
    --ast-speed-0: 0ms;
    --ast-speed-1: 0ms;
    --ast-speed-2: 0ms;
    --ast-speed-3: 0ms;
  }
}
/* v2.1 */
