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

/* Accordion animations */
@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}

.animate-accordion-down {
  animation: accordion-down 0.2s ease-out;
}

.animate-accordion-up {
  animation: accordion-up 0.2s ease-out;
}

:root {
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --radius: 1rem;
  --background: oklch(0.985 0 0);
  --foreground: oklch(0.145 0 0);
  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.455 0 0);
  --accent: oklch(0.89 0 0);
  --accent-foreground: oklch(0.145 0 0);
  --destructive: oklch(0.577 0.245 25.768);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.925 0 0);
  --input: oklch(0.925 0 0);
  --ring: oklch(0.145 0 0);
  --primary: oklch(0.145 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.96 0 0);
  --secondary-foreground: oklch(0.145 0 0);
}

.dark {
  --background: oklch(0.125 0 0);
  --foreground: oklch(0.985 0 0);
  --muted: oklch(0.229 0 0);
  --muted-foreground: oklch(0.655 0 0);
  --accent: oklch(0.229 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.577 0.245 25.768);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.229 0 0);
  --input: oklch(0.229 0 0);
  --ring: oklch(0.855 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.145 0 0);
  --secondary: oklch(0.229 0 0);
  --secondary-foreground: oklch(0.985 0 0);
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Ripple Pulse Loader */
.loader {
  --logo-color: #3b82f6; /* Blue-500 */
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader .box {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Circle is safer for pulse */
  background-color: #1e293b; /* Slate-800 */
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader .box:not(:first-child) {
  z-index: 1;
  background-color: rgba(59, 130, 246, 0.2); /* Blue tint */
  animation: ripple 2s infinite ease-in-out;
}
.loader .box:nth-child(1) {
  z-index: 10;
  background-color: #0f172a; /* Slate-900 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}
.loader .box:nth-child(2) { animation-delay: 0s; }
.loader .box:nth-child(3) { animation-delay: 0.5s; }
.loader .box:nth-child(4) { animation-delay: 1s; }
.loader .box:nth-child(5) { animation-delay: 1.5s; }
.loader .logo {
  width: 50%;
  height: 50%;
}
.loader .logo svg {
  width: 100%;
  height: 100%;
  animation: color-change 2s infinite ease-in-out;
}
@keyframes ripple {
  0% {
    transform: scale(1);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 10px -0px;
  }
  50% {
    transform: scale(1.3);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 30px 20px -0px;
  }
  100% {
    transform: scale(1);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 10px -0px;
  }
}
@keyframes color-change {
  0% {
    fill: var(--logo-color);
  }
  50% {
    fill: white;
  }
  100% {
    fill: var(--logo-color);
  }
}







