/* style.css */
.image-editor-pro {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-actions, .view-controls {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-import {
    background-color: #3498db;
    color: white;
}

.btn-save {
    background-color: #27ae60;
    color: white;
}

.btn-reset {
    background-color: #e74c3c;
    color: white;
}

.editor-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.tools-panel {
    width: 250px;
    background-color: #34495e;
    color: white;
    overflow-y: auto;
    padding: 15px 0;
}

.tool-category {
    margin-bottom: 15px;
}

.tool-category h3 {
    padding: 0 15px 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 10px;
}

.tool-list button {
    padding: 8px 15px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tool-list button:hover {
    background-color: #3d566e;
}

.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1;
    overflow: auto;
    padding: 20px;
}

.canvas-wrapper {
    position: relative;
}

#main-canvas, #overlay-canvas {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#overlay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.before-after-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 50%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.before-after-slider.active {
    opacity: 1;
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    cursor: ew-resize;
    pointer-events: all;
}

.properties-panel {
    width: 300px;
    background-color: white;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.panel-header h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

#histogram {
    width: 100%;
    height: 100px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.tool-options {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.tool-option {
    margin-bottom: 15px;
}

.tool-option label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.slider {
    width: 100%;
}

.value {
    display: inline-block;
    width: 40px;
    text-align: right;
    font-family: monospace;
}

.preset-angles {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.preset-angles button {
    flex: 1;
    padding: 5px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    color: #95a5a6;
    padding: 40px 0;
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.color-picker {
    padding: 15px;
    border-top: 1px solid #eee;
}

.current-color {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.color-values {
    font-size: 13px;
    font-family: monospace;
}

.color-values div {
    margin-bottom: 3px;
}

.status-bar {
    padding: 5px 15px;
    background-color: #2c3e50;
    color: white;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.image-info, .color-info {
    display: flex;
    gap: 15px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .tools-panel {
        width: 200px;
    }
    .properties-panel {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .editor-workspace {
        flex-direction: column;
    }
    .tools-panel {
        width: 100%;
        height: auto;
        order: 1;
    }
    .canvas-container {
        order: 2;
    }
    .properties-panel {
        width: 100%;
        order: 3;
    }
}