import 'package:flutter/material.dart';

class AppTheme {
  AppTheme._();

  static ThemeData lightTheme() {
    final colorScheme = ColorScheme.fromSeed(
      seedColor: const Color(0xFF7A9A6D),
      brightness: Brightness.light,
      dynamicSchemeVariant: DynamicSchemeVariant.tonalSpot,
    ).copyWith(
      surface: const Color(0xFFF5F0E8),
      surfaceContainerLowest: const Color(0xFFFAF7F2),
      surfaceContainerLow: const Color(0xFFF2EDE4),
      surfaceContainer: const Color(0xFFEDE7DC),
      surfaceContainerHigh: const Color(0xFFE7E0D5),
      surfaceContainerHighest: const Color(0xFFE0D9CE),
    );

    return ThemeData(
      useMaterial3: true,
      colorScheme: colorScheme,
    );
  }

  static ThemeData darkTheme() {
    final colorScheme = ColorScheme.fromSeed(
      seedColor: const Color(0xFF7A9A6D),
      brightness: Brightness.dark,
      dynamicSchemeVariant: DynamicSchemeVariant.tonalSpot,
    ).copyWith(
      surface: const Color(0xFF2A2520),
      surfaceContainerLowest: const Color(0xFF1E1A16),
      surfaceContainerLow: const Color(0xFF322D27),
      surfaceContainer: const Color(0xFF3A342E),
      surfaceContainerHigh: const Color(0xFF433D36),
      surfaceContainerHighest: const Color(0xFF4D463F),
    );

    return ThemeData(
      useMaterial3: true,
      colorScheme: colorScheme,
    );
  }
}
