@import "tailwindcss";
@source not "../../.01_projects/**";
@source not "../../.claude/**";
@source not "../../scripts/**";
@source not "../../.planning/**";

/* =========================================================
   Design tokens — iamcavalli brand palette (Tailwind v4 @theme)
   ========================================================= */
@theme inline {
  /* Font */
  --font-sans: var(--font-geist-sans), system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: var(--font-geist-mono);

  /* Base */
  --color-background:   #ffffff;
  --color-foreground:   #1a1a1a;

  /* Brand primary — verde scuro iamcavalli */
  --color-primary:             #1A463C;
  --color-primary-foreground:  #ffffff;

  /* Brand accent — giallo lime */
  --color-accent:              #DEF168;
  --color-accent-foreground:   #1A463C;

  /* Secondary — grigio neutro */
  --color-secondary:           #f4f4f5;
  --color-secondary-foreground: #1a1a1a;

  /* Muted — per testi e sfondi secondari */
  --color-muted:               #f9f9f9;
  --color-muted-foreground:    #71717a;

  /* Destructive */
  --color-destructive:             #ef4444;
  --color-destructive-foreground:  #ffffff;

  /* Card */
  --color-card:             #ffffff;
  --color-card-foreground:  #1a1a1a;

  /* Popover */
  --color-popover:             #ffffff;
  --color-popover-foreground:  #1a1a1a;

  /* Border / Input / Ring */
  --color-border: #e5e7eb;
  --color-input:  #e5e7eb;
  --color-ring:   #1A463C;

  /* Semantic — stato task/pagamenti */
  --color-success: #16a34a;
  --color-warning: #ca8a04;
  --color-info:    #2563eb;

  /* Legacy — usati inline nei componenti esistenti */
  --color-tertiary:     #999999;
  --color-bg-subtle:    #f9f9f9;
  --color-border-light: #e5e5e5;
}

/* =========================================================
   Base styles
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #171717;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}