/**
 * The Funnels page (dashboard/funnel.html), beside the stats page's sheet it shares
 * (css/stats.css: the bar list, the skeleton and the table). Until 2026-10-24 these rules sat in
 * the template, about 290 lines of them, with a gradient for every step and a full-screen
 * overlay while a funnel was read.
 */

/* ==========================================================================
   The steps being built: one row each, in a list (the shared .row-list)
   ========================================================================== */

.funnel-step-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.15s;
}
.funnel-step-card.dragging { opacity: 0.5; }
.funnel-step-card.drop-before { box-shadow: inset 0 2px 0 #818cf8; }
.funnel-step-card.drop-after { box-shadow: inset 0 -2px 0 #818cf8; }

.funnel-step-card .drag-handle {
    flex: none;
    cursor: grab;
    color: #94a3b8;
}
.funnel-step-card .step-number {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
}
.funnel-step-card .step-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9375rem;
    color: #f8fafc;
}
.funnel-step-card .step-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.125rem;
}
.step-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    transition: background-color 0.15s, color 0.15s;
}
.step-action-btn:hover { background: rgba(255, 255, 255, 0.06); color: #f8fafc; }
.step-action-btn.delete:hover { background: rgba(244, 63, 94, 0.12); color: #fda4af; }
.step-action-btn:disabled { opacity: 0.35; cursor: default; background: none; color: #94a3b8; }
.step-action-btn:focus-visible { outline: 2px solid #818cf8; outline-offset: 1px; }

/* ==========================================================================
   The event picker under the steps
   ========================================================================== */

#eventDropdown .dropdown-item {
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #f1f5f9;
}
/* an event of a group, under the group it belongs to */
#eventDropdown .dropdown-item-member { padding-left: 2.5rem; }
#eventDropdown .dropdown-item:hover,
#eventDropdown .dropdown-item.highlighted { background: rgba(148, 163, 184, 0.14); }
#eventDropdown .no-results {
    padding: 0.875rem;
    color: #94a3b8;
    font-size: 0.875rem;
}
