/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #374151;
    background: linear-gradient(to bottom right, #ecfeff, #ffffff, #f0fae5);
    min-height: 100vh;
}

#app { padding: 2rem 1rem; max-width: 80rem; margin: 0 auto; }

/* === 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; }

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

.italic { font-style: italic; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-relaxed { line-height: 1.625; }

/* === COLORS === */
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-white { color: #ffffff; }
.text-cyan-600 { color: #0891b2; }
.text-cyan-700 { color: #0e7490; }
.text-yellow-500 { color: #eab308; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-amber-600 { color: #d97706; }
.text-amber-900 { color: #78350f; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-400 { background-color: #9ca3af; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-cyan-50 { background-color: #ecfeff; }
.bg-cyan-100 { background-color: #cffafe; }
.bg-cyan-600 { background-color: #0891b2; }
.bg-cyan-700 { background-color: #0e7490; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-600 { background-color: #d97706; }
.bg-amber-700 { background-color: #b45309; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }

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

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-cyan-200 { border-color: #a5f3fc; }
.border-cyan-300 { border-color: #67e8f9; }
.border-cyan-500 { border-color: #06b6d4; }
.border-cyan-600 { border-color: #0891b2; }
.border-green-200 { border-color: #bbf7d0; }
.border-blue-200 { border-color: #bfdbfe; }
.border-amber-300 { border-color: #fcd34d; }
.border-red-500 { border-color: #ef4444; }
.border-red-200 { border-color: #fecaca; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

.last\\:border-b-0:last-child { border-bottom: 0; }

/* === SPACING === */
.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; }
.p-12 { padding: 3rem; }

.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; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

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

.pt-0\\.5 { padding-top: 0.125rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.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-0\\.5 { margin-top: 0.125rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-3 { margin-left: 0.75rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

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

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

.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }

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

/* === SIZING === */
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }

.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }

.min-h-\\[100px\\] { min-height: 100px; }

.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }

/* === SHADOWS === */
.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); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

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

/* === TRANSITIONS === */
.transition-colors { transition-property: color, background-color, border-color; 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-700 { transition-duration: 700ms; }

/* === HOVER STATES === */
.hover\\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\\:bg-gray-700:hover { background-color: #374151; }
.hover\\:bg-gray-900:hover { background-color: #111827; }
.hover\\:bg-cyan-50:hover { background-color: #ecfeff; }
.hover\\:bg-cyan-700:hover { background-color: #0e7490; }
.hover\\:bg-red-700:hover { background-color: #b91c1c; }
.hover\\:bg-amber-700:hover { background-color: #b45309; }

.hover\\:text-gray-700:hover { color: #374151; }
.hover\\:text-gray-800:hover { color: #1f2937; }
.hover\\:text-cyan-700:hover { color: #0e7490; }

.hover\\:border-cyan-300:hover { border-color: #67e8f9; }
.hover\\:border-cyan-500:hover { border-color: #06b6d4; }

/* === DISABLED STATES === */
.disabled\\:bg-gray-400:disabled { background-color: #9ca3af; }
.disabled\\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\\:opacity-50:disabled { opacity: 0.5; }

/* === BUTTONS === */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:disabled {
    cursor: not-allowed;
}

/* === FORMS === */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 150ms, box-shadow 150ms;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2);
}

input.border-red-500,
textarea.border-red-500 {
    border-color: #ef4444;
}

textarea {
    resize: vertical;
}

.resize-none { resize: none; }

input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: #0891b2;
    cursor: pointer;
}

/* === GRADIENTS === */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-cyan-50 { --tw-gradient-from: #ecfeff; }
.to-cyan-100 { --tw-gradient-to: #cffafe; }
.from-cyan-50.to-cyan-100 {
    background-image: linear-gradient(to right, #ecfeff, #cffafe);
}
.from-cyan-50.to-blue-50 {
    background-image: linear-gradient(to right, #ecfeff, #eff6ff);
}
.from-amber-50.to-amber-100 {
    background-image: linear-gradient(to right, #fffbeb, #fef3c7);
}
.from-cyan-500.to-cyan-600 {
    background-image: linear-gradient(to right, #06b6d4, #0891b2);
}

.bg-white\\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-white\\/70 { background-color: rgba(255, 255, 255, 0.7); }

/* === OVERFLOW === */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* === POSITION === */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }

/* === Z-INDEX === */
.z-50 { z-index: 50; }
.z-1000 { z-index: 1000; }

/* === ANIMATIONS === */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
    .sm\\:text-xs { font-size: 0.75rem; }
    .sm\\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\\:text-5xl { font-size: 3rem; line-height: 1; }

    .sm\\:p-4 { padding: 1rem; }
    .sm\\:p-5 { padding: 1.25rem; }
    .sm\\:p-6 { padding: 1.5rem; }
    .sm\\:p-8 { padding: 2rem; }
    .sm\\:mb-2 { margin-bottom: 0.5rem; }
    .sm\\:mb-3 { margin-bottom: 0.75rem; }
    .sm\\:mb-4 { margin-bottom: 1rem; }
    .sm\\:mb-5 { margin-bottom: 1.25rem; }
    .sm\\:mb-6 { margin-bottom: 1.5rem; }
    .sm\\:mb-8 { margin-bottom: 2rem; }
    .sm\\:mb-10 { margin-bottom: 2.5rem; }
    .sm\\:mb-12 { margin-bottom: 3rem; }
    .sm\\:mt-3 { margin-top: 0.75rem; }
    .sm\\:mt-4 { margin-top: 1rem; }
    .sm\\:gap-3 { gap: 0.75rem; }
    .sm\\:gap-4 { gap: 1rem; }
    .sm\\:gap-6 { gap: 1.5rem; }
    .sm\\:gap-8 { gap: 2rem; }
    .sm\\:space-y-2 > * + * { margin-top: 0.5rem; }
    .sm\\:space-y-3 > * + * { margin-top: 0.75rem; }
    .sm\\:space-y-4 > * + * { margin-top: 1rem; }
    .sm\\:space-y-5 > * + * { margin-top: 1.25rem; }

    .sm\\:w-auto { width: auto; }
    .sm\\:w-5 { width: 1.25rem; }
    .sm\\:w-6 { width: 1.5rem; }
    .sm\\:w-7 { width: 1.75rem; }
    .sm\\:w-8 { width: 2rem; }
    .sm\\:w-20 { width: 5rem; }
    .sm\\:h-4 { height: 1rem; }
    .sm\\:h-5 { height: 1.25rem; }
    .sm\\:h-6 { height: 1.5rem; }
    .sm\\:h-7 { height: 1.75rem; }
    .sm\\:h-8 { height: 2rem; }
    .sm\\:h-20 { height: 5rem; }

    .sm\\:flex-row { flex-direction: row; }
    .sm\\:items-center { align-items: center; }
    .sm\\:inline { display: inline; }
    .sm\\:hidden { display: none; }
    .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .sm\\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
    .sm\\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .sm\\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .sm\\:pb-6 { padding-bottom: 1.5rem; }
    .sm\\:pt-6 { padding-top: 1.5rem; }
    .sm\\:pt-8 { padding-top: 2rem; }
}

@media (min-width: 768px) {
    .md\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\\:text-6xl { font-size: 3.75rem; line-height: 1; }

    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:col-span-2 { grid-column: span 2 / span 2; }
    .md\\:p-6 { padding: 1.5rem; }
    .md\\:p-8 { padding: 2rem; }
    .md\\:p-12 { padding: 3rem; }
}

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

/* === PRINT STYLES === */
@media print {
    body { background: white; }
    .print\\:hidden { display: none !important; }
    button { display: none !important; }
    .shadow-lg, .shadow-xl, .shadow-2xl { box-shadow: none !important; }
    h1, h2, h3, h4 { page-break-after: avoid; }
}

/* === CURSOR === */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* === OPACITY === */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
