/* CYRI-AI - Tailwind-inspired CSS with shadcn/ui styling */

/* ============================================
   CSS CUSTOM PROPERTIES (HSL Color System)
   ============================================ */

:root {
    /* Base colors */
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;

    /* Chart colors */
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;

    /* Teal/Cyan brand colors */
    --teal-50: 166 76% 97%;
    --teal-100: 167 85% 89%;
    --teal-200: 168 84% 78%;
    --teal-300: 171 77% 64%;
    --teal-400: 172 66% 50%;
    --teal-500: 173 80% 40%;
    --teal-600: 175 84% 32%;
    --teal-700: 175 77% 26%;
    --teal-800: 176 69% 22%;
    --teal-900: 176 61% 19%;

    --cyan-500: 189 94% 43%;
    --cyan-600: 192 91% 36%;

    /* Slate colors */
    --slate-50: 210 40% 98%;
    --slate-100: 210 40% 96%;
    --slate-200: 214 32% 91%;
    --slate-300: 213 27% 84%;
    --slate-400: 215 20% 65%;
    --slate-500: 215 16% 47%;
    --slate-600: 215 19% 35%;
    --slate-700: 215 25% 27%;
    --slate-800: 217 33% 17%;
    --slate-900: 222 47% 11%;

    /* Green colors */
    --green-50: 138 76% 97%;
    --green-100: 141 84% 93%;
    --green-500: 142 71% 45%;
    --green-600: 142 76% 36%;

    /* Yellow/Amber colors */
    --yellow-50: 48 100% 96%;
    --yellow-100: 48 96% 89%;
    --yellow-500: 45 93% 47%;
    --yellow-600: 41 96% 40%;

    /* Red colors */
    --red-50: 0 86% 97%;
    --red-100: 0 93% 94%;
    --red-500: 0 84% 60%;
    --red-600: 0 72% 51%;

    /* Purple colors */
    --purple-100: 269 100% 95%;
    --purple-600: 271 81% 56%;

    /* Blue colors */
    --blue-100: 214 95% 93%;
    --blue-600: 221 83% 53%;
}

.dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }

/* ============================================
   FLEXBOX & GRID
   ============================================ */

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

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }

/* ============================================
   SPACING (MARGIN & PADDING)
   ============================================ */

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.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 { }
.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; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.m-0 { margin: 0; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.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-12 { margin-bottom: 3rem; }

.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-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }

.-mt-1 { margin-top: -0.25rem; }

/* ============================================
   SIZING & CONSTRAINTS
   ============================================ */

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.min-w-0 { min-width: 0; }

/* ============================================
   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; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.leading-none { line-height: 1; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whitespace-nowrap { white-space: nowrap; }

/* ============================================
   COLORS
   ============================================ */

