@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

@custom-variant dark (&:is(.dark *));
@config "../../tailwind.config.js";

/* SF Pro Display - local font */
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-ThinItalic.otf") format("opentype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-UltralightItalic.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-SemiboldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-HeavyItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/font/SF-Pro-Display-BlackItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-sans);
  --font-mono: var(--font-geist-mono);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 2px);
  --radius-2xl: calc(var(--radius) + 6px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);
}

:root {
  --font-sans: "SF Pro Display", system-ui, -apple-system, sans-serif;
  --background: oklch(1 0 0);
  --foreground: oklch(0 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.58 0.22 27);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.809 0.105 251.813);
  --chart-2: oklch(0.623 0.214 259.815);
  --chart-3: oklch(0.546 0.245 262.881);
  --chart-4: oklch(0.488 0.243 264.376);
  --chart-5: oklch(0.424 0.199 265.638);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.87 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.371 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --chart-1: oklch(0.809 0.105 251.813);
  --chart-2: oklch(0.623 0.214 259.815);
  --chart-3: oklch(0.546 0.245 262.881);
  --chart-4: oklch(0.488 0.243 264.376);
  --chart-5: oklch(0.424 0.199 265.638);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground text-body-body font-sans;
  }
  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }
}

@supports (scrollbar-width: auto) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #bebdbf #ffffff;
  }
}

@supports selector(::-webkit-scrollbar) {
  *::-webkit-scrollbar {
    position: absolute;
    max-height: 8px; /* height of horizontal scrollbar ← You're missing this */
    max-width: 8px; /* width of vertical scrollbar */
  }

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

  *::-webkit-scrollbar-thumb {
    background-color: #bebdbf;
    border-radius: 100px;
  }
}

.toaster-size-default [data-sonner-toast] [data-icon],
.toaster-size-default .toast-icon {
  width: 40px !important;
  height: 40px !important;
  margin: 0px !important;
}

.toaster-size-lg [data-sonner-toast] [data-icon],
.toaster-size-lg .toast-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0px !important;
}

/* Per-toast size when <Toaster> uses the other preset */
.toaster-size-default [data-sonner-toast].cn-toast--lg [data-icon],
.toaster-size-default [data-sonner-toast].cn-toast--lg .toast-icon {
  width: 64px !important;
  height: 64px !important;
}

.toaster-size-lg [data-sonner-toast].cn-toast--default [data-icon],
.toaster-size-lg [data-sonner-toast].cn-toast--default .toast-icon {
  width: 40px !important;
  height: 40px !important;
}

[data-sonner-toast].cn-toast--default[data-styled="true"] {
  font-size: 16px;
  line-height: 24px;
}
[data-sonner-toast].cn-toast--default[data-styled="true"] [data-title] {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
[data-sonner-toast].cn-toast--lg[data-styled="true"] {
  font-size: 24px;
  line-height: 36px;
}
[data-sonner-toast].cn-toast--lg[data-styled="true"] [data-title] {
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
}

[data-sonner-toaster][data-sonner-theme="dark"] [data-description] {
  color: black !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
}
[data-sonner-toast][data-styled="true"] [data-content] {
  gap: 8px !important;
}

[data-sonner-toast][data-expanded="true"] {
  height: auto !important;
}

body:not(.recaptcha-signup-route) .grecaptcha-badge {
  display: none !important;
}

.swagger-ui {
  font-family: var(--font-sans) !important;
  transition: all 0.75s ease-in-out !important;
}
.swagger-ui .information-container.wrapper {
  display: none !important;
}
.swagger-ui .scheme-container {
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.swagger-ui .scheme-container .schemes-server-container {
  width: 100% !important;
}
.swagger-ui .scheme-container .schemes-server-container > div {
  width: 100% !important;
}

.swagger-ui .opblock-tag {
  margin-bottom: 16px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
}

.swagger-ui .scheme-container .wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.swagger-ui .scheme-container .schemes.wrapper.block.col-12 {
  padding: 0 !important;
  margin: 0 !important;
}

/* Align Swagger servers select with app SelectTrigger style */
.swagger-ui .servers > label {
  width: 100% !important;
  margin: 0 !important;
}

.swagger-ui .servers-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  color: black !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
  user-select: none !important;
}

.swagger-ui .auth-wrapper {
  display: none !important;
}
.swagger-ui .wrapper {
  padding: 0 !important;
  transition: all 0.75s ease-in-out !important;
}
.swagger-ui .wrapper .block.col-12.block-desktop.col-12-desktop {
  margin-top: 64px !important;
}

.swagger-ui .servers > label select#servers {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important; /* match data-[size=sm]:h-10 */
  padding: 0 40px 0 16px !important; /* right space for caret */
  border: 1px solid color-mix(in srgb, #303030 29%, transparent) !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  color: black !important;
  font-size: 16px !important;
  line-height: 24px !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}
.swagger-ui .servers > label select#servers:hover {
  cursor: pointer;
}

.swagger-ui .servers > label select#servers:focus,
.swagger-ui .servers > label select#servers:focus-visible {
  outline: none !important;
  border-color: #3393ff !important;
}
.swagger-ui .servers > label select#servers > option {
  color: black !important;
  background-color: #ffffff !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
}
.swagger-ui .servers > label select#servers option:checked {
  color: #ffffff !important;
  background-color: var(--color-blue-2) !important;
}
.swagger-ui .servers > label select#servers option:hover {
  background-color: #f5f6f7 !important;
}
