/* CaptionPal Custom Styles */
/* Typography */
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background-color: #F8FAFC;
    color: #1E1B4B;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.font-logo {
    font-family: 'Carter One', cursive;
}

.font-display {
    font-family: 'Instrument Serif', Georgia, serif;
}

/* Effects */
.texture-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 10;
}

.blob-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--lab-primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: blob-float 20s infinite alternate ease-in-out;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Forms & Inputs */
.input-lab {
    background: white;
    border: 2px solid #E0E7FF;
    transition: all 0.2s ease;
}

.input-lab:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Buttons */
.btn-lab {
    background: #6366F1;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-lab:hover {
    background: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.25), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
}

.btn-lab:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    background: white;
    border: 2px solid #E0E7FF;
    color: #475569;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #6366F1;
    color: #6366F1;
}

.btn-secondary.active {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.06);
    color: #6366F1;
}

/* Components: Cards */
.card-lab {
    background: white;
    border: 1px solid #E0E7FF;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-lab:hover {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.05), 0 10px 10px -5px rgba(99, 102, 241, 0.02);
    border-color: rgba(99, 102, 241, 0.2);
}

.engine-panel {
    background: #1E1B4B;
    color: white;
}

.engine-panel .card-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Components: Chips & Pills */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #E0E7FF;
    border-radius: 100px;
    font-size: 13px;
    color: #4F46E5;
    font-weight: 500;
}

.tag-pill-accent {
    background: #D1FAE5;
    color: #059669;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #F1F5F9;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-right: 6px;
}

.summary-pill:last-child {
    margin-right: 0;
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Components: Interface Elements */
.caption-result {
    background: white;
    border: 1px solid #E0E7FF;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.caption-result:hover {
    border-color: #6366F1;
}

.knob-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.knob-option {
    padding: 6px 16px;
    border: 1px solid #E0E7FF;
    border-radius: 100px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: white;
    color: #475569;
}

.knob-option:hover {
    border-color: #6366F1;
    background: #F8FAFC;
}

.knob-option:focus-visible {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}

.knob-option.selected {
    border-color: #6366F1;
    background: #6366F1;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.knob-option.selected::before {
    content: '✓';
    font-size: 12px;
    font-weight: 900;
}

.platform-toggle {
    display: flex;
    background: #E0E7FF;
    border-radius: 10px;
    padding: 4px;
}

.platform-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    color: #475569;
}

.platform-btn.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #4F46E5;
}

.input-summary-bar {
    background: white;
    border: 1px solid #E0E7FF;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    animation: fade-in 0.3s ease-out;
}

/* Progress & Misc */
.round-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.round-dot.completed {
    background: #6366F1;
}

.round-dot.current {
    background: #6366F1;
    animation: pulse-soft 2s infinite;
}

.round-dot.upcoming {
    background: #E0E7FF;
}

.footer-dark {
    background: #1E1B4B;
    color: white;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Utilities - Animations */
@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

.animate-pulse-soft {
    animation: pulse-soft 2.5s ease-in-out infinite;
}

@keyframes toast-in {
    0% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.animate-toast-in {
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes guidance-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.guidance-pulse {
    animation: guidance-pulse 2s infinite;
}

.animate-slide-in {
    animation: slide-in 0.4s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Variables for Reference */
:root {
    --lab-cream: #F8FAFC;
    --lab-sand: #E0E7FF;
    --lab-primary: #6366F1;
    --lab-accent: #10B981;
    --lab-ink: #1E1B4B;
    --lab-slate: #475569;
    --lab-muted: #94A3B8;
    --lab-divider: #E0E7FF;
}