/* Critical CSS for Safari - loaded before Vite modules */
/* This prevents the "black and white" flash on Safari iOS */
/* Note: Fonts are loaded via <link> tags in index.html to avoid duplicate waterfall */

:root {
  --font-body: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Solarized Light Theme */
  --background: 44 20% 95%;
  --foreground: 44 10% 20%;
  
  --card: 44 20% 92%;
  --card-foreground: 44 10% 20%;

  --popover: 44 20% 92%;
  --popover-foreground: 44 10% 20%;

  --primary: 24 95% 53%;
  --primary-foreground: 0 0% 100%;

  --secondary: 44 10% 88%;
  --secondary-foreground: 44 10% 20%;

  --muted: 44 10% 88%;
  --muted-foreground: 44 10% 40%;

  --accent: 24 95% 53%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;

  --border: 44 10% 80%;
  --input: 44 10% 80%;
  --ring: 24 95% 53%;

  --radius: 0.75rem;
}

.dark {
  /* Deep, rich dark theme for fintech */
  --background: 240 10% 4%;
  --foreground: 0 0% 100%;

  --card: 240 10% 6%;
  --card-foreground: 0 0% 100%;

  --popover: 240 10% 6%;
  --popover-foreground: 0 0% 100%;

  --primary: 24 95% 53%;
  --primary-foreground: 0 0% 100%;

  --secondary: 240 6% 10%;
  --secondary-foreground: 0 0% 98%;

  --muted: 240 6% 10%;
  --muted-foreground: 240 5% 65%;

  --accent: 24 95% 53%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;

  --border: 240 6% 10%;
  --input: 240 6% 10%;
  --ring: 24 95% 53%;
}

/* Essential base styles */
* {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Prevent flash of unstyled content */
#root {
  min-height: 100vh;
  background-color: hsl(var(--background));
}
