import 'package:flutter/material.dart';

class AppColor {
  // --- Core Design Tokens ---
  
  // Background & Surfaces
  static const Color bg = Color(0xFF0A0A0B);
  static const Color surface = Color(0xFF161618);
  static const Color surfaceElevated = Color(0xFF222225);
  static const Color surfaceGlass = Color(0xCC161618);
  
  // Accents & Branding
  static const Color accent = Color(0xFF6366F1); // Indigo / Violet
  static const Color accentSoft = Color(0x266366F1); // 15% Opacity
  static const Color accentBorder = Color(0x4D6366F1); // 30% Opacity
  static const Color glow = Color(0xFF818CF8);
  
  // Semantic / State Colors
  static const Color danger = Color(0xFFEF4444);
  static const Color dangerSoft = Color(0x26EF4444);
  static const Color success = Color(0xFF10B981);
  static const Color successSoft = Color(0x2610B981);
  static const Color warning = Color(0xFFF59E0B);
  static const Color info = Color(0xFF3B82F6);
  
  // Text & Content
  static const Color textPrimary = Color(0xFFF3F4F6);
  static const Color textSecondary = Color(0xFF9CA3AF);
  static const Color textMuted = Color(0xFF6B7280);
  
  // UI Elements
  static const Color divider = Color(0xFF2D2D30);
  static const Color cardShadow = Color(0x66000000);

  // --- Legacy Mappings (for temporary compatibility) ---
  static const Color primaryColor = bg;
  static const Color secondaryColor = textPrimary;
  static const Color accentColor = accent;
  static const Color redColor = danger;
  static const Color greenColor = success;
  static const Color blueColor = info;
  static const Color yellowColor = warning;
  static const Color deepPurpleAccent = accent; // Map to accent
}
