/* Toolbar specific styles - merged into main style */

/* Panel styles */
.panel-section {
    padding: 10px;
    border-bottom: 1px solid #3a3f4a;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.panel-header span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.panel-btn {
    width: 20px;
    height: 20px;
    background: #3a3f4a;
    border: none;
    border-radius: 3px;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.panel-btn:hover {
    background: #4a4f5a;
    color: #fff;
}

/* Left Panel */
#left-panel {
    width: 180px;
    background: #252931;
    border-right: 1px solid #1a1d23;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Layers */
.layer-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.layer {
    padding: 8px 10px;
    background: #3a3f4a;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.layer:hover {
    background: #4a4f5a;
}

.layer.active {
    background: #4a9eff;
    color: #fff;
}

.layer-delete {
    margin-left: auto;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
}

.layer-delete:hover {
    color: #ff4444;
}

.layer-icon {
    width: 16px;
    height: 16px;
    background: #555;
    border-radius: 2px;
}

.layer-name {
    flex: 1;
}

.layer-eye {
    font-size: 12px;
    opacity: 0.7;
}

/* Frames */
.frame-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.frame {
    width: 36px;
    height: 36px;
    background: #3a3f4a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.frame:hover {
    background: #4a4f5a;
}

.frame.active {
    background: #4a9eff;
    color: #fff;
}

.frame-number {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 8px;
    opacity: 0.7;
}

/* Animation Controls */
.animation-controls {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.animation-controls button {
    flex: 1;
    padding: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.fps-control {
    font-size: 11px;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fps-control label {
    display: flex;
    justify-content: space-between;
}

.fps-control input[type="range"] {
    width: 100%;
    accent-color: #4a9eff;
}

/* Right Panel */
#right-panel {
    width: 220px;
    background: #252931;
    border-left: 1px solid #1a1d23;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Palette Grid */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin-bottom: 10px;
}

.palette-swatch {
    aspect-ratio: 1;
    border-radius: 3px;
    cursor: pointer;
    border: transparent;
    transition 2px solid: transform 0.1s;
}

.palette-swatch:hover {
    transform: scale(1.15);
    z-index: 1;
}

.palette-swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Palette Controls */
.palette-controls {
    display: flex;
    gap: 5px;
}

.palette-controls button {
    flex: 1;
    padding: 5px;
    font-size: 10px;
}

/* Preview */
.preview-container {
    background: #1a1d23;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#preview-canvas {
    image-rendering: pixelated;
    border: 1px solid #3a3f4a;
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    color: #888;
}

.preview-controls select {
    background: #3a3f4a;
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
}

.preview-controls select:focus {
    outline: 1px solid #4a9eff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.action-buttons button {
    flex: 1;
    min-width: calc(50% - 3px);
    padding: 6px;
    font-size: 11px;
}

/* Export */
.export-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.export-controls button {
    width: 100%;
}

#export-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
}

#export-links a {
    color: #4a9eff;
    font-size: 11px;
    text-decoration: none;
    padding: 3px 0;
}

#export-links a:hover {
    text-decoration: underline;
}

#export-links a:visited {
    color: #7aa3e0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1d23;
}

::-webkit-scrollbar-thumb {
    background: #3a3f4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4f5a;
}
