@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg-body: #f8fafc;
  --bg-app: #ffffff;
  --bg-chat: #f9fafb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-muted: #dbeafe;
  --border-color: #f1f5f9;
  --border-strong: #e2e8f0;
  --accent-yellow: #fbbf24;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-nav: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 2px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glass: 0 10px 40px -10px rgba(15, 23, 42, 0.15);
  --shadow-brand: 0 10px 15px -3px rgba(37, 99, 235, 0.25);
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 9999px;
  --radius-card: 1.25rem;
  --radius-card-lg: 1.5rem;
  --radius-hero: 2rem;
  --thumb-min: 48px;
  --layout-gutter: 1rem;
  --layout-gutter-md: 1.5rem;
  --layout-gutter-lg: 2rem;
  --layout-gutter-xl: 3rem;
  --layout-gutter-xxl: 4rem;
  --layout-max-width: none;
  --layout-read-form: 28rem;
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
}

@media (min-width: 768px) {
  :root {
    --layout-gutter: var(--layout-gutter-md);
  }
}

@media (min-width: 1024px) {
  :root {
    --layout-gutter: var(--layout-gutter-lg);
  }
}

@media (min-width: 1280px) {
  :root {
    --layout-gutter: var(--layout-gutter-xl);
  }
}

@media (min-width: 1536px) {
  :root {
    --layout-gutter: var(--layout-gutter-xxl);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-body);
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text-main);
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary-muted);
  color: var(--primary-hover);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

button:active {
  transform: scale(0.96);
  opacity: 0.9;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

input,
textarea,
select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.btn-press:active {
  transform: scale(0.96);
  opacity: 0.9;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progressFill {
  to {
    width: 100%;
  }
}

@keyframes fadeInOut {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-fade {
  animation: fadeInOut 0.4s ease forwards;
}
