:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(148, 163, 184, 0.35);
}

html.dark {
  --background: #0f172a;
  --foreground: #f8fafc;
  --surface: rgba(15, 23, 42, 0.85);
  --surface-border: rgba(148, 163, 184, 0.15);
}

body {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.06), transparent 36%),
    var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

.ui-card {
  border-radius: 1rem;
  border-width: 1px;
  padding: 1rem;
  background: var(--surface);
  border-color: var(--surface-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(24px);
}

.ui-card-soft {
  border-radius: 0.75rem;
  border-width: 1px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(8px);
}

html.dark .ui-card-soft {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.1);
}

.ui-input {
  width: 100%;
  border-radius: 0.75rem;
  border-width: 1px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: 2px solid transparent;
  transition: all 0.2s;
  border-color: #cbd5e1;
  background-color: #ffffff;
  color: #0f172a;
}

html.dark .ui-input {
  border-color: #334155;
  background-color: #1e293b;
  color: #f8fafc;
}

.ui-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.ui-button-primary {
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #2563eb;
  transition: all 0.2s;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  border: none;
}

.ui-button-primary:hover {
  background-color: #1d4ed8;
}

.ui-button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ui-button-ghost {
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: #cbd5e1;
  background-color: #ffffff;
  padding: 0.5rem 1rem;
  color: #334155;
  transition: all 0.2s;
  cursor: pointer;
}

html.dark .ui-button-ghost {
  border-color: #334155;
  background-color: #1e293b;
  color: #cbd5e1;
}

.ui-button-ghost:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

html.dark .ui-button-ghost:hover {
  background-color: #334155;
}

.ui-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.ui-subtitle {
  font-size: 0.875rem;
  color: #475569;
}

html.dark .ui-subtitle {
  color: #94a3b8;
}
