@import "tailwindcss";
@import "fumadocs-ui/css/neutral.css";
@import "fumadocs-ui/css/preset.css";
@import "tw-animate-css";

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@theme {
  /* Fonts */
  --font-sans:
    var(--font-geist-sans), -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  --font-mono:
    var(--font-geist-mono), "JetBrains Mono", ui-monospace, monospace;

  /* Brand colors (constant across themes) */
  --color-primary: #f97316;
  --color-primary-foreground: #ffffff;
  --color-destructive: #ef4444;
  --color-destructive-foreground: #f5f5f5;
  --color-ring: #f97316;

  --radius: 8px;

  /* Animations */
  --animate-marquee: marquee 60s linear infinite;
  --animate-marquee-reverse: marquee-reverse 60s linear infinite;
  --animate-shimmer: shimmer 2s linear infinite;
  --animate-fade-in-up: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  --animate-slide-down: slide-down 0.3s ease-out both;
  --animate-draw-line: draw-line 1.5s ease-out forwards;
  --animate-pulse-glow: pulse-glow 3s ease-in-out infinite;
  --animate-float: float 6s ease-in-out infinite;
  --animate-scale-in: scale-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  --animate-slide-in-left: slide-in-left 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  --animate-slide-in-right: slide-in-right 0.7s cubic-bezier(0.16, 1, 0.3, 1)
    both;
  --animate-chart-draw: chart-draw 1.8s ease-out forwards;
  --animate-bar-fill: bar-fill 1s ease-out forwards;
  --animate-node-pulse: node-pulse 2s ease-in-out infinite;
  --animate-flow-right: flow-right 0.8s linear infinite;
  --animate-flow-left: flow-left 0.8s linear infinite;
  --animate-envelope-float-in: envelope-float-in 0.6s
    cubic-bezier(0.34, 1.56, 0.64, 1) both;
  --animate-checkmark-draw: checkmark-draw 0.5s ease-out forwards;
  --animate-confetti-fall: confetti-fall 1s ease-out forwards;
  --animate-progress-glow: progress-glow 2s ease-in-out infinite;
  --animate-spin-slow: spin-slow 3s linear infinite;
  --animate-border-spin: border-glow-rotate 4s linear infinite;
  --animate-blob-1: blob-drift-1 20s ease-in-out infinite alternate;
  --animate-blob-2: blob-drift-2 25s ease-in-out infinite alternate;
  --animate-blob-3: blob-drift-3 18s ease-in-out infinite alternate;
}

/* Light theme (default) */
:root {
  --color-background: #fafafa;
  --color-foreground: #171717;
  --color-secondary: #f5f5f5;
  --color-secondary-foreground: #171717;
  --color-muted: #f0f0f0;
  --color-muted-foreground: #737373;
  --color-card: #ffffff;
  --color-card-foreground: #171717;
  --color-border: #e5e5e5;
  --color-input: #e5e5e5;
  --color-accent: #f5f5f5;
  --color-accent-foreground: #171717;
  --color-popover: #ffffff;
  --color-popover-foreground: #171717;
  /* Landing-page specific tokens */
  --landing-bg: #fafafa;
  --landing-surface: #ffffff;
  --landing-surface-2: #f5f5f5;
  --landing-text: #171717;
  --landing-text-secondary: #525252;
  --landing-text-tertiary: #a3a3a3;
  --landing-border: #e5e5e5;
  --landing-border-hover: #d4d4d4;
  --landing-code-bg: #f5f5f5;
  --landing-glow: rgba(249, 115, 22, 0.08);
}

/* Dark theme */
.dark {
  --color-background: #0a0a0a;
  --color-foreground: #f5f5f5;
  --color-secondary: #111111;
  --color-secondary-foreground: #f5f5f5;
  --color-muted: #1a1a1a;
  --color-muted-foreground: #a1a1a1;
  --color-card: #111111;
  --color-card-foreground: #f5f5f5;
  --color-border: #1e1e1e;
  --color-input: #1e1e1e;
  --color-accent: #1a1a1a;
  --color-accent-foreground: #f5f5f5;
  --color-popover: #111111;
  --color-popover-foreground: #f5f5f5;
  --landing-bg: #0a0a0a;
  --landing-surface: #111111;
  --landing-surface-2: #1a1a1a;
  --landing-text: #f5f5f5;
  --landing-text-secondary: #a1a1a1;
  --landing-text-tertiary: #666666;
  --landing-border: #1e1e1e;
  --landing-border-hover: #2a2a2a;
  --landing-code-bg: #0d0d0d;
  --landing-glow: rgba(249, 115, 22, 0.15);
}

