import 'package:flutter/material.dart';
import '../../constants.dart';

/// Color tokens used by the mitra chat UI to differentiate regular vs sensitive sessions.
class SensitivityTheme {
  final Color bgTint;
  final Color accent;
  final Color banner;
  final Color badgeBg;
  final Color badgeFg;

  const SensitivityTheme({
    required this.bgTint,
    required this.accent,
    required this.banner,
    required this.badgeBg,
    required this.badgeFg,
  });

  static const regular = SensitivityTheme(
    bgTint: Color(0xFFF5D0D6),
    accent: Color(0xFFBE7C8A),
    banner: Color(0xFFC4868F),
    badgeBg: Color(0xFFBE7C8A),
    badgeFg: Colors.white,
  );

  static const sensitive = SensitivityTheme(
    bgTint: Color(0xFFFFE8A3),
    accent: Color(0xFFB88900),
    banner: Color(0xFFE0A500),
    badgeBg: Color(0xFFF7B500),
    badgeFg: Color(0xFF3D2A00),
  );

  static SensitivityTheme of(TopicSensitivity s) =>
      s == TopicSensitivity.sensitive ? sensitive : regular;
}
