/* Reset and base styles */
:root {
  --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a;
  --indigo-400: #818cf8; --indigo-500: #6366f1; --indigo-600: #4f46e5; --indigo-700: #4338ca;
  --cyan-300: #67e8f9;
  --red-300: #fca5a5; --red-400: #f87171; --red-500: #ef4444;
  --green-400: #4ade80;
}
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
svg { display: block; vertical-align: middle; }

/* Layout & Sizing */
.container { width: 100%; margin-right: auto; margin-left: auto; padding-right: 1rem; padding-left: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.min-h-\[375px\] { min-height: 375px; }
.min-h-\[150px\] { min-height: 150px; }
@media (min-width: 1024px) { .lg\:min-h-\[460px\] { min-height: 460px; } }

/* Display & Flexbox/Grid */
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-grow { flex-grow: 1; }
.gap-8 { gap: 2rem; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-2 { gap: 0.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 1024px) { .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Spacing */
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-2 { padding: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pr-10 { padding-right: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
@media (min-width: 640px) { .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; } }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-4 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; } .mt-12 { margin-top: 3rem; } .mt-2 { margin-top: 0.5rem; } .mt-6 { margin-top: 1.5rem; }
.-ml-1 { margin-left: -0.25rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-auto { margin-right: auto; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Typography */
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.text-slate-100 { color: var(--slate-100); } .text-slate-200 { color: var(--slate-200); } .text-slate-300 { color: var(--slate-300); } .text-slate-400 { color: var(--slate-400); } .text-slate-500 { color: var(--slate-500); }
.text-indigo-400 { color: var(--indigo-400); }
.text-red-300 { color: var(--red-300); }
.text-white { color: #fff; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.font-extrabold { font-weight: 800; } .font-bold { font-weight: 700; } .font-semibold { font-weight: 600; } .font-medium { font-weight: 500; }
.text-center { text-align: center; }
.placeholder-slate-500::placeholder { color: var(--slate-500); }

/* Backgrounds & Gradients */
.bg-slate-900 { background-color: var(--slate-900); }
.bg-slate-800\/50 { background-color: rgba(30, 41, 59, 0.5); }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-slate-900\/70 { background-color: rgba(15, 23, 42, 0.7); }
.bg-slate-700 { background-color: var(--slate-700); }
.bg-indigo-500\/10 { background-color: rgba(99, 102, 241, 0.1); }
.bg-indigo-600 { background-color: var(--indigo-600); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-transparent { background-color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-indigo-400 { --tw-gradient-from: var(--indigo-400); --tw-gradient-to: rgba(129, 140, 248, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-cyan-300 { --tw-gradient-to: var(--cyan-300); }

/* Borders */
.border { border-width: 1px; }
.rounded-lg { border-radius: 0.5rem; } .rounded-2xl { border-radius: 1rem; } .rounded-full { border-radius: 9999px; } .rounded-md { border-radius: 0.375rem; }
.border-slate-700 { border-color: var(--slate-700); } .border-slate-600 { border-color: var(--slate-600); }
.border-red-500 { border-color: var(--red-500); }
.border-transparent { border-color: transparent; }

/* Effects & Transitions */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Interactivity & States */
.resize-none { resize: none; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-indigo-500:focus { --tw-ring-color: var(--indigo-500); }
.focus\:border-indigo-500:focus { border-color: var(--indigo-500); }
.focus\:ring-offset-2:focus { --tw-ring-offset-width: 2px; }
.focus\:ring-offset-slate-900:focus { --tw-ring-offset-color: var(--slate-900); }
.hover\:bg-indigo-700:hover { background-color: var(--indigo-700); }
.hover\:bg-slate-600:hover { background-color: var(--slate-600); }
.hover\:text-slate-300:hover { color: var(--slate-300); }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:opacity-70:disabled { opacity: 0.7; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\:bg-indigo-500\/50:disabled { background-color: rgba(79, 70, 229, 0.5); }

/* SVG & Animations */
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }

/* Positioning & Screen Readers */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }
@media (min-width: 640px) { .sm\:inline { display: inline; } }

/* Custom styles */
.footer-link {
  color: var(--indigo-400);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-link:hover {
  color: var(--slate-200);
  text-decoration: underline;
}
.analysis-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--indigo-400);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.analysis-panel h3:first-of-type {
  margin-top: 0;
}
.analysis-panel p, .analysis-panel li {
  line-height: 1.6;
}
.analysis-panel li {
  margin-left: 1.25rem;
  list-style-type: disc;
  margin-bottom: 0.5rem;
}