@import "tailwindcss";
@import "tw-animate-css";

/* ============================================================
   Theme Variables — Light mode only (dark mode removed for now)
   ============================================================ */

:root {
  /* --- Font defaults --- */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* --- shadcn theme variables (light mode) --- */
  --radius: 0.5rem;
  --background: #FFFFFF;
  --foreground: #37352F;
  --card: #FFFFFF;
  --card-foreground: #37352F;
  --popover: #FFFFFF;
  --popover-foreground: #37352F;
  --primary: #155DFF;
  --primary-foreground: #FFFFFF;
  --secondary: #EBEBEA;
  --secondary-foreground: #37352F;
  --muted: #F0F0EF;
  --muted-foreground: #787774;
  --accent: #EBEBEA;
  --accent-foreground: #37352F;
  --destructive: #E03E3E;
  --destructive-foreground: #FFFFFF;
  --border: #E9E9E7;
  --input: #E9E9E7;
  --ring: #155DFF;
  --sidebar: #F7F6F3;
  --sidebar-foreground: #37352F;
  --sidebar-primary: #155DFF;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #EBEBEA;
  --sidebar-accent-foreground: #37352F;
  --sidebar-border: #E9E9E7;
  --sidebar-ring: #155DFF;

  /* --- App-specific variables (light mode) --- */
  color-scheme: light;
  --bg-primary: #FFFFFF;
  --bg-sidebar: #F7F6F3;
  --bg-card: #FFFFFF;
  --bg-hover: #EBEBEA;
  --bg-hover-subtle: #F0F0EF;
  --bg-selected: #E8F4FE;
  --bg-input: #FFFFFF;
  --bg-button: #EBEBEA;
  --bg-dialog: #FFFFFF;
  --text-primary: #37352F;
  --text-secondary: #787774;
  --text-tertiary: #787774;
  --text-muted: #B4B4B4;
  --text-faint: #B4B4B4;
  --text-heading: #37352F;
  --accent-blue: #155DFF;
  --accent-blue-bg: #155DFF18;
  --accent-blue-hover: #0D4AD6;
  --accent-green: #38A169;
  --accent-orange: #D9730D;
  --accent-orange-light: rgba(217, 115, 13, 0.1);
  --accent-red: #E53E3E;
  --accent-purple: #805AD5;
  --accent-yellow: #D69E2E;
  --accent-blue-light: #155DFF14;
  --accent-green-light: rgba(56, 161, 105, 0.1);
  --accent-purple-light: rgba(128, 90, 213, 0.1);
  --accent-red-light: rgba(229, 62, 62, 0.1);
  --accent-yellow-light: rgba(214, 158, 46, 0.1);
  --accent-teal: #319795;
  --accent-teal-light: rgba(49, 151, 149, 0.1);
  --accent-pink: #D53F8C;
  --accent-pink-light: rgba(213, 63, 140, 0.1);
  --border-primary: #E9E9E7;
  --border-subtle: #E9E9E7;
  --border-input: #E9E9E7;
  --border-dialog: #E9E9E7;
  --link-color: #155DFF;
  --link-hover: #0D4AD6;
  --shadow-overlay: rgba(0, 0, 0, 0.3);
  --shadow-dialog: rgba(0, 0, 0, 0.15);
}

/* Dark mode variables removed — light mode only for now */

/* --- Tailwind v4 theme inline: register colors + radii --- */
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
}

/* --- Base layer --- */
@layer base {
  * {
    @apply border-border;
    box-sizing: border-box;
  }
  body {
    @apply bg-background text-foreground;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  #root {
    width: 100vw;
    height: 100vh;
  }
}

/* --- IBM Plex Mono label styles (from typography scale) --- */
/* t8: Section labels, metadata tags — 11px medium */
.font-mono-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

/* t9: Overlines, category labels — 10px regular */
.font-mono-overline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
