/* ==========================================================================
   File: Tool/3d/ui/layers.css
   KHALA STUDIO — BORDERLESS LAYER SYSTEM
   ========================================================================== */

.threed-inspector-layers {
    height: 240px;
    min-height: 100px;
    max-height: 480px;
    background: #18181a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.threed-panel-resizer {
    height: 8px;
    background: #18181a;
    border: none;
    cursor: row-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.threed-resizer-line {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1px;
}

.threed-layers-header {
    padding: 6px 16px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8c8c94;
    flex-shrink: 0;
}

.threed-layers-order-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.threed-layer-order-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #202024;
    border-radius: 6px;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.threed-layer-order-btn:active {
    background: #2b2b32;
    color: #ffffff;
}

.threed-layer-order-btn .material-symbols-outlined {
    font-size: 15px;
}

.threed-layer-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.threed-layer-item {
    background: #202024;
    border: none;
    padding: 7px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.threed-layer-item.active {
    background: #0A84FF;
    color: #ffffff;
}

.threed-layer-item.active .threed-layer-name,
.threed-layer-item.active .threed-layer-icon,
.threed-layer-item.active .threed-layer-btn {
    color: #ffffff !important;
}

.threed-layer-item.active .threed-layer-type-badge.text-badge {
    background: rgba(255, 255, 255, 0.25);
}

.threed-layer-item.is-locked {
    opacity: 0.65;
}

.threed-layer-item[draggable="true"] {
    cursor: grab;
}

.threed-layer-item.dragging {
    opacity: 0.35;
}

.threed-layer-item.drag-over {
    background: #2c2c36;
}

.threed-layer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.threed-layer-type-badge.text-badge {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #ffffff;
    background: #0A84FF;
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.threed-layer-icon {
    font-size: 16px;
    color: #8c8c94;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.threed-layer-icon.smart-badge {
    color: #30d158;
}

.threed-layer-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.threed-layer-name[contenteditable="true"] {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 0 4px;
    outline: none;
}

.threed-layer-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.threed-layer-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #71717a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.threed-layer-btn.locked-mode {
    color: #ff9f0a;
}

.threed-layer-btn.hidden-mode {
    opacity: 0.3;
}