/* Animation Layer System Styles */

.layer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.layer-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.layer-item.disabled { opacity: 0.5; }
.layer-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.layer-toggle {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #fff;
}
.layer-type {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid #333;
    border-radius: 3px;
    background: #222;
    color: #e5e5e5;
    cursor: pointer;
}
.layer-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.layer-delete:hover { background: #3a1515; color: #e74c3c; }
.layer-controls {
    display: flex;
    gap: 8px;
}
.layer-slider-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.layer-slider-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.layer-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
}
.layer-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* Layer Advanced Controls */
.layer-expand-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 10px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}
.layer-expand-btn:hover { background: #222; color: #999; }
.layer-expand-btn.expanded { transform: rotate(180deg); }
.layer-advanced {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #333;
    margin-top: 4px;
}
.layer-advanced.visible { display: flex; }
.layer-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.layer-row-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    width: 45px;
    flex-shrink: 0;
}
.layer-axis-group {
    display: flex;
    gap: 4px;
}
.layer-axis-btn {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    padding: 3px 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    border-radius: 3px;
    cursor: pointer;
    color: #666;
    transition: all 0.15s;
}
.layer-axis-btn:hover { border-color: #555; }
.layer-axis-btn.active { background: #fff; border-color: #fff; color: #0a0a0a; }

/* Chain Blend Row */
.chain-blend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #333;
}
.chain-blend-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}
.chain-blend-row select {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    padding: 5px 8px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #e5e5e5;
    cursor: pointer;
}

/* Chains Container */
.chains-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chain-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 6px;
    min-height: 80px;
}
.chain-a-column { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
.chain-b-column { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.chain-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    margin-bottom: 2px;
}
.chain-label {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
}
.chain-a-label { background: #3b82f6; }
.chain-b-label { background: #f59e0b; }
.chain-layers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Chain Layer Items */
.chain-layer-item {
    background: #1a1a1a;
    border-radius: 4px;
    padding: 6px;
    border: 1px solid #333;
}
.chain-layer-item .layer-header {
    border: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    gap: 4px;
}
.chain-layer-item .layer-type {
    flex: 1;
    font-size: 10px;
    padding: 4px;
}
.chain-layer-item .layer-delete {
    padding: 2px 6px;
    font-size: 12px;
}
.chain-layer-item .layer-controls {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #333;
}

/* Mini Sliders */
.layer-mini-slider {
    flex: 1;
    height: 3px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
}
.layer-mini-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}
.layer-mini-value {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: #888;
    width: 32px;
    text-align: right;
}
.layer-blend-select {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    padding: 4px 6px;
    border: 1px solid #333;
    border-radius: 3px;
    background: #222;
    color: #e5e5e5;
    cursor: pointer;
}

.layer-empty {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #555;
    text-align: center;
    padding: 16px;
}
.global-anim-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    margin-top: 4px;
}
