/* --- START OF FILE /static/studio/future-predictor.css --- */
/* MATE - Multi-Agent Temporal Engine | Future Predictor UI */
/* Advanced futuristic design with ethereal animations */

/* ==============================================================================
   === CSS VARIABLES & THEME ===
   ============================================================================== */

:root {
    /* Future Predictor Palette */
    --fp-bg-deep: #030614;
    --fp-bg-void: rgba(3, 6, 20, 0.95);
    --fp-bg-panel: rgba(8, 15, 40, 0.85);
    --fp-bg-card: rgba(12, 22, 55, 0.7);
    
    /* Temporal Energy Colors */
    --fp-temporal-blue: #00d4ff;
    --fp-temporal-cyan: #00ffee;
    --fp-temporal-purple: #8b5cf6;
    --fp-temporal-magenta: #d946ef;
    --fp-temporal-gold: #fbbf24;
    
    /* Glow Effects */
    --fp-glow-blue: 0 0 30px rgba(0, 212, 255, 0.4);
    --fp-glow-purple: 0 0 30px rgba(139, 92, 246, 0.4);
    --fp-glow-cyan: 0 0 20px rgba(0, 255, 238, 0.3);
    --fp-glow-scanner: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 80px rgba(0, 212, 255, 0.4);
    
    /* Typography */
    --fp-text-primary: #f0f4ff;
    --fp-text-secondary: #94a3b8;
    --fp-text-muted: #64748b;
    
    /* Borders */
    --fp-border-subtle: rgba(100, 116, 139, 0.2);
    --fp-border-glow: rgba(0, 212, 255, 0.3);
    
    /* Timing */
    --fp-transition-swift: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --fp-transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --fp-transition-morphing: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ==============================================================================
   === FUTURE PREDICTOR SECTION LAYOUT ===
   ============================================================================== */

#future-predictor {
    background: var(--fp-bg-deep);
    min-height: calc(100vh - var(--header-height) - var(--mobile-nav-height) - 60px);
    position: relative;
    overflow: hidden;
}

/* Only apply flex layout when section is active */
#future-predictor.active {
    display: flex;
    flex-direction: column;
}

#future-predictor::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}


/* ==============================================================================
   === INITIAL STATE (Centered Input - Like Forge Builder) ===
   ============================================================================== */

.fp-initial-state {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-initial-state.transitioning {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.fp-initial-state.hidden {
    display: none;
}

/* Welcome Text */
.fp-welcome {
    text-align: center;
    animation: fp-fadeInUp 1s ease-out;
}

@keyframes fp-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-title {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.fp-title-glow {
    background: linear-gradient(135deg, var(--fp-temporal-cyan) 0%, var(--fp-temporal-blue) 50%, var(--fp-temporal-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: fp-title-shimmer 3s ease-in-out infinite;
}

@keyframes fp-title-shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.fp-title-accent {
    color: var(--fp-text-primary);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.fp-subtitle {
    font-size: 1.1rem;
    color: var(--fp-text-secondary);
    font-weight: 400;
}


/* ==============================================================================
   === PROMPT CONTAINER (Centered Bar) ===
   ============================================================================== */

.fp-prompt-container {
    width: 100%;
    max-width: 800px;
    animation: fp-fadeInUp 1s ease-out 0.3s backwards;
}

.fp-prompt-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.fp-prompt-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 20px;
    background: var(--fp-bg-panel);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--fp-glow-blue), 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all var(--fp-transition-smooth);
}

.fp-prompt-bar:focus-within {
    border-color: var(--fp-temporal-blue);
    box-shadow: 
        0 0 0 2px rgba(0, 212, 255, 0.2),
        var(--fp-glow-blue),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.fp-prompt-icon {
    font-size: 1.3rem;
    color: var(--fp-temporal-purple);
    opacity: 0.8;
}

.fp-prompt-bar .fp-query-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--fp-text-primary);
    font-family: inherit;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 1.5;
}

.fp-prompt-bar .fp-query-input::placeholder {
    color: var(--fp-text-muted);
}

.fp-prompt-bar .fp-predict-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--fp-temporal-blue) 0%, var(--fp-temporal-purple) 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--fp-transition-swift);
    opacity: 0.5;
    pointer-events: none;
}

.fp-prompt-bar .fp-predict-btn:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
}

.fp-prompt-bar .fp-predict-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.fp-prompt-bar .fp-predict-btn:not(:disabled):active {
    transform: translateY(0);
}


/* Context Row */
.fp-context-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.fp-context-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--fp-border-subtle);
    border-radius: 20px;
    color: var(--fp-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--fp-transition-swift);
}

