/*
  Minimal Tailwind-inspired utility layer.
  Only the classes referenced in index.html are defined to keep the bundle light and offline-ready.
*/

:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.6;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input, button, select {
  font: inherit;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Layout utilities */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-sans { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.w-80 { width: 20rem; }
.h-full { height: 100%; }
.min-h-\[200px\] { min-height: 200px; }
.min-h-\[600px\] { min-height: 600px; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Spacing utilities */
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Gap utilities */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }

/* Sizing & radius */
.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* Position utilities */
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.bottom-0 { bottom: 0; }
.z-40 { z-index: 40; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-3xl { font-size: 1.875rem; line-height: 1.2; }
.text-4xl { font-size: 2.25rem; line-height: 1.2; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.7; }

/* Color utilities */
.bg-slate-50 { background-color: #f8fafc; }
.bg-white { background-color: #ffffff; }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-slate-100\/70 { background-color: rgba(241, 245, 249, 0.7); }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-red-50 { background-color: #fef2f2; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-emerald-100 { background-color: #d1fae5; }
.text-white { color: #ffffff; }
.text-slate-900 { color: #0f172a; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-indigo-500 { color: #6366f1; }
.text-indigo-600 { color: #4f46e5; }
.text-red-600 { color: #dc2626; }
.text-emerald-600 { color: #059669; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-900 { color: #78350f; }
.text-orange-600 { color: #ea580c; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.text-rose-900 { color: #881337; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-indigo-900 { color: #312e81; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-900 { color: #064e3b; }

/* Border utilities */
.border { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5f5; }
.border-red-200 { border-color: #fecaca; }
.border-indigo-100 { border-color: #e0e7ff; }
.border-amber-100 { border-color: #fef3c7; }
.border-rose-100 { border-color: #ffe4e6; }
.border-blue-100 { border-color: #dbeafe; }
.border-emerald-100 { border-color: #d1fae5; }
.border-dashed { border-style: dashed; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.shadow-lg { box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3); }
.shadow-xl { box-shadow: 0 35px 60px rgba(15, 23, 42, 0.12); }
.shadow-slate-200\/60 { box-shadow: 0 25px 50px -12px rgba(226, 232, 240, 0.6); }
.shadow-indigo-500\/30 { box-shadow: 0 20px 35px rgba(99, 102, 241, 0.3); }
.shadow-inner { box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.08); }

/* Effects */
.backdrop-blur { backdrop-filter: blur(16px); }
.transition { transition: all 0.2s ease-in-out; }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.focus\:border-indigo-500:focus { border-color: #6366f1; }
.focus\:bg-white:focus { background-color: #ffffff; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25); }
.focus\:ring-4:focus { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2); }
.focus\:ring-indigo-200:focus { box-shadow: 0 0 0 4px rgba(199, 210, 254, 0.75); }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
}

@media (min-width: 768px) {
  .md\:p-10 { padding: 2.5rem; }
  .md\:text-left { text-align: left; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:block { display: block; }
  .lg\:w-80 { width: 20rem; }
  .lg\:flex-shrink-0 { flex-shrink: 0; }
  .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:min-h-\[600px\] { min-height: 600px; }
}

/* Accessibility helpers */
[aria-live] {
  min-height: 8rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

header, footer {
  width: 100%;
}

form {
  width: 100%;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
}

/* Ad placeholders */
#ads, aside div {
  min-height: 200px;
}

/* Smooth animation for result visibility */
.fade-in {
  animation: fadeIn 0.25s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
