@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --button-outline: rgba(0,0,0, .10);
  --badge-outline: rgba(0,0,0, .05);
  --opaque-button-border-intensity: -8;
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);
  --background: 0 0% 100%;
  --foreground: 220 13% 13%;
  --border: 220 13% 91%;
  --card: 0 0% 98%;
  --card-foreground: 220 13% 13%;
  --card-border: 0 0% 95%;
  --sidebar: 220 9% 96%;
  --sidebar-foreground: 220 13% 13%;
  --sidebar-border: 220 9% 92%;
  --sidebar-primary: 351 69% 44%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 220 9% 92%;
  --sidebar-accent-foreground: 220 13% 13%;
  --sidebar-ring: 351 69% 44%;
  --popover: 220 9% 94%;
  --popover-foreground: 220 13% 13%;
  --popover-border: 220 9% 90%;
  --primary: 351 69% 44%;
  --primary-foreground: 0 0% 98%;
  --secondary: 220 9% 90%;
  --secondary-foreground: 220 13% 13%;
  --muted: 220 9% 92%;
  --muted-foreground: 220 9% 40%;
  --accent: 220 14% 91%;
  --accent-foreground: 220 13% 13%;
  --destructive: 0 84% 45%;
  --destructive-foreground: 0 0% 98%;
  --input: 220 13% 75%;
  --ring: 351 69% 44%;
  --chart-1: 351 69% 44%;
  --chart-2: 220 70% 50%;
  --chart-3: 160 60% 35%;
  --chart-4: 280 65% 40%;
  --chart-5: 25 85% 45%;
  --font-sans: Inter, sans-serif;
  --font-content: Roboto, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, monospace;
  --radius: .5rem;
  --success: 160 84% 39%;
  --success-foreground: 0 0% 98%;
  --shadow-2xs: 0px 2px 0px 0px hsl(220 13% 13% / 0.00);
  --shadow-xs: 0px 2px 0px 0px hsl(220 13% 13% / 0.00);
  --shadow-sm: 0px 2px 0px 0px hsl(220 13% 13% / 0.00), 0px 1px 2px -1px hsl(220 13% 13% / 0.00);
  --shadow: 0px 2px 0px 0px hsl(220 13% 13% / 0.00), 0px 1px 2px -1px hsl(220 13% 13% / 0.00);
  --shadow-md: 0px 2px 0px 0px hsl(220 13% 13% / 0.00), 0px 2px 4px -1px hsl(220 13% 13% / 0.00);
  --shadow-lg: 0px 2px 0px 0px hsl(220 13% 13% / 0.00), 0px 4px 6px -1px hsl(220 13% 13% / 0.00);
  --shadow-xl: 0px 2px 0px 0px hsl(220 13% 13% / 0.00), 0px 8px 10px -1px hsl(220 13% 13% / 0.00);
  --shadow-2xl: 0px 2px 0px 0px hsl(220 13% 13% / 0.00);
  --tracking-normal: 0em;
  --spacing: 0.25rem;
}

