/* Visual Editor Styles */
#editor-ui-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
    font-family: 'Pretendard', sans-serif;
}

#editor-ui-container.active {
    display: flex;
}

.editor-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #0A192F;
    color: white;
    display: flex;
    justify-content: space-between;
    items-center: center;
}

.editor-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.editor-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Edit Controls */
.editor-control {
    margin-bottom: 20px;
}

.editor-control label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editor-control input,
.editor-control textarea,
.editor-control select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.editor-control input:focus,
.editor-control textarea:focus {
    outline: none;
    border-color: #0A192F;
    box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.1);
}

.editor-btn {
    width: 100%;
    padding: 12px;
    background: #0A192F;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.editor-btn:hover {
    background: #112240;
}

.editor-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    margin-top: 8px;
}

.editor-btn.secondary:hover {
    background: #e5e7eb;
}

/* Highlighting */
.editor-highlight {
    outline: 2px solid #007AFF !important;
    outline-offset: -2px;
    cursor: pointer;
    position: relative;
}

.editor-highlight::after {
    content: 'Click to Edit';
    position: absolute;
    top: -24px;
    left: 0;
    background: #007AFF;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10000;
}

/* Selected Element */
.editor-selected {
    outline: 3px solid #D4AF37 !important;
    z-index: 10;
}