/* === Image Editor Modal === */
.modal-editor {
    width: 900px;
    max-width: 95vw;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-editor h2 {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 18px;
}

.modal-editor .modal-close {
    top: 16px;
    right: 20px;
}

.editor-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 400px;
}

/* Editor Tabs */
.editor-tabs {
    width: 80px;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.editor-tab {
    background: none;
    border: none;
    padding: 12px 8px;
    cursor: pointer;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    border-left: 3px solid transparent;
    transition: all 0.15s;
    font-family: var(--font);
    position: relative;
}

.editor-tab:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.editor-tab.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: #fff;
}

.editor-tab i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.coming-soon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: 6px;
    padding: 1px 3px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* Editor Panel */
.editor-panel {
    width: 250px;
    padding: 16px;
    overflow-y: auto;
    border-right: 1px solid var(--gray-200);
}

.editor-tab-content {
    display: none;
}

.editor-tab-content.active {
    display: block;
}

/* Enhance Options */
.enhance-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.enhance-option:hover {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
}

.enhance-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.enhance-info h4 {
    font-size: 13px;
    margin-bottom: 2px;
}

.enhance-info p {
    font-size: 11px;
    color: var(--gray-500);
}

.enhance-check {
    margin-left: auto;
    color: var(--success);
    font-size: 18px;
}

/* Color Sliders */
.color-slider {
    margin-bottom: 16px;
}

.color-slider label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.color-slider input[type="range"] {
    width: 100%;
    margin-bottom: 2px;
}

.color-slider span {
    font-size: 11px;
    color: var(--gray-500);
}

/* Editor Preview */
.editor-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

#editor-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* BG Strip */
.editor-bg-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-top: 1px solid var(--gray-200);
    background: #fff;
}

.editor-bg-strip span:first-child {
    font-weight: 700;
    font-size: 13px;
}

.editor-bg-note {
    color: var(--danger);
    font-size: 11px;
    font-weight: 600 !important;
    font-style: italic;
}

.bg-swatches {
    display: flex;
    gap: 6px;
    margin-left: 8px;
}

.bg-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    cursor: pointer;
    transition: border-color 0.15s;
}

.bg-swatch:hover,
.bg-swatch.active {
    border-color: var(--primary);
}

.bg-swatch.checkerboard {
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

.bg-swatch.custom-bg {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gray-500);
}

.editor-bg-strip .btn {
    margin-left: auto;
}
