/* Estilos do Editor HTML */
.editor-btn {
    background: white;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.editor-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.editor-btn i {
    font-size: 14px;
}

/* Modal da Galeria de Imagens */
#image-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

#image-gallery-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-image-item {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
}

.gallery-image-item:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.gallery-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Container do Editor */
.html-editor-container {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: white;
}

.html-editor-toolbar {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.html-editor-toolbar .editor-separator {
    border-left: 1px solid #d1d5db;
    margin: 0 5px;
}

.html-editor-content {
    display: flex;
    gap: 10px;
}

.html-editor-textarea {
    border: none;
    resize: vertical;
    flex: 1;
}

.html-editor-preview {
    display: none;
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 15px;
    background: white;
    max-height: 300px;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

