/* Стили панелей слоев и свойств */
.layers-panel, .properties-panel {
    width: 280px;
    background: #2a2a2a;
    border-right: 1px solid #404040;
    padding: 20px;
    overflow-y: auto;
}

.properties-panel {
    border-right: none;
    border-left: 1px solid #404040;
}

.layers-panel h3, .properties-panel h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #fff;
    border-bottom: 1px solid #404040;
    padding-bottom: 8px;
}

/* Список слоев */
.layers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-item {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.layer-item:hover {
    background: #333;
    border-color: #555;
}

.layer-item.selected {
    background: #007acc;
    border-color: #007acc;
}

.layer-item.selected:hover {
    background: #0066aa;
}

.layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.layer-type {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.layer-controls {
    display: flex;
    gap: 4px;
}

.layer-control {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-control:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.layer-control.active {
    color: #007acc;
}

.layer-name {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-word;
}

.layer-info {
    font-size: 11px;
    color: #888;
}

/* Панель свойств */
.properties-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.property-group {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 15px;
}

.property-group h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.property-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.property-row:last-child {
    margin-bottom: 0;
}

.property-label {
    font-size: 12px;
    color: #ccc;
    min-width: 60px;
}

.property-input {
    flex: 1;
    margin-left: 10px;
}

.property-input input, .property-input select, .property-input textarea {
    width: 100%;
    padding: 6px 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.property-input input:focus, .property-input select:focus, .property-input textarea:focus {
    outline: none;
    border-color: #007acc;
}

.property-input textarea {
    resize: vertical;
    min-height: 60px;
}

/* Цветовой пикер */
.color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #555;
    cursor: pointer;
}

.color-input {
    width: 60px !important;
}

/* Слайдеры */
.slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider {
    flex: 1;
    height: 4px;
    background: #555;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #007acc;
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #007acc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 11px;
    color: #888;
    min-width: 30px;
    text-align: right;
}

/* Кнопки анимации */
.animation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.animation-btn {
    padding: 6px 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.animation-btn:hover {
    background: #404040;
    border-color: #666;
}

.animation-btn.active {
    background: #007acc;
    border-color: #007acc;
    color: #fff;
}