.dark {
  --button-outline: rgba(255,255,255, .10);
  --badge-outline: rgba(255,255,255, .05);
  --opaque-button-border-intensity: 9;
  --elevate-1: rgba(255,255,255, .04);
  --elevate-2: rgba(255,255,255, .09);
  --background: 220 13% 9%;
  --foreground: 0 0% 98%;
  --border: 220 13% 18%;
  --card: 220 13% 11%;
  --card-foreground: 0 0% 98%;
  --card-border: 220 13% 14%;
  --sidebar: 220 13% 13%;
  --sidebar-foreground: 0 0% 98%;
  --sidebar-border: 220 13% 17%;
  --sidebar-primary: 351 69% 44%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 220 13% 16%;
  --sidebar-accent-foreground: 0 0% 98%;
  --sidebar-ring: 351 69% 44%;
  --popover: 220 13% 15%;
  --popover-foreground: 0 0% 98%;
  --popover-border: 220 13% 19%;
  --primary: 351 69% 44%;
  --primary-foreground: 0 0% 98%;
  --secondary: 220 13% 18%;
  --secondary-foreground: 0 0% 98%;
  --muted: 220 13% 17%;
  --muted-foreground: 220 9% 65%;
  --accent: 220 14% 16%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 84% 45%;
  --destructive-foreground: 0 0% 98%;
  --input: 220 13% 30%;
  --ring: 351 69% 44%;
  --chart-1: 351 69% 60%;
  --chart-2: 220 70% 65%;
  --chart-3: 160 60% 55%;
  --chart-4: 280 65% 60%;
  --chart-5: 25 85% 60%;
  --success: 160 84% 39%;
  --success-foreground: 0 0% 98%;
  --shadow-2xs: 0px 2px 0px 0px hsl(220 13% 9% / 0.00);
  --shadow-xs: 0px 2px 0px 0px hsl(220 13% 9% / 0.00);
  --shadow-sm: 0px 2px 0px 0px hsl(220 13% 9% / 0.00), 0px 1px 2px -1px hsl(220 13% 9% / 0.00);
  --shadow: 0px 2px 0px 0px hsl(220 13% 9% / 0.00), 0px 1px 2px -1px hsl(220 13% 9% / 0.00);
  --shadow-md: 0px 2px 0px 0px hsl(220 13% 9% / 0.00), 0px 2px 4px -1px hsl(220 13% 9% / 0.00);
  --shadow-lg: 0px 2px 0px 0px hsl(220 13% 9% / 0.00), 0px 4px 6px -1px hsl(220 13% 9% / 0.00);
  --shadow-xl: 0px 2px 0px 0px hsl(220 13% 9% / 0.00), 0px 8px 10px -1px hsl(220 13% 9% / 0.00);
  --shadow-2xl: 0px 2px 0px 0px hsl(220 13% 9% / 0.00);
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply font-sans antialiased bg-background text-foreground;
  }
}

@layer utilities {
  input[type="search"]::-webkit-search-cancel-button {
    @apply hidden;
  }

  [contenteditable][data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
  }

  .no-default-hover-elevate {}
  .no-default-active-elevate {}

  .toggle-elevate::before,
  .toggle-elevate-2::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    z-index: -1;
  }

  .toggle-elevate.toggle-elevated::before {
    background-color: var(--elevate-2);
  }

  .border.toggle-elevate::before {
    inset: -1px;
  }

  .hover-elevate:not(.no-default-hover-elevate),
  .active-elevate:not(.no-default-active-elevate),
  .hover-elevate-2:not(.no-default-hover-elevate),
  .active-elevate-2:not(.no-default-active-elevate) {
    position: relative;
    z-index: 0;
  }

  .hover-elevate:not(.no-default-hover-elevate)::after,
  .active-elevate:not(.no-default-active-elevate)::after,
  .hover-elevate-2:not(.no-default-hover-elevate)::after,
  .active-elevate-2:not(.no-default-active-elevate)::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    z-index: 999;
  }

  .hover-elevate:hover:not(.no-default-hover-elevate)::after,
  .active-elevate:active:not(.no-default-active-elevate)::after {
    background-color: var(--elevate-1);
  }

  .hover-elevate-2:hover:not(.no-default-hover-elevate)::after,
  .active-elevate-2:active:not(.no-default-active-elevate)::after {
    background-color: var(--elevate-2);
  }

  .border.hover-elevate:not(.no-hover-interaction-elevate)::after,
  .border.active-elevate:not(.no-active-interaction-elevate)::after,
  .border.hover-elevate-2:not(.no-hover-interaction-elevate)::after,
  .border.active-elevate-2:not(.no-active-interaction-elevate)::after,
  .border.hover-elevate:not(.no-hover-interaction-elevate)::after {
    inset: -1px;
  }

  .animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .animate-slide-up {
    animation: slideUp 0.8s ease-out;
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .text-gradient {
    background: linear-gradient(to right, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .card-hover {
    transition: all 0.3s ease;
  }

  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
}