/* =====================================================================
   THEME.CSS
   Extracted verbatim from the Google Stitch export (DESIGN.md tokens).
   NOTHING here changes any visual value - only moved from inline
   <style> blocks (duplicated on every page) into one cached file,
   so the browser downloads it once and every page loads faster.
   ===================================================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0px 10px 30px rgba(15, 23, 42, 0.08);
}

.glass-border-gradient {
    border: 1px solid transparent;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)) padding-box,
                linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(255,255,255,0.1)) border-box;
}

.progress-bar-glow {
    box-shadow: 0 0 10px rgba(0, 74, 198, 0.5);
}

.input-glow:focus-within {
    border-color: #004ac6;
    box-shadow: 0 0 0 4px rgba(0, 74, 198, 0.1);
}

.select-card.selected {
    border-color: #004ac6;
    border-width: 2px;
    background-color: rgba(219, 225, 255, 0.3);
}

/* Abstract background blobs used on landing/hero-style screens */
.bg-blob-1 {
    position: absolute; top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
}
.bg-blob-2 {
    position: absolute; bottom: -10%; right: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0,74,198,0.12) 0%, rgba(255,255,255,0) 70%);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideUp 0.5s ease-out forwards; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Simple fade for AJAX screen transitions (added for functionality, same easing language as Stitch) */
.ajax-fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Toast / inline error message used by forms (kept minimal, matches existing color tokens) */
.field-error {
    border-color: #ba1a1a !important;
}
.field-error-text {
    color: #ba1a1a;
    font-size: 12px;
    margin-top: 4px;
}

/* Button loading spinner (used during AJAX submit, no layout shift) */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
