/*
 * ==========================================================================
 * PREFLIGHT (A simplified version of Tailwind's CSS reset)
 * ==========================================================================
 */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  background-image: none;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
}

img, video {
  max-width: 100%;
  height: auto;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/*
 * ==========================================================================
 * CUSTOM STYLES (From original style.css)
 * ==========================================================================
 */
:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

/* Critical CSS - Inlined for performance */
.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tooltip-content {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.tooltip-container:hover .tooltip-content {
  display: block;
  opacity: 1;
}

/*
 * ==========================================================================
 * TAILWIND UTILITY CLASSES (Generated for this project)
 * ==========================================================================
 */

/* CSS Variables for a consistent design system */
:root {
  --color-gray-100: rgb(243 244 246);
  --color-gray-200: rgb(229 231 235);
  --color-gray-300: rgb(209 213 219);
  --color-gray-400: rgb(156 163 175);
  --color-gray-500: rgb(107 114 128);
  --color-gray-600: rgb(75 85 99);
  --color-gray-700: rgb(55 65 81);
  --color-gray-800: rgb(31 41 55);
  --color-gray-900: rgb(17 24 39);
  --color-red-300: rgb(252 165 165);
  --color-red-400: rgb(248 113 113);
  --color-red-700: rgb(185 28 28);
  --color-red-900: rgb(76 29 29);
  --color-orange-400: rgb(251 146 60);
  --color-green-300: rgb(134 239 172);
  --color-green-400: rgb(74 222 128);
  --color-green-500: rgb(34 197 94);
  --color-green-800: rgb(22 101 52);
  --color-green-900: rgb(20 83 45);
  --color-sky-200: rgb(186 230 253);
  --color-sky-300: rgb(125 211 252);
  --color-sky-400: rgb(56 189 248);
  --color-sky-500: rgb(14 165 233);
  --color-sky-600: rgb(2 132 199);
  --color-sky-700: rgb(3 105 161);
  --color-sky-800: rgb(7 89 133);
  --color-sky-900: rgb(12 74 110);
  --color-teal-300: rgb(153 246 228);
  --color-teal-400: rgb(45 212 191);
  --color-teal-500: rgb(20 184 166);
  --color-teal-600: rgb(13 148 136);
  --color-teal-700: rgb(15 118 110);
  --color-white: rgb(255 255 255);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Layout */
.absolute { position: absolute; }
.relative { position: relative; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.bottom-full { bottom: 100%; }
.top-full { top: 100%; }
.left-1\/2 { left: 50%; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Sizing */
.w-0 { width: 0px; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.h-0 { height: 0px; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.min-h-screen { min-height: 100vh; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.leading-relaxed { line-height: 1.625; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }

/* Colors */
body.bg-gray-900 { background-color: var(--color-gray-900); }
body.text-gray-200 { color: var(--color-gray-200); }
.text-gray-100 { color: var(--color-gray-100); }
.text-gray-200 { color: var(--color-gray-200); }
.text-gray-300 { color: var(--color-gray-300); }
.text-gray-400 { color: var(--color-gray-400); }
.text-gray-500 { color: var(--color-gray-500); }
.text-red-300 { color: var(--color-red-300); }
.text-red-400 { color: var(--color-red-400); }
.text-red-400\/80 { color: rgba(248, 113, 113, 0.8); }
.text-orange-400 { color: var(--color-orange-400); }
.text-green-300 { color: var(--color-green-300); }
.text-green-400 { color: var(--color-green-400); }
.text-green-500 { color: var(--color-green-500); }
.text-sky-200 { color: var(--color-sky-200); }
.text-sky-300 { color: var(--color-sky-300); }
.text-sky-400 { color: var(--color-sky-400); }
.text-sky-500 { color: var(--color-sky-500); }
.text-teal-300 { color: var(--color-teal-300); }
.text-teal-400 { color: var(--color-teal-400); }
.text-teal-500 { color: var(--color-teal-500); }
.text-white { color: var(--color-white); }
.text-transparent { color: transparent; }

/* Backgrounds */
.bg-gray-700 { background-color: var(--color-gray-700); }
.bg-gray-800 { background-color: var(--color-gray-800); }
.bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5); }
.bg-gray-900\/70 { background-color: rgba(17, 24, 39, 0.7); }
.bg-gray-800\/30 { background-color: rgba(31, 41, 55, 0.3); }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-800\/60 { background-color: rgba(31, 41, 55, 0.6); }
.bg-red-900\/50 { background-color: rgba(76, 29, 29, 0.5); }
.bg-green-900\/20 { background-color: rgba(20, 83, 45, 0.2); }
.bg-sky-900\/20 { background-color: rgba(12, 74, 110, 0.2); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-teal-300 { --tw-gradient-from: var(--color-teal-300); }
.to-sky-400 { --tw-gradient-to: var(--color-sky-400); }
.from-sky-300 { --tw-gradient-from: var(--color-sky-300); }
.to-teal-400 { --tw-gradient-to: var(--color-teal-400); }
.from-teal-500 { --tw-gradient-from: var(--color-teal-500); }
.to-sky-600 { --tw-gradient-to: var(--color-sky-600); }
.from-sky-500 { --tw-gradient-from: var(--color-sky-500); }
.to-teal-600 { --tw-gradient-to: var(--color-teal-600); }
.hover\:from-teal-600:hover { --tw-gradient-from: var(--color-teal-600); }
.hover\:to-sky-700:hover { --tw-gradient-to: var(--color-sky-700); }
.hover\:from-sky-600:hover { --tw-gradient-from: var(--color-sky-600); }
.hover\:to-teal-700:hover { --tw-gradient-to: var(--color-teal-700); }

/* Spacing */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-7 { padding-left: 1.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }

/* Flexbox & Grid */
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.row-span-2 { grid-row: span 2 / span 2; }

/* Borders */
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-r { border-right-width: 1px; }
.border-b-8 { border-bottom-width: 8px; }
.border-t-4 { border-top-width: 4px; }
.border-x-4 { border-left-width: 4px; border-right-width: 4px; }
.border-dashed { border-style: dashed; }
.border-gray-600 { border-color: var(--color-gray-600); }
.border-gray-700 { border-color: var(--color-gray-700); }
.border-gray-900 { border-color: var(--color-gray-900); }
.border-red-700\/50 { border-color: rgba(185, 28, 28, 0.5); }
.border-green-800\/50 { border-color: rgba(22, 101, 52, 0.5); }
.border-sky-800\/50 { border-color: rgba(7, 89, 133, 0.5); }
.border-t-gray-800 { border-top-color: var(--color-gray-800); }
.border-x-transparent { border-left-color: transparent; border-right-color: transparent; }
.border-gray-700\/50 { border-color: rgba(55, 65, 81, 0.5); }
.border-collapse { border-collapse: collapse; }

/* Effects & Transitions */
.shadow-lg { box-shadow: var(--shadow-lg); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; 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; }
.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; }
.duration-150 { transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-x-1\/2 { --tw-translate-x: -50%; transform: translateX(var(--tw-translate-x)); }

/* Interactivity */
.cursor-help { cursor: help; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.hover\:-translate-y-1:hover { --tw-translate-y: -0.25rem; transform: translateY(var(--tw-translate-y)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(var(--tw-scale-x), var(--tw-scale-y)); }
.hover\:border-sky-500:hover { border-color: var(--color-sky-500); }
.hover\:border-teal-500:hover { border-color: var(--color-teal-500); }
.hover\:bg-gray-600:hover { background-color: var(--color-gray-600); }
.hover\:bg-gray-800:hover { background-color: var(--color-gray-800); }
.hover\:text-sky-300:hover { color: var(--color-sky-300); }
.hover\:text-teal-300:hover { color: var(--color-teal-300); }
.hover\:underline:hover { text-decoration-line: underline; }
.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), 0 0 #0000; }
.focus\:ring-offset-2:focus { --tw-ring-offset-width: 2px; }
.focus\:border-sky-500:focus { --tw-border-opacity: 1; border-color: var(--color-sky-500); }
.focus\:border-teal-500:focus { --tw-border-opacity: 1; border-color: var(--color-teal-500); }
.focus\:ring-gray-500:focus { --tw-ring-color: var(--color-gray-500); }
.focus\:ring-green-500:focus { --tw-ring-color: var(--color-green-500); }
.focus\:ring-sky-500:focus { --tw-ring-color: var(--color-sky-500); }
.focus\:ring-teal-500:focus { --tw-ring-color: var(--color-teal-500); }
.focus\:ring-offset-gray-900:focus { --tw-ring-offset-color: var(--color-gray-900); }
input:disabled, select:disabled, button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Vertical Alignment */
.align-top { vertical-align: top; }
.align-bottom { vertical-align: bottom; }

/* Overflow */
.overflow-x-auto { overflow-x: auto; }

/* Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:w-auto { width: auto; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.2; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:p-8 { padding: 2rem; }
}

/* Specific component classes */
.min-w-\[800px\] { min-width: 800px; }
.back-to-selector, .back-to-st-calculator, .back-to-lt-calculator {
    text-decoration: none;
}
code {
    background-color: var(--color-gray-700);
    color: var(--color-teal-300);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}