.fp-context-toggle:hover {
    border-color: var(--fp-temporal-blue);
    color: var(--fp-temporal-blue);
}

.fp-context-toggle.active i {
    transform: rotate(45deg);
}

.fp-context-input {
    flex: 1;
    max-width: 400px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 16px;
    color: var(--fp-text-primary);
    font-size: 0.9rem;
    opacity: 0;
    width: 0;
    padding: 0;
    border: none;
    transition: all var(--fp-transition-smooth);
}

.fp-context-input.visible {
    opacity: 1;
    width: auto;
    padding: 10px 16px;
    border: 1px solid var(--fp-border-subtle);
}

.fp-context-input:focus {
    outline: none;
    border-color: var(--fp-temporal-blue);
}


/* Quick Prompts */
.fp-quick-prompts {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.fp-quick-prompt {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    color: var(--fp-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--fp-transition-swift);
}

.fp-quick-prompt:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--fp-temporal-purple);
    color: var(--fp-text-primary);
    transform: translateY(-2px);
}


/* ==============================================================================
   === OUTPUT STATE (Shown after clicking Analyze) ===
   ============================================================================== */

.fp-output-state {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-output-state.hidden {
    display: none;
}

.fp-output-state.entering {
    animation: fp-slideInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fp-slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Output Header (Back Button + Query Display) */
.fp-output-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fp-border-subtle);
}

.fp-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--fp-bg-panel);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 12px;
    color: var(--fp-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--fp-transition-swift);
}

.fp-back-btn:hover {
    border-color: var(--fp-temporal-blue);
    color: var(--fp-temporal-blue);
    background: rgba(0, 212, 255, 0.1);
}

/* Download Button & Dropdown */
.fp-download-wrapper {
    position: relative;
}

.fp-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--fp-temporal-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fp-download-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--fp-temporal-cyan);
}

.fp-download-btn i {
    font-size: 0.9rem;
}

.fp-download-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(15, 20, 40, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.fp-download-wrapper.open .fp-download-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fp-download-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--fp-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.fp-download-option:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--fp-text-primary);
}

.fp-download-option i {
    width: 20px;
    color: var(--fp-temporal-cyan);
}

.fp-query-display {
    flex: 1;
    padding: 12px 20px;
    background: var(--fp-bg-card);
    border-radius: 12px;
    color: var(--fp-text-primary);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==============================================================================
   === OUTPUT PANEL ===
   ============================================================================== */

.fp-output-panel {
    position: relative;
    flex: 1;
    background: var(--fp-bg-panel);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 16px;
    min-height: 500px;
    overflow: hidden;
    transition: var(--fp-transition-smooth);
}

.fp-output-container {
    position: relative;
    padding: 24px;
    min-height: 400px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar for Output */
.fp-output-container::-webkit-scrollbar {
    width: 8px;
}

.fp-output-container::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

.fp-output-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--fp-temporal-purple), var(--fp-temporal-blue));
    border-radius: 4px;
}

.fp-output-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--fp-temporal-cyan), var(--fp-temporal-purple));
}

.fp-output-container.blurred {
    filter: blur(12px) brightness(0.5) saturate(0.8);
}


/* ==============================================================================
   === SCANNING LOADER ANIMATION (CINEMATIC) ===
   ============================================================================== */

.fp-scanner-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, 
        rgba(3, 6, 20, 0.6) 0%, 
        rgba(3, 6, 20, 0.4) 50%, 
        rgba(3, 6, 20, 0.6) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
    overflow: hidden;
}

.fp-scanner-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.fp-scanner-overlay.active {
    display: flex;
    animation: fp-overlay-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fp-overlay-fade-in {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(4px); }
}

/* Thin blue scanning line */
.fp-scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.6) 10%, 
        var(--fp-temporal-cyan) 30%, 
        var(--fp-temporal-blue) 50%, 
        var(--fp-temporal-cyan) 70%, 
        rgba(0, 212, 255, 0.6) 90%, 
        transparent 100%
    );
    box-shadow: 
        0 0 20px 5px rgba(0, 212, 255, 0.4),
        0 0 40px 10px rgba(0, 212, 255, 0.2),
        0 0 60px 15px rgba(0, 212, 255, 0.1);
    animation: fp-scan-sweep 2.5s ease-in-out infinite;
}

/* Horizontal scanning glow trail */
.fp-scanner-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    top: -40px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.08) 40%, 
        rgba(0, 212, 255, 0.15) 50%, 
        rgba(0, 212, 255, 0.08) 60%, 
        transparent 100%
    );
    pointer-events: none;
}