/* ---- Keyframes ---- */

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes draw-line {
  from {
    stroke-dashoffset: var(--line-length, 1000);
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes chart-draw {
  from {
    stroke-dashoffset: var(--path-length, 500);
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bar-fill {
  from {
    width: 0%;
  }
  to {
    width: var(--bar-width, 100%);
  }
}

@keyframes node-pulse {
  0%,
  100% {
    r: var(--node-r, 4);
    opacity: 0.7;
  }
  50% {
    r: calc(var(--node-r, 4) * 1.4);
    opacity: 1;
  }
}

@keyframes flow-right {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 14px;
  }
}

@keyframes flow-left {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -14px;
  }
}

@keyframes envelope-float-in {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkmark-draw {
  from {
    stroke-dashoffset: 48;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate(var(--x, 0), var(--y, 0)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--x, 0) * 3), calc(var(--y, 0) * 3)) scale(0);
  }
}

@keyframes progress-glow {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(249, 115, 22, 0.3);
  }
  50% {
    box-shadow:
      0 0 16px rgba(249, 115, 22, 0.6),
      0 0 32px rgba(249, 115, 22, 0.2);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes border-glow-rotate {
  to {
    --border-angle: 360deg;
  }
}

@keyframes blob-drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 30px) scale(1.05);
  }
  100% {
    transform: translate(-20px, 60px) scale(0.97);
  }
}

@keyframes blob-drift-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 25px) scale(1.08);
  }
  100% {
    transform: translate(30px, -30px) scale(0.94);
  }
}

@keyframes blob-drift-3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(25px, -20px) scale(1.06);
  }
  100% {
    transform: translate(-15px, 15px) scale(0.98);
  }
}

/* ---- Base ---- */

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

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ---- Utilities ---- */

.text-gradient {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-orange {
  box-shadow:
    0 0 40px rgba(249, 115, 22, 0.15),
    0 0 80px rgba(249, 115, 22, 0.05);
}

.glow-border-spin {
  --border-angle: 0deg;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--landing-surface), var(--landing-surface)) padding-box,
    conic-gradient(
        from var(--border-angle),
        var(--landing-border) 0%,
        rgba(249, 115, 22, 0.7) 8%,
        rgba(251, 146, 60, 0.5) 16%,
        var(--landing-border) 28%,
        var(--landing-border) 100%
      )
      border-box;
  animation: border-glow-rotate 4s linear infinite;
}

.glow-text {
  text-shadow:
    0 0 20px rgba(249, 115, 22, 0.35),
    0 0 40px rgba(249, 115, 22, 0.12);
}

.cursor-blink {
  animation: blink 1.2s step-end infinite;
}

.terminal-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: #f97316;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
}

.glass-border {
  position: relative;
}

.glass-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(249, 115, 22, 0.3) 0%,
    transparent 40%
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-border:hover::before {
  opacity: 1;
}

.glass-border-always::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(249, 115, 22, 0.3) 0%,
    transparent 40%
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 1;
}

.hover-pause:hover > * {
  animation-play-state: paused;
}

/* Landing page: browser revert + Tailwind utility compatibility */
.landing-default-typography {
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: normal;
}

.landing-default-typography
  :where(
    h1:not([class]),
    h2:not([class]),
    h3:not([class]),
    h4:not([class]),
    h5:not([class]),
    h6:not([class]),
    p:not([class]),
    ul:not([class]),
    ol:not([class]),
    li:not([class]),
    blockquote:not([class])
  ) {
  font-size: revert;
  font-size: revert-layer;
  line-height: revert;
  line-height: revert-layer;
  letter-spacing: revert;
  letter-spacing: revert-layer;
  margin: revert;
}

