/* calc-flow-helper.css */

/* --- Spotlight Effect --- */
.calc-spotlight-container {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.calc-spotlight-dimmed {
    opacity: 0.4;
    filter: grayscale(40%);
}
.calc-spotlight-dimmed:hover {
    opacity: 0.8;
    cursor: pointer;
}

.calc-spotlight-active {
    opacity: 1;
    filter: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05); /* Premium faint gold glow */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

/* Fix CSS grid blowout caused by horizontal scrolling */
.left-column {
    min-width: 0;
}

/* --- Premium Element Reel Progress Bar --- */
.calc-element-reel-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0; /* Removed extra margin */
    background: var(--pill-bg, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.1));
    padding: 6px 0; /* Reduced padding */
    
    /* Ensure it doesn't break the grid */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.calc-element-reel {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    width: 100%;
    box-sizing: border-box;
    /* Fading edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.calc-element-reel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.reel-item {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 0.7rem; /* Reduced to fit more */
    font-weight: 600;
    color: #94a3b8; /* Slate 400 */
    background: rgba(30, 41, 59, 0.8); /* Slate 800 */
    padding: 5px 12px; /* Slightly tighter padding */
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    cursor: default;
    letter-spacing: 0.3px;
}

.reel-arrow {
    color: #475569; /* Slate 600 */
    font-size: 0.65rem;
    margin: 0 10px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Completed State */
.reel-item.completed {
    color: #10b981; /* Emerald 500 */
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

/* Active State (You Are Here) */
.reel-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Vibrant Blue */
    border-color: #60a5fa; /* Blue 400 */
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}



.calc-element-reel { cursor: grab; user-select: none; }
.calc-element-reel.active-drag { cursor: grabbing; }


/* Light mode overrides */
body.light-mode .reel-item {
    color: #475569;
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.light-mode .reel-arrow {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .calc-element-reel-wrapper,
    .calc-element-reel {
        display: none !important;
    }
}


