@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

@import 'tailwindcss';

/* HTML Defaults */
body {
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

/* Tailwind Defaults */
@layer base {
  button:not(:disabled),
  [role='button']:not(:disabled) {
    cursor: pointer;
  }
}

@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentColor);
  }
}

/** Theming */
@layer base {
  :root {
    --background: oklch(1 0 0);
    --foreground: oklch(0.27 0 0);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.27 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.27 0 0);
    --primary: oklch(62.3% 0.214 259.815);
    --primary-foreground: oklch(0 0 0);
    --secondary: oklch(0.97 0 264.54);
    --secondary-foreground: oklch(0.45 0.03 256.8);
    --muted: oklch(0.98 0 247.84);
    --muted-foreground: oklch(0.55 0.02 264.36);
    --accent: oklch(0.99 0.02 95.28);
    --accent-foreground: oklch(0.47 0.12 46.2);
    --destructive: oklch(0.64 0.21 25.33);
    --destructive-foreground: oklch(1 0 0);
    --border: oklch(0.93 0.01 264.53);
    --input: oklch(0.93 0.01 264.53);
    --ring: oklch(0.77 0.16 70.08);
    --chart-1: oklch(0.77 0.16 70.08);
    --chart-2: oklch(0.67 0.16 58.32);
    --chart-3: oklch(0.56 0.15 49);
    --chart-4: oklch(0.47 0.12 46.2);
    --chart-5: oklch(0.41 0.11 45.9);
    --sidebar: oklch(0.98 0 247.84);
    --sidebar-foreground: oklch(0.27 0 0);
    --sidebar-primary: oklch(0.77 0.16 70.08);
    --sidebar-primary-foreground: oklch(1 0 0);
    --sidebar-accent: oklch(0.99 0.02 95.28);
    --sidebar-accent-foreground: oklch(0.47 0.12 46.2);
    --sidebar-border: oklch(0.93 0.01 264.53);
    --sidebar-ring: oklch(0.77 0.16 70.08);
    --radius: 0.375rem;
    --shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
    --shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
    --shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
    --shadow: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
    --shadow-md: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 2px 4px -2px hsl(0 0% 0% / 0.1);
    --shadow-lg: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 4px 6px -2px hsl(0 0% 0% / 0.1);
    --shadow-xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 8px 10px -2px hsl(0 0% 0% / 0.1);
    --shadow-2xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.25);
  }

  .dark {
    --background: oklch(0.2 0 0);
    --foreground: oklch(0.92 0 0);
    --card: oklch(0.27 0 0);
    --card-foreground: oklch(0.92 0 0);
    --popover: oklch(0.27 0 0);
    --popover-foreground: oklch(0.92 0 0);
    --primary: oklch(62.3% 0.214 259.815);
    --primary-foreground: oklch(0 0 0);
    --secondary: oklch(0.27 0 0);
    --secondary-foreground: oklch(0.92 0 0);
    --muted: oklch(0.27 0 0);
    --muted-foreground: oklch(0.72 0 0);
    --accent: oklch(0.47 0.12 46.2);
    --accent-foreground: oklch(0.92 0.12 95.75);
    --destructive: oklch(0.64 0.21 25.33);
    --destructive-foreground: oklch(1 0 0);
    --border: oklch(0.37 0 0);
    --input: oklch(0.37 0 0);
    --ring: oklch(0.77 0.16 70.08);
    --chart-1: oklch(0.84 0.16 84.43);
    --chart-2: oklch(0.67 0.16 58.32);
    --chart-3: oklch(0.47 0.12 46.2);
    --chart-4: oklch(0.56 0.15 49);
    --chart-5: oklch(0.47 0.12 46.2);
    --sidebar: oklch(0.17 0 0);
    --sidebar-foreground: oklch(0.92 0 0);
    --sidebar-primary: oklch(0.77 0.16 70.08);
    --sidebar-primary-foreground: oklch(1 0 0);
    --sidebar-accent: oklch(0.47 0.12 46.2);
    --sidebar-accent-foreground: oklch(0.92 0.12 95.75);
    --sidebar-border: oklch(0.37 0 0);
    --sidebar-ring: oklch(0.77 0.16 70.08);
    --font-sans: Inter, sans-serif;
    --font-serif: Source Serif 4, serif;
    --font-mono: JetBrains Mono, monospace;
    --radius: 0.375rem;
    --shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
    --shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
    --shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
    --shadow: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
    --shadow-md: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 2px 4px -2px hsl(0 0% 0% / 0.1);
    --shadow-lg: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 4px 6px -2px hsl(0 0% 0% / 0.1);
    --shadow-xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 8px 10px -2px hsl(0 0% 0% / 0.1);
    --shadow-2xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.25);
  }
}

@theme {
  --font-manrope: 'Manrope', 'sans-serif';
  /* --font-sans: Inter, sans-serif; */
  /* --font-serif: Source Serif 4, serif; */
  /* --font-mono: JetBrains Mono, monospace; */

  --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-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --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);

  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
  --font-serif: var(--font-serif);

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow: var(--shadow);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);

  --animate-fadeIn: fadeIn 200ms ease-out forwards;
  --animate-fadeOut: fadeOut 200ms ease-in forwards;
  --animate-flyUp: flyUp 200ms ease-out forwards;
  --animate-flyUpExit: flyUpExit 200ms ease-in forwards;

  --animate-flyUpAndScale: flyUpAndScale 200ms ease-out forwards;
  --animate-flyUpAndScaleExit: flyUpAndScaleExit 200ms ease-in forwards;

  --animate-flyRight: flyRight 200ms ease-out forwards;
  --animate-flyRightExit: flyRightExit 200ms ease-in forwards;

  --animate-flyLeft: flyLeft 200ms ease-out forwards;
  --animate-flyLeftExit: flyLeftExit 200ms ease-in forwards;

  /* --- Animations --- */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  @keyframes flyUp {
    from {
      opacity: 0;
      transform: translate(0px, 15px);
    }
    to {
      opacity: 1;
      transform: translate(0px, 0px);
    }
  }

  @keyframes flyUpAndScale {
    from {
      opacity: 0;
      transform: translate(0px, 15px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translate(0px, 0px) scale(1);
    }
  }

  @keyframes flyUpAndScaleExit {
    from {
      opacity: 1;
      transform: translate(0px, 0px) scale(1);
    }
    to {
      opacity: 0;
      transform: translate(0px, 15px) scale(0.98);
    }
  }

  @keyframes flyUpExit {
    from {
      opacity: 1;
      transform: translate(0px, 0px);
    }
    to {
      opacity: 0;
      transform: translate(0px, 15px);
    }
  }

  @keyframes flyRight {
    from {
      opacity: 0;
      transform: translate(-15px, 0px);
    }
    to {
      opacity: 1;
      transform: translate(0px, 0px);
    }
  }

  @keyframes flyRightExit {
    from {
      opacity: 1;
      transform: translate(0px, 0px);
    }
    to {
      opacity: 0;
      transform: translate(-15px, 0px);
    }
  }

  @keyframes flyLeft {
    from {
      opacity: 0;
      transform: translate(15px, 0px);
    }
    to {
      opacity: 1;
      transform: translate(0px, 0px);
    }
  }

  @keyframes flyLeftExit {
    from {
      opacity: 1;
      transform: translate(0px, 0px);
    }
    to {
      opacity: 0;
      transform: translate(15px, 0px);
    }
  }
}

/* https://github.com/tailwindlabs/tailwindcss-intellisense/issues/227#issuecomment-1221083129 */
@utility no-scrollbar {
  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    display: none;
  }
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