/* Code line numbers */
.line-num::before {
  content: attr(data-line);
  display: inline-block;
  width: 2rem;
  text-align: right;
  margin-right: 1.5rem;
  color: #525252;
  user-select: none;
}

/* ---- Blog prose ---- */

.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--landing-text-secondary);
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4,
.blog-prose h5,
.blog-prose h6 {
  color: var(--landing-text);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.blog-prose h1 {
  font-size: 2rem;
}
.blog-prose h2 {
  font-size: 1.5rem;
}
.blog-prose h3 {
  font-size: 1.25rem;
}
.blog-prose h4 {
  font-size: 1.125rem;
}

.blog-prose p {
  margin-bottom: 1.25em;
}

.blog-prose a {
  color: #f97316;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.blog-prose a:hover {
  color: #fb923c;
}

.blog-prose strong {
  color: var(--landing-text);
  font-weight: 600;
}

.blog-prose ul,
.blog-prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.blog-prose ul {
  list-style-type: disc;
}

.blog-prose ol {
  list-style-type: decimal;
}

.blog-prose li {
  margin-bottom: 0.5em;
}

.blog-prose li > ul,
.blog-prose li > ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}

.blog-prose blockquote {
  border-left: 3px solid #f97316;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--landing-text-tertiary);
}