@keyframes fp-scan-sweep {
    0% { 
        top: -5%; 
        opacity: 0;
    }
    5% { 
        opacity: 1; 
    }
    48% { 
        top: 100%; 
        opacity: 1;
    }
    52% { 
        top: 100%; 
        opacity: 0; 
    }
    53% { 
        top: -5%; 
        opacity: 0; 
    }
    57% { 
        opacity: 1; 
    }
    100% { 
        top: 100%; 
        opacity: 1;
    }
}

/* Status display */
.fp-scanner-status {
    text-align: center;
    color: var(--fp-temporal-cyan);
    z-index: 11;
    padding: 20px;
}

.fp-scanner-status-text {
    font-size: 1.15em;
    font-weight: 500;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: fp-status-glow 2s ease-in-out infinite;
}

@keyframes fp-status-glow {
    0%, 100% { 
        opacity: 0.8; 
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    50% { 
        opacity: 1; 
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    }
}

.fp-scanner-agent {
    font-size: 0.9em;
    color: var(--fp-text-muted);
    margin-top: 8px;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* Cinematic fade-out animation */
.fp-scanner-overlay.fade-out {
    animation: fp-scanner-cinematic-fade 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fp-scanner-cinematic-fade {
    0% { 
        opacity: 1;
        backdrop-filter: blur(4px);
    }
    30% {
        backdrop-filter: blur(8px);
    }
    50% {
        backdrop-filter: blur(2px);
    }
    100% { 
        opacity: 0;
        backdrop-filter: blur(0px);
        visibility: hidden;
    }
}

.fp-scanner-line.fade-out {
    animation: fp-scanner-line-burst 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fp-scanner-line-burst {
    0% { 
        opacity: 1;
        transform: scaleY(1);
        box-shadow: 
            0 0 20px 5px rgba(0, 212, 255, 0.4),
            0 0 40px 10px rgba(0, 212, 255, 0.2);
    }
    30% {
        transform: scaleY(3);
        box-shadow: 
            0 0 40px 15px rgba(0, 212, 255, 0.6),
            0 0 80px 30px rgba(0, 212, 255, 0.3);
    }
    100% { 
        opacity: 0;
        transform: scaleY(0);
        box-shadow: none;
    }
}


/* ==============================================================================
   === PLACEHOLDER STATE ===
   ============================================================================== */

.fp-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    text-align: center;
    color: var(--fp-text-muted);
}

.fp-placeholder-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: fp-float 4s ease-in-out infinite;
}

@keyframes fp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fp-placeholder-text {
    font-size: 1.1em;
    max-width: 400px;
}


/* ==============================================================================
   === FORMATTED OUTPUT STYLES ===
   ============================================================================== */

.fp-output-content {
    animation: fp-content-reveal 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fp-content-reveal {
    from { 
        opacity: 0; 
        transform: translateY(30px);
        filter: blur(10px);
    }
    60% {
        filter: blur(0px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Staggered reveal for child elements */
.fp-output-content > * {
    animation: fp-element-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fp-output-content > *:nth-child(1) { animation-delay: 0.1s; }
.fp-output-content > *:nth-child(2) { animation-delay: 0.2s; }
.fp-output-content > *:nth-child(3) { animation-delay: 0.3s; }
.fp-output-content > *:nth-child(4) { animation-delay: 0.4s; }
.fp-output-content > *:nth-child(5) { animation-delay: 0.5s; }
.fp-output-content > *:nth-child(6) { animation-delay: 0.6s; }
.fp-output-content > *:nth-child(7) { animation-delay: 0.7s; }
.fp-output-content > *:nth-child(8) { animation-delay: 0.8s; }
.fp-output-content > *:nth-child(n+9) { animation-delay: 0.9s; }

@keyframes fp-element-reveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headings */
.fp-heading {
    font-weight: 700;
    color: var(--fp-text-primary);
    margin: 24px 0 12px;
    line-height: 1.3;
}

.fp-h1 {
    font-size: 2em;
    background: linear-gradient(90deg, var(--fp-temporal-cyan), var(--fp-temporal-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
}

.fp-h2 {
    font-size: 1.5em;
    color: var(--fp-temporal-blue);
    border-bottom: 1px solid var(--fp-border-subtle);
    padding-bottom: 8px;
}

.fp-h3 {
    font-size: 1.2em;
    color: var(--fp-text-primary);
}

/* Paragraphs */
.fp-paragraph {
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--fp-text-secondary);
    margin: 14px 0;
    text-align: justify;
}

.fp-bold {
    font-weight: 600;
    color: var(--fp-text-primary);
}

.fp-italic {
    font-style: italic;
}

/* Statistics */
.fp-statistic {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    margin: 16px 10px;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 12px;
    transition: var(--fp-transition-swift);
}

.fp-statistic:hover {
    border-color: var(--fp-border-glow);
    transform: translateY(-2px);
}

.fp-stat-highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--fp-border-glow);
    box-shadow: var(--fp-glow-blue);
}

.fp-stat-value {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--fp-temporal-cyan) 0%, var(--fp-temporal-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fp-stat-label {
    font-size: 0.85em;
    color: var(--fp-text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lists */
.fp-list {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--fp-text-secondary);
}

.fp-list li {
    margin: 8px 0;
    line-height: 1.6;
    position: relative;
}

.fp-list li::marker {
    color: var(--fp-temporal-blue);
}

/* Tables */
.fp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--fp-bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.fp-table th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--fp-temporal-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--fp-border-subtle);
}

.fp-table td {
    padding: 12px 16px;
    color: var(--fp-text-secondary);
    border-bottom: 1px solid var(--fp-border-subtle);
}

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

.fp-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

/* Callouts */
.fp-callout {
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid;
}

.fp-callout-info {
    background: rgba(0, 212, 255, 0.08);
    border-left-color: var(--fp-temporal-blue);
}

.fp-callout-warning {
    background: rgba(251, 191, 36, 0.08);
    border-left-color: var(--fp-temporal-gold);
}

.fp-callout-success {
    background: rgba(34, 197, 94, 0.08);
    border-left-color: #22c55e;
}

.fp-callout-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--fp-text-primary);
}

.fp-callout-content {
    color: var(--fp-text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}


/* ==============================================================================
   === INTERACTIVE REFINEMENT PANEL ===
   ============================================================================== */

.fp-refinement-panel {
    margin-top: 24px;
    padding: 20px;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 12px;
    display: none;
}

.fp-refinement-panel.visible {
    display: block;
    animation: fp-slide-down 0.4s ease-out;
}

.fp-refinement-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--fp-temporal-purple);
    font-weight: 600;
}

.fp-refinement-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.fp-refinement-tab {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--fp-border-subtle);
    border-radius: 8px;
    color: var(--fp-text-secondary);
    font-size: 0.9em;
    cursor: pointer;
    transition: var(--fp-transition-swift);
}

.fp-refinement-tab:hover {
    border-color: var(--fp-temporal-purple);
    color: var(--fp-temporal-purple);
}

.fp-refinement-tab.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--fp-temporal-purple);
    color: var(--fp-temporal-purple);
}

