﻿.layer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #182131;
    padding: 6px 8px;
    user-select: none;
    transition: all 0.15s ease;
}

.layer-row:hover {
    border-color: #3b82f6;
    background: #1f2b3e;
}

.layer-row.active {
    border-color: #ec4899;
    background: #2a2034;
}

.layer-row.drag-over {
    border-top: 2px solid #38bdf8;
}

.layer-row.is-dragging {
    opacity: 0.4;
}

.layer-drag-grip {
    color: #64748b;
    cursor: grab;
    padding: 2px 4px;
    font-size: 12px;
}

.layer-drag-grip:active {
    cursor: grabbing;
}

.layer-select {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    padding: 2px 4px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.layer-preview-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f472b6;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}

.layer-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.layer-title-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8fafc;
}