.blog-prose code {
  background: var(--landing-code-bg);
  border: 1px solid var(--landing-border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.875em;
  font-family: var(--font-mono);
  color: #f97316;
}

.blog-prose pre {
  background: var(--landing-code-bg);
  border: 1px solid var(--landing-border);
  border-radius: 8px;
  padding: 1em 1.25em;
  margin: 1.5em 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}

.blog-prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.blog-prose hr {
  border: none;
  border-top: 1px solid var(--landing-border);
  margin: 2em 0;
}

.blog-prose img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5em 0;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.blog-prose th,
.blog-prose td {
  border: 1px solid var(--landing-border);
  padding: 0.625em 1em;
  text-align: left;
}

.blog-prose th {
  background: var(--landing-code-bg);
  color: var(--landing-text);
  font-weight: 600;
}

.blog-prose input[type="checkbox"] {
  margin-right: 0.5em;
  accent-color: #f97316;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ---- Dashboard utilities ---- */

.dash-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.dark .dash-card {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 4px rgba(0, 0, 0, 0.1);
}

.dash-card:hover {
  border-color: var(--landing-border-hover);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.dark .dash-card:hover {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.dash-card-interactive:hover {
  transform: translateY(-1px);
}

/* Collapsible animation */
[data-slot="collapsible-content"] {
  overflow: hidden;
}

[data-slot="collapsible-content"][data-state="open"] {
  animation: collapsible-open 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

[data-slot="collapsible-content"][data-state="closed"] {
  animation: collapsible-closed 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes collapsible-open {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--radix-collapsible-content-height);
    opacity: 1;
  }
}

@keyframes collapsible-closed {
  from {
    height: var(--radix-collapsible-content-height);
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}

.sidebar-active-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
  animation: sidebar-indicator-in 300ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes sidebar-indicator-in {
  from {
    opacity: 0;
    height: 0;
  }
  to {
    opacity: 1;
    height: 60%;
  }
}

/* ---- Fumadocs theme overrides ---- */

/* Orange-accented docs theme (light) */
:root {
  --color-fd-primary: hsl(24 95% 53%); /* #F97316 */
  --color-fd-primary-foreground: hsl(0 0% 100%); /* white */
  --color-fd-ring: hsl(24 95% 53%);
  --color-fd-background: hsl(0 0% 98%);
  --color-fd-foreground: hsl(0 0% 9%);
  --color-fd-muted: hsl(0 0% 96%);
  --color-fd-muted-foreground: hsl(0 0% 45%);
  --color-fd-card: hsl(0 0% 100%);
  --color-fd-card-foreground: hsl(0 0% 9%);
  --color-fd-border: hsl(0 0% 90%);
  --color-fd-popover: hsl(0 0% 100%);
  --color-fd-popover-foreground: hsl(0 0% 15%);
  --color-fd-secondary: hsl(0 0% 96%);
  --color-fd-secondary-foreground: hsl(0 0% 9%);
  --color-fd-accent: hsl(24 100% 97%); /* light orange tint */
  --color-fd-accent-foreground: hsl(24 95% 40%);
}

/* Orange-accented docs theme (dark) */
.dark {
  --color-fd-primary: hsl(24 95% 53%); /* #F97316 */
  --color-fd-primary-foreground: hsl(0 0% 100%);
  --color-fd-ring: hsl(24 95% 53%);
  --color-fd-background: hsl(0 0% 4%);
  --color-fd-foreground: hsl(0 0% 96%);
  --color-fd-muted: hsl(0 0% 10%);
  --color-fd-muted-foreground: hsl(0 0% 63%);
  --color-fd-card: hsl(0 0% 7%);
  --color-fd-card-foreground: hsl(0 0% 98%);
  --color-fd-border: hsl(0 0% 12%);
  --color-fd-popover: hsl(0 0% 7%);
  --color-fd-popover-foreground: hsl(0 0% 88%);
  --color-fd-secondary: hsl(0 0% 10%);
  --color-fd-secondary-foreground: hsl(0 0% 98%);
  --color-fd-accent: hsl(24 50% 8%); /* dark orange tint */
  --color-fd-accent-foreground: hsl(24 95% 65%);
}

/* Docs: accent color on links */
.fd-page a:not([class]) {
  color: #f97316;
  text-decoration-color: rgba(249, 115, 22, 0.3);
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}

.fd-page a:not([class]):hover {
  color: #ea580c;
  text-decoration-color: #ea580c;
}

/* Docs: accent color on inline code */
.fd-page :not(pre) > code {
  color: #f97316;
  background: hsl(24 100% 97%);
  border: 1px solid hsl(24 80% 92%);
}

.dark .fd-page :not(pre) > code {
  color: #fb923c;
  background: hsl(24 50% 8%);
  border-color: hsl(24 40% 15%);
}

/* Docs: accent on blockquote left border */
.fd-page blockquote {
  border-left-color: #f97316;
}

/* Docs: accent on table header border */
.fd-page th {
  border-bottom-color: rgba(249, 115, 22, 0.3);
}

/* Docs: sidebar active item — orange text, orange-tinted bg, no grey */
#nd-sidebar [data-active="true"] {
  color: hsl(24 95% 53%) !important;
  background-color: hsl(24 95% 53% / 0.1) !important;
}

.dark #nd-sidebar [data-active="true"] {
  color: hsl(24 95% 63%) !important;
  background-color: hsl(24 95% 53% / 0.12) !important;
}

/* Docs: sidebar & page same background — no white/grey split */
#nd-sidebar {
  background-color: var(--color-fd-background) !important;
}

/* Docs: sidebar header — more horizontal padding on logo only */
#nd-sidebar > div > div:first-child > a:first-child {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Docs: accordion trigger accent on hover */
.fd-page [data-orientation="vertical"] button:hover {
  color: #f97316;
}

/* Docs: hide TOC progress bar on desktop (sidebar TOC is sufficient) */
@media (min-width: 768px) {
  #nd-tocnav {
    display: none !important;
  }

  :root:has(#nd-tocnav) {
    --fd-tocnav-height: 0px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--landing-border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--landing-text-tertiary);
}

@keyframes rdp-slide_in_left {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes rdp-slide_in_right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes rdp-slide_out_left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes rdp-slide_out_right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes rdp-fade_in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rdp-fade_out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.rdp-weeks_before_enter {
  animation: rdp-slide_in_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_before_exit {
  animation: rdp-slide_out_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_after_enter {
  animation: rdp-slide_in_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_after_exit {
  animation: rdp-slide_out_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_after_enter {
  animation: rdp-slide_in_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_before_exit {
  animation: rdp-slide_out_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_before_enter {
  animation: rdp-slide_in_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_after_exit {
  animation: rdp-slide_out_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_after_enter {
  animation: rdp-fade_in var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_after_exit {
  animation: rdp-fade_out var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_before_enter {
  animation: rdp-fade_in var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_before_exit {
  animation: rdp-fade_out var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}
