:root {
  --background: 220 40% 98%;
  --foreground: 224 30% 14%;
  --primary: 252 83% 61%;
  --secondary: 193 78% 55%;
  --muted: 220 24% 94%;
  --destructive: 0 72% 56%;
  --border: 220 18% 85%;
  --card: 0 0% 100%;

  --shadow-sm: 0 4px 14px hsla(252, 70%, 40%, 0.08);
  --shadow-md: 0 14px 35px hsla(252, 70%, 35%, 0.14);
  --shadow-lg: 0 24px 60px hsla(252, 70%, 30%, 0.18);

  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 228 24% 10%;
  --foreground: 220 25% 94%;
  --primary: 258 92% 70%;
  --secondary: 191 85% 63%;
  --muted: 225 18% 18%;
  --destructive: 0 75% 62%;
  --border: 225 14% 26%;
  --card: 228 22% 13%;

  --shadow-sm: 0 4px 14px hsla(0, 0%, 0%, 0.24);
  --shadow-md: 0 14px 35px hsla(0, 0%, 0%, 0.32);
  --shadow-lg: 0 24px 60px hsla(0, 0%, 0%, 0.4);
}

* {
  box-sizing: border-box;
}

html, body, #root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, hsla(252, 83%, 61%, 0.12), transparent 30%),
    radial-gradient(circle at top right, hsla(193, 78%, 55%, 0.1), transparent 26%),
    hsl(var(--background));
}

.card-surface {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.glass {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.85), hsla(0, 0%, 100%, 0.7));
  border: 1px solid hsla(0, 0%, 100%, 0.4);
  backdrop-filter: blur(12px);
}

.dark .glass {
  background: linear-gradient(180deg, hsla(228, 22%, 16%, 0.85), hsla(228, 22%, 12%, 0.7));
  border: 1px solid hsla(228, 14%, 40%, 0.4);
}

.focus-ring:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.btn-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-smooth);
}

.btn-lift:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.section-title {
  letter-spacing: -0.02em;
}

.input-base {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 0.9rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.input-base:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsla(252, 83%, 61%, 0.14);
}

textarea.input-base {
  min-height: 130px;
  resize: vertical;
}

.resume-paper {
  background: white;
  color: #111827;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

@media print {
  body {
    background: white;
  }
  .no-print {
    display: none !important;
  }
  .resume-paper {
    box-shadow: none;
    border-radius: 0;
  }
}