/* Text colors */
.text-white { color: #fff; }
.text-black { color: #000; }

.text-slate-50 { color: hsl(var(--slate-50)); }
.text-slate-100 { color: hsl(var(--slate-100)); }
.text-slate-200 { color: hsl(var(--slate-200)); }
.text-slate-300 { color: hsl(var(--slate-300)); }
.text-slate-400 { color: hsl(var(--slate-400)); }
.text-slate-500 { color: hsl(var(--slate-500)); }
.text-slate-600 { color: hsl(var(--slate-600)); }
.text-slate-700 { color: hsl(var(--slate-700)); }
.text-slate-800 { color: hsl(var(--slate-800)); }
.text-slate-900 { color: hsl(var(--slate-900)); }

.text-teal-500 { color: hsl(var(--teal-500)); }
.text-teal-600 { color: hsl(var(--teal-600)); }
.text-teal-700 { color: hsl(var(--teal-700)); }
.text-teal-900 { color: hsl(var(--teal-900)); }

.text-green-500 { color: hsl(var(--green-500)); }
.text-green-600 { color: hsl(var(--green-600)); }

.text-yellow-500 { color: hsl(var(--yellow-500)); }
.text-yellow-600 { color: hsl(var(--yellow-600)); }

.text-red-500 { color: hsl(var(--red-500)); }
.text-red-600 { color: hsl(var(--red-600)); }

.text-purple-600 { color: hsl(var(--purple-600)); }

.text-blue-600 { color: hsl(var(--blue-600)); }

/* Background colors */
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }
.bg-transparent { background-color: transparent; }

.bg-slate-100 { background-color: hsl(var(--slate-100)); }
.bg-slate-200 { background-color: hsl(var(--slate-200)); }
.bg-slate-800 { background-color: hsl(var(--slate-800)); }
.bg-slate-900 { background-color: hsl(var(--slate-900)); }

.bg-teal-50 { background-color: hsl(var(--teal-50)); }
.bg-teal-100 { background-color: hsl(var(--teal-100)); }
.bg-teal-500 { background-color: hsl(var(--teal-500)); }
.bg-teal-600 { background-color: hsl(var(--teal-600)); }

.bg-green-50 { background-color: hsl(var(--green-50)); }
.bg-green-100 { background-color: hsl(var(--green-100)); }

.bg-yellow-50 { background-color: hsl(var(--yellow-50)); }
.bg-yellow-100 { background-color: hsl(var(--yellow-100)); }

.bg-red-50 { background-color: hsl(var(--red-50)); }
.bg-red-100 { background-color: hsl(var(--red-100)); }

.bg-purple-100 { background-color: hsl(var(--purple-100)); }

.bg-blue-100 { background-color: hsl(var(--blue-100)); }

/* Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-slate-50 {
    --tw-gradient-from: hsl(var(--slate-50));
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsla(var(--slate-50), 0));
}

.via-white {
    --tw-gradient-stops: var(--tw-gradient-from), #fff, var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-slate-50 {
    --tw-gradient-to: hsl(var(--slate-50));
}

.from-teal-600 {
    --tw-gradient-from: hsl(var(--teal-600));
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsla(var(--teal-600), 0));
}

.to-cyan-600 {
    --tw-gradient-to: hsl(var(--cyan-600));
}

.from-teal-700 {
    --tw-gradient-from: hsl(var(--teal-700));
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsla(var(--teal-700), 0));
}

.to-cyan-700 {
    --tw-gradient-to: hsl(192 91% 30%);
}

/* Text gradient */
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

/* ============================================
   BORDERS
   ============================================ */

.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-l-4 { border-left-width: 4px; }

.border-transparent { border-color: transparent; }
.border-slate-100 { border-color: hsl(var(--slate-100)); }
.border-slate-200 { border-color: hsl(var(--slate-200)); }
.border-slate-300 { border-color: hsl(var(--slate-300)); }
.border-teal-200 { border-color: hsl(var(--teal-200)); }
.border-teal-300 { border-color: hsl(var(--teal-300)); }
.border-teal-500 { border-color: hsl(var(--teal-500)); }
.border-teal-600 { border-color: hsl(var(--teal-600)); }
.border-green-200 { border-color: hsl(168 84% 78%); }
.border-green-500 { border-color: hsl(var(--green-500)); }
.border-yellow-200 { border-color: hsl(48 96% 89%); }
.border-yellow-500 { border-color: hsl(var(--yellow-500)); }
.border-red-200 { border-color: hsl(0 93% 94%); }
.border-red-500 { border-color: hsl(var(--red-500)); }
.border-cyan-200 { border-color: hsl(187 85% 85%); }

/* ============================================
   BORDER RADIUS
   ============================================ */

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ============================================
   SHADOWS
   ============================================ */

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

/* ============================================
   POSITIONING
   ============================================ */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.top-6 { top: 1.5rem; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-12 { bottom: 3rem; }

.left-1\/2 { left: 50%; }
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ============================================
   OVERFLOW
   ============================================ */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ============================================
   OPACITY & VISIBILITY
   ============================================ */

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* ============================================
   CURSOR
   ============================================ */

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* ============================================
   TRANSITIONS & ANIMATIONS
   ============================================ */

.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;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

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

@keyframes fadeOnly {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-fade-only { animation: fadeOnly 0.4s ease-out forwards; }
.animate-slide-in { animation: slideIn 0.3s ease-out forwards; }

/* TPS Simulator Animations */
@keyframes cursorBlink {
    0%, 50% { opacity: 1; box-shadow: 0 0 8px hsl(var(--teal-400)), 0 0 16px hsl(var(--teal-400)); }
    51%, 100% { opacity: 0.3; box-shadow: none; }
}

@keyframes cursorGlow {
    0%, 100% { box-shadow: 0 0 4px hsl(var(--teal-400)), 0 0 8px hsl(var(--teal-400)); }
    50% { box-shadow: 0 0 8px hsl(var(--teal-400)), 0 0 16px hsl(var(--teal-400)), 0 0 24px hsl(var(--teal-400)); }
}

@keyframes textFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes numberPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.animate-cursor-blink {
    animation: cursorBlink 0.8s ease-in-out infinite;
}

.animate-cursor-glow {
    animation: cursorGlow 1.5s ease-in-out infinite;
}

.animate-text-fade-in {
    animation: textFadeIn 0.3s ease-out forwards;
}

.animate-shimmer {
    background: linear-gradient(90deg,
        hsl(var(--teal-600)) 0%,
        hsl(var(--cyan-500)) 25%,
        hsl(var(--teal-400)) 50%,
        hsl(var(--cyan-500)) 75%,
        hsl(var(--teal-600)) 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animate-number-pop {
    animation: numberPop 0.3s ease-out;
}

.animate-gradient-bg {
    background: linear-gradient(-45deg,
        hsl(var(--teal-50)),
        hsl(var(--cyan-50)),
        hsl(var(--teal-100)),
        hsl(var(--cyan-50)));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* TPS Simulator specific styles */
.tps-output-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.tps-output-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, hsl(var(--slate-50)), transparent);
    pointer-events: none;
    z-index: 1;
}

.tps-output-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, hsl(var(--slate-50)), transparent);
    pointer-events: none;
    z-index: 1;
}

.tps-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(180deg, hsl(var(--teal-400)), hsl(var(--cyan-500)));
    border-radius: 2px;
    margin-left: 2px;
    vertical-align: text-bottom;
}

.tps-value {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tps-value-highlight {
    text-shadow: 0 0 20px hsla(var(--teal-500), 0.5);
}

/* Looping indicator */
.loop-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, hsl(var(--teal-100)), hsl(var(--cyan-100)));
    border-radius: 9999px;
    font-size: 0.7rem;
    color: hsl(var(--teal-700));
    font-weight: 500;
}

