/* ═══════════════ Watchlist Widget ═══════════════ */
.watchlist-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.watchlist-widget {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    overflow-y: auto;
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.watchlist-item:hover {
    background: var(--surface-2);
}

.watchlist-item.active {
    background: var(--surface-3);
}

.watchlist-item-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.watchlist-item-info {
    flex: 1;
    min-width: 0;
}

.watchlist-item-symbol {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.watchlist-item-pair {
    font-size: 10px;
    color: var(--text-muted);
}

.watchlist-item-price {
    text-align: right;
    font-family: var(--font-mono);
}

.watchlist-item-price .price {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.watchlist-item-price .change {
    font-size: 10px;
}

.watchlist-item-price .change.pnl-positive {
    color: var(--green);
}

.watchlist-item-price .change.pnl-negative {
    color: var(--red);
}

/* Watchlist header add button (v2.24.0) */
.wl-add-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.wl-add-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.wl-add-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(45deg);
}

/* Add coin button */
.watchlist-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    margin: 4px 8px;
    font-size: 11px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.watchlist-add:hover {
    color: var(--text-secondary);
    border-color: var(--text-muted);
    background: var(--surface-1);
}

/* Empty state */
.watchlist-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 12px;
}

/* ═══════════════ DRAG & DROP ═══════════════ */
.watchlist-item[draggable="true"] {
    cursor: grab;
}
.watchlist-item.wl-dragging {
    opacity: 0.4;
    background: var(--accent-muted);
    border: 1px dashed var(--accent);
    cursor: grabbing;
}

/* ═══════════════ COMPACT MODE (narrow widget) ═══════════════ */
.wl-compact .watchlist-item-price {
    display: none;
}

/* ═══════════════ MOBILE ═══════════════ */
@media (max-width: 768px) {
    .watchlist-item {
        padding: 10px 12px;
        gap: 10px;
        min-height: 48px;
    }

    .watchlist-item-logo {
        width: 28px;
        height: 28px;
    }

    .watchlist-item-symbol {
        font-size: 14px;
    }

    .watchlist-item-pair {
        font-size: 11px;
    }

    .watchlist-item-price .price {
        font-size: 14px;
    }

    .watchlist-item-price .change {
        font-size: 11px;
    }

    .watchlist-add {
        padding: 12px;
        margin: 6px 12px;
        font-size: 13px;
        min-height: 44px;
    }
}
