@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --button-outline: rgba(0,0,0, .1);
    --badge-outline: rgba(0,0,0, .05);
    --opaque-button-border-intensity: -8;
    --elevate-1: rgba(0,0,0, .03);
    --elevate-2: rgba(0,0,0, .08);
    --background: 0 0% 100%;
    --foreground: 224 71% 4%;
    --border: 220 13% 91%;
    --card: 0 0% 100%;
    --card-foreground: 224 71% 4%;
    --card-border: 220 13% 91%;
    --popover: 0 0% 100%;
    --popover-foreground: 224 71% 4%;
    --primary: 221 83% 53%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 98%;
    --secondary-foreground: 222 47% 11%;
    --muted: 220 14% 96%;
    --muted-foreground: 215 16% 47%;
    --accent: 142 76% 36%;
    --accent-foreground: 355 25% 95%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --input: 220 13% 91%;
    --ring: 222 47% 11%;
    --font-sans: Inter, system-ui, sans-serif;
    --font-mono: Menlo, monospace;
    --radius: .75rem;
    --govBlue: #2263ae;
}

*, *:before, *:after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: hsl(var(--border));
}

html, body {
    font-family: "Inter", sans-serif;
    margin: 0;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

button { cursor: pointer; }

img, svg, video, canvas { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-white { background-color: #fff; }
.bg-govBlue { background-color: var(--govBlue); }
.bg-govBlue\/5 { background-color: rgba(34, 99, 174, 0.05); }
.bg-govBlue\/90 { background-color: rgba(34, 99, 174, 0.9); }

.text-white { color: #fff; }
.text-govBlue { color: var(--govBlue); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.w-7 { width: 1.75rem; }
.w-10 { width: 2.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }

.container { width: 100%; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-4 { padding-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-0\.5 { margin-left: 0.125rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

.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; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }

.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-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-border { border-color: hsl(var(--border)); }
.border-input { border-color: hsl(var(--input)); }
.border-red-500 { border-color: #ef4444; }
.border-green-500 { border-color: #22c55e; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.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); }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.hidden { display: none; }
.inline-flex { display: inline-flex; }
.block { display: block; }

.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.15s; }
.transition-all { transition-property: all; transition-duration: 0.3s; }
.duration-300 { transition-duration: 0.3s; }
.transform { transform: translateX(0); }

.overflow-hidden { overflow: hidden; }
.object-contain { object-fit: contain; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.ring-offset-background { --tw-ring-offset-color: hsl(var(--background)); }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-0:focus { --tw-ring-shadow: 0 0 #0000; }
.focus\:ring-offset-0:focus { --tw-ring-offset-width: 0px; }

.focus-visible\:outline-none:focus-visible { outline: none; }
.focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 2px hsl(var(--ring)); }
.focus-visible\:ring-ring:focus-visible { --tw-ring-color: hsl(var(--ring)); }
.focus-visible\:ring-offset-2:focus-visible { --tw-ring-offset-width: 2px; }

.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }

.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:bg-govBlue\/90:hover { background-color: rgba(34, 99, 174, 0.9); }
.hover\:underline:hover { text-decoration: underline; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.15s;
    background-color: var(--govBlue);
    color: white;
    height: 2.75rem;
    padding: 1.25rem 2rem;
    width: 100%;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background-color: rgba(34, 99, 174, 0.9); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"] {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: hsl(var(--foreground));
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2); }
input::placeholder { color: hsl(var(--muted-foreground) / 0.5); }

/* Loading animation */
.loading__component { position: relative; }
.loading__bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--govBlue) 0%, #60a5fa 50%, var(--govBlue) 100%);
    background-size: 200% 100%;
    animation: loadingBar 1.5s infinite;
    z-index: 9999;
    display: none;
}
.loading__bar.active { display: block; }

.loading__circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loading__circle.active { display: flex; }

.loading__circle-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--govBlue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: loading__circle-spin 0.6s linear infinite;
}

@keyframes loading__circle-spin {
    to { transform: rotate(360deg); }
}

@keyframes loadingBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (min-width: 768px) {
    .md\:h-10 { height: 2.5rem; }
    .md\:text-sm { font-size: 0.875rem; }
    .md\:text-3xl { font-size: 1.875rem; }
}

/* Card styles */
.shadcn-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--card-border));
    border-radius: 1rem;
}

/* Gradient backgrounds */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-600 { --tw-gradient-to: #2563eb; }
.from-green-500 { --tw-gradient-from: #22c55e; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-emerald-600 { --tw-gradient-to: #059669; }
.hover\:from-blue-600:hover { --tw-gradient-from: #2563eb; }
.hover\:to-blue-700:hover { --tw-gradient-to: #1d4ed8; }
.hover\:from-green-600:hover { --tw-gradient-from: #16a34a; }
.hover\:to-emerald-700:hover { --tw-gradient-to: #047857; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-blue-200\/50:hover { box-shadow: 0 10px 15px -3px rgba(191, 219, 254, 0.5); }
.shadow-green-200\/50 { box-shadow: 0 10px 15px -3px rgba(187, 247, 208, 0.5); }

/* Animation */
.animate-spin { animation: loading__circle-spin 1s linear infinite; }
@keyframes dotAnimation {
    0%, 20% { opacity: 0; }
    21%, 80% { opacity: 1; }
    81%, 100% { opacity: 0; }
}

/* Additional utility */
.scale-100 { transform: scale(1); }
.font-mono { font-family: var(--font-mono); }
.pr-4 { padding-right: 1rem; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.h-full { height: 100%; }
.w-px { width: 1px; }
.h-6 { height: 1.5rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-3 { height: 0.75rem; }
.w-3 { width: 0.75rem; }
.flex-shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