.loop-indicator-dot {
    width: 6px;
    height: 6px;
    background: hsl(var(--teal-500));
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ============================================
   HOVER & FOCUS STATES
   ============================================ */

.hover\:bg-slate-100:hover { background-color: hsl(var(--slate-100)); }
.hover\:bg-slate-800:hover { background-color: hsl(var(--slate-800)); }
.hover\:bg-teal-700:hover { background-color: hsl(var(--teal-700)); }

.hover\:border-teal-300:hover { border-color: hsl(var(--teal-300)); }
.hover\:border-slate-300:hover { border-color: hsl(var(--slate-300)); }

.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

.hover\:text-slate-900:hover { color: hsl(var(--slate-900)); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px hsl(var(--ring)); }
.focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 2px hsl(var(--ring)); }

/* Remove focus outlines from non-interactive elements during Blazor hydration */
h1, h2, h3, h4, h5, h6,
p, span, div, section, article, header, main, footer, nav,
.card, .badge {
    outline: none;
}

/* Only show focus ring when using keyboard navigation (accessibility) */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   DISABLED STATE
   ============================================ */

.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:items-center { align-items: center; }
    .md\:flex-row { flex-direction: row; }
}

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

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

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: hsl(var(--slate-900));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: hsl(var(--slate-800));
}

.btn-secondary {
    background-color: white;
    color: hsl(var(--slate-900));
    border-color: hsl(var(--slate-200));
}

.btn-secondary:hover:not(:disabled) {
    background-color: hsl(var(--slate-50));
    border-color: hsl(var(--slate-300));
}

.btn-teal {
    background-color: hsl(var(--teal-600));
    color: white;
}

.btn-teal:hover:not(:disabled) {
    background-color: hsl(var(--teal-700));
}

.btn-outline {
    background-color: transparent;
    border-color: hsl(var(--slate-200));
    color: hsl(var(--slate-700));
}

.btn-outline:hover:not(:disabled) {
    background-color: hsl(var(--slate-50));
    border-color: hsl(var(--slate-300));
}

.btn-sm { height: 2rem; padding: 0 0.75rem; font-size: 0.875rem; }
.btn-md { height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; }
.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; }

/* Action button - fixed size for main CTA buttons */
.btn-action {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 56px !important;
}

/* Card Component */
.card {
    background-color: white;
    border-radius: 1rem;
    border: 1px solid hsl(var(--slate-200));
    padding: 1.5rem;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-color: hsl(var(--teal-300));
}

/* Badge Component */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-teal {
    background-color: hsl(var(--teal-50));
    color: hsl(var(--teal-900));
}

.badge-green {
    background-color: hsl(var(--green-100));
    color: hsl(var(--green-600));
}

.badge-yellow {
    background-color: hsl(var(--yellow-100));
    color: hsl(var(--yellow-600));
}

.badge-red {
    background-color: hsl(var(--red-100));
    color: hsl(var(--red-600));
}

.badge-slate {
    background-color: hsl(var(--slate-100));
    color: hsl(var(--slate-700));
}

