/* swimlane-catcher.css — the bottom-of-view chip strip + hover-icon. */

/* === Catcher strip ====================================================== */

.swimlane-catcher {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    margin: 16px -24px -24px;   /* extend full width inside #view-area's p-6 padding */
    padding: 8px 24px 10px;
    background: #E8F5E9;
    border-top: 1px solid #C8E6C9;
    box-shadow: 0 -2px 8px -4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 64px;
    max-height: 96px;
}

.swimlane-catcher-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.swimlane-catcher-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.swimlane-catcher-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #66BB6A;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.swimlane-catcher.swimlane-catcher-empty .swimlane-catcher-hint { opacity: 0.9; }

.swimlane-catcher.swimlane-catcher-drop-target {
    background: #DCEDC8;
    border-top-color: #9CCC65;
}

.swimlane-chips {
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
    gap: 0;
    overflow: hidden;
    padding: 0;
    min-height: 36px;
    align-items: stretch;
}

.swimlane-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    background: #F1F8E9;
    border: none;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.2;
    color: #1B5E20;
    white-space: nowrap;
    cursor: grab;
    min-width: 0;
    flex: 1 1 0;
    user-select: none;
    transition: background 0.1s ease;
}
.swimlane-chip:hover { background: #C8E6C9; }
.swimlane-chip:active { cursor: grabbing; }
.swimlane-chip.swimlane-chip-dragging { opacity: 0.5; }

.swimlane-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #81C784;
    flex-shrink: 0;
}

.swimlane-chip-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swimlane-chip-completed .swimlane-chip-title {
    text-decoration: line-through;
    color: #9E9E9E;
}

.swimlane-chip-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #81C784;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.1s ease, color 0.1s ease;
}
.swimlane-chip-remove:hover { background: #FFEBEE; color: #C62828; }

.swimlane-chip-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.swimlane-chip:hover .swimlane-chip-plan-btn { opacity: 1; }
.swimlane-chip-plan-btn:hover { background: #eff6ff; color: #2563eb; }
.swimlane-chip-plan-btn.board-card-plan-btn-active { color: #3b82f6; opacity: 1; }

.swimlane-chip.swimlane-chip-drop-before {
    box-shadow: inset 3px 0 0 #43A047;
}

/* Board pins should stay compact; list and standalone swimlane rows fill cells. */
#view-area[data-view="board"] ~ .swimlane-catcher .swimlane-chip {
    flex: 0 0 auto;
}

/* === Hover-reveal "add to swimlane" icon on task rows/cards ============== */

.swimlane-hover-icon {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #66BB6A;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: auto;
}
.task-row:hover .swimlane-hover-icon,
.board-card:hover .swimlane-hover-icon,
.planned-list-row:hover .swimlane-hover-icon,
.goal-card:hover .swimlane-hover-icon {
    opacity: 1;
}
.swimlane-hover-icon:hover {
    background: #E8F5E9;
    color: #2E7D32;
}
.swimlane-hover-icon-busy { opacity: 0.5 !important; cursor: wait; }
.swimlane-hover-icon-disabled {
    color: #CBD5E1 !important;
    cursor: not-allowed !important;
}
.swimlane-hover-icon-disabled:hover {
    background: transparent !important;
    color: #CBD5E1 !important;
}
.swimlane-hover-icon-flash {
    background: #43A047 !important;
    color: white !important;
    opacity: 1 !important;
}

/* Board cards already have a plan button at top:6px right:6px — place the
 * swimlane icon to the left of it so both remain clickable. */
.board-card .swimlane-hover-icon {
    top: 6px;
    right: 32px;
    transform: none;
}
