import 'package:flutter/material.dart'; class AppTheme { static const primaryColor = Color(0xFF1E40AF); static const accentColor = Color(0xFFF97316); static const successColor = Color(0xFF16A34A); static const warningColor = Color(0xFFD97706); static const dangerColor = Color(0xFFDC2626); static const bgColor = Color(0xFFF1F5F9); static const cardColor = Colors.white; static const textPrimary = Color(0xFF1E293B); static const textSecondary = Color(0xFF64748B); static ThemeData get light => ThemeData( primaryColor: primaryColor, colorScheme: ColorScheme.fromSwatch().copyWith( primary: primaryColor, secondary: accentColor, ), scaffoldBackgroundColor: bgColor, appBarTheme: const AppBarTheme( backgroundColor: primaryColor, foregroundColor: Colors.white, elevation: 0, centerTitle: false, ), cardTheme: CardTheme( color: cardColor, elevation: 2, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 6), ), elevatedButtonTheme: ElevatedButtonThemeData( style: ElevatedButton.styleFrom( primary: primaryColor, onPrimary: Colors.white, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)), padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 14), elevation: 2, ), ), inputDecorationTheme: InputDecorationTheme( filled: true, fillColor: Colors.white, border: OutlineInputBorder( borderRadius: BorderRadius.circular(10), borderSide: const BorderSide(color: Color(0xFFCBD5E1)), ), enabledBorder: OutlineInputBorder( borderRadius: BorderRadius.circular(10), borderSide: const BorderSide(color: Color(0xFFCBD5E1)), ), focusedBorder: OutlineInputBorder( borderRadius: BorderRadius.circular(10), borderSide: const BorderSide(color: primaryColor, width: 2), ), contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14), ), textTheme: const TextTheme( headline5: TextStyle(fontSize: 22, fontWeight: FontWeight.bold, color: textPrimary), headline6: TextStyle(fontSize: 18, fontWeight: FontWeight.w600, color: textPrimary), subtitle1: TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: textPrimary), subtitle2: TextStyle(fontSize: 14, fontWeight: FontWeight.w500, color: textSecondary), bodyText1: TextStyle(fontSize: 14, color: textPrimary), bodyText2: TextStyle(fontSize: 13, color: textSecondary), caption: TextStyle(fontSize: 12, color: textSecondary), ), bottomNavigationBarTheme: const BottomNavigationBarThemeData( backgroundColor: Colors.white, selectedItemColor: primaryColor, unselectedItemColor: Color(0xFF94A3B8), selectedLabelStyle: TextStyle(fontWeight: FontWeight.w600, fontSize: 11), unselectedLabelStyle: TextStyle(fontSize: 11), showUnselectedLabels: true, type: BottomNavigationBarType.fixed, elevation: 8, ), chipTheme: ChipThemeData( backgroundColor: const Color(0xFFE2E8F0), selectedColor: primaryColor, labelStyle: const TextStyle(fontSize: 12), padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)), ), ); static Color estadoColor(String estado) { switch (estado.toLowerCase()) { case 'confirmado': return successColor; case 'entregado': return const Color(0xFF0891B2); case 'cancelado': return dangerColor; default: return warningColor; } } }