/* Icon wrapper */
.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.icon-wrapper-sm { width: 2rem; height: 2rem; }
.icon-wrapper-md { width: 2.5rem; height: 2.5rem; }
.icon-wrapper-lg { width: 3rem; height: 3rem; }

/* Table styles */
.table-container {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--slate-200));
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: hsl(var(--slate-50));
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--slate-600));
    border-bottom: 1px solid hsl(var(--slate-200));
}

td {
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--slate-100));
}

tr:last-child td {
    border-bottom: none;
}

/* Progress bar */
.progress-bar {
    height: 0.5rem;
    background-color: hsl(var(--slate-200));
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.progress-bar-fill-instant {
    transition: none;
}

.progress-bar-fill-teal {
    background: linear-gradient(to right, hsl(var(--teal-500)), hsl(var(--cyan-500)));
}

.progress-bar-fill-green {
    background-color: hsl(var(--green-500));
}

.progress-bar-fill-purple {
    background-color: hsl(var(--purple-600));
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background-color: hsl(var(--slate-900));
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 50;
    margin-bottom: 0.5rem;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Floating chat button */
.chat-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: linear-gradient(to right, hsl(var(--teal-600)), hsl(var(--cyan-600)));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.chat-button:hover {
    background: linear-gradient(to right, hsl(var(--teal-700)), hsl(192 91% 30%));
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: scale(1.05);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--slate-100));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--slate-300));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--slate-400));
}

/* ============================================
   BLAZOR SPECIFIC
   ============================================ */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ni42MDYgNTIuMjY1OEwyODkuMzk0IDc0LjczNDNDMjkwLjE4NyA3NS41MTY0IDI5MC42NzEgNzYuNjEyMSAyOTAuNjcxIDc3LjgyM0MyOTAuNjcxIDc5LjAzMzkgMjkwLjE4NyA4MC4xMjk2IDI4OS4zOTQgODAuOTExN0wyODkuMzk0IDgwLjkxMTdMMjY2LjYwNiAxMDMuMzhDMjY1LjgxMyAxMDQuMTYzIDI2NC43MTcgMTA0LjY0NiAyNjMuNTA2IDEwNC42NDZDMjYyLjI5NiAxMDQuNjQ2IDI2MS4yIDEwNC4xNjMgMjYwLjQwNyAxMDMuMzggMjU5LjYxNCAxMDIuNTk3IDI1OS4xMyAxMDEuNTAxIDI1OS4xMyAxMDAuMjlMMjU5LjEzIDEwMC4yOVYyNTkuMTMgNTUuMzU2M0MyNTkuMTMgNTQuMTQ1NCAyNTkuNjE0IDUzLjA0OTcgMjYwLjQwNyA1Mi4yNjc4QzI2MS4yIDUxLjQ4NTggMjYyLjI5NiA1MS4wMDIxIDI2My41MDYgNTEuMDAyMVoiIGZpbGw9IiNGRjU5NTgiLz48L2c+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Loading indicator */
.loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* SVG Icons inline sizing */
svg.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

svg.icon-sm { width: 1rem; height: 1rem; }
svg.icon-md { width: 1.25rem; height: 1.25rem; }
svg.icon-lg { width: 1.5rem; height: 1.5rem; }
svg.icon-xl { width: 2rem; height: 2rem; }

/* Stroke width for icons */
.stroke-2 { stroke-width: 2; }
.stroke-3 { stroke-width: 3; }

/* ============================================
   SITE HEADER & NAVIGATION
   ============================================ */

.site-container {
    width: 1000px;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    border-bottom: 1px solid #ccc;
}

.site-header .logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .logo-image {
    width: 500px;
}

.site-header .social-section {
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
}

.site-header .img-resize {
    cursor: pointer;
    border: none;
}

.site-navigation {
    background: linear-gradient(to bottom, #666, #555);
    padding: 0;
}

.site-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation .nav-item {
    flex: 1;
}

.site-navigation .nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 10px;
    text-align: center;
    font-size: 15px;
    border-right: 1px solid #444;
    transition: background-color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.site-navigation .nav-item:last-child .nav-link {
    border-right: none;
}

.site-navigation .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-navigation .nav-link:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.site-navigation .help-icon {
    width: 20px;
    height: 20px;
    background-color: #666;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 1020px) {
    .site-container {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 15px;
    }

    .site-header .logo-image {
        width: 100%;
        max-width: 400px;
    }

    .site-navigation .nav-menu {
        flex-wrap: wrap;
    }

    .site-navigation .nav-item {
        flex: 1;
        min-width: 150px;
    }
}
