/* AeroMail Sender - Complete HTML Editor Styles */
.editor-card {
    position: relative;
}

.editor-card.fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    max-width: 100%;
}

.editor-card.fullscreen .editor-split {
    height: calc(100vh - 200px);
}

.editor-split {
    display: flex;
    gap: 16px;
    height: 500px;
    margin: 16px 0;
}

.editor-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-pane label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.editor-textarea {
    flex: 1;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    background: #fafafa;
}

.preview-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-pane label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.preview-iframe {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    min-height: 400px;
}

#editorToolbar button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

#editorToolbar button:hover {
    background: #f0f0f0;
    border-color: #aaa;
}

@media (max-width: 768px) {
    .editor-split {
        flex-direction: column;
        height: auto;
    }
    .editor-textarea {
        min-height: 200px;
    }
    .preview-iframe {
        min-height: 200px;
    }
}

/* Variable autocomplete popup */
#varAutocomplete div:hover {
    background: #f0f0f0;
}

/* Mobile preview toggle */
.preview-iframe.mobile {
    max-width: 375px;
    margin: 0 auto;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