.fp-refinement-input-row {
    display: flex;
    gap: 12px;
}

.fp-refinement-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 8px;
    color: var(--fp-text-primary);
    font-size: 0.95em;
}

.fp-refinement-input:focus {
    outline: none;
    border-color: var(--fp-temporal-purple);
}

.fp-refine-btn {
    padding: 12px 20px;
    background: var(--fp-temporal-purple);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--fp-transition-swift);
}

.fp-refine-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--fp-glow-purple);
}

.fp-refinement-response {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--fp-border-subtle);
}


/* ==============================================================================
   === QUICK PROMPTS ===
   ============================================================================== */

.fp-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.fp-quick-prompt {
    padding: 8px 16px;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border-subtle);
    border-radius: 20px;
    color: var(--fp-text-secondary);
    font-size: 0.85em;
    cursor: pointer;
    transition: var(--fp-transition-swift);
}

.fp-quick-prompt:hover {
    border-color: var(--fp-temporal-cyan);
    color: var(--fp-temporal-cyan);
    transform: translateY(-1px);
}


/* ==============================================================================
   === RESPONSIVE DESIGN ===
   ============================================================================== */

@media (max-width: 768px) {
    .fp-header .main-heading {
        font-size: 2em;
    }
    
    .fp-input-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fp-predict-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fp-statistic {
        width: 100%;
        margin: 10px 0;
    }
    
    .fp-refinement-input-row {
        flex-direction: column;
    }
    
    .fp-table {
        font-size: 0.9em;
    }
    
    .fp-table th,
    .fp-table td {
        padding: 10px 12px;
    }
}


/* ==============================================================================
   === MORPHING PARTICLE BACKGROUND (OPTIONAL ENHANCEMENT) ===
   ============================================================================== */

.fp-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.fp-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--fp-temporal-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: fp-particle-float 10s linear infinite;
}

@keyframes fp-particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}


/* --- END OF FILE /static/studio/future-predictor.css --- */
