/* admin/visual-text-editor/visual-editor.css */

.visual-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}
.visual-editor-toolbar .editor-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.visual-editor-toolbar .editor-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}
/* Style pour un bouton "activé" */
.visual-editor-toolbar .editor-btn[data-active="true"] {
    background-color: #e0e7ff;
    border-color: #818cf8;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.visual-editor-toolbar .icon-bold { font-weight: bold; }
.visual-editor-toolbar .icon-italic { font-style: italic; }
.visual-editor-toolbar .editor-separator {
    width: 1px;
    height: 20px;
    background-color: #ddd;
    margin: 0 4px;
}

#visual-editor-content {
    min-height: 400px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    outline: none; /* Enlève la bordure bleue au focus */
    overflow-y: auto;
}
#visual-editor-content:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 1px #818cf8;
}

/* Style du contenu DANS l'éditeur */
#visual-editor-content strong, #visual-editor-content b { font-weight: bold; }
#visual-editor-content em, #visual-editor-content i { font-style: italic; }
#visual-editor-content u { text-decoration: underline; }
#visual-editor-content a { color: #4f46e5; text-decoration: underline; }
#visual-editor-content div[style*="text-align: center"] { text-align: center; }
#visual-editor-content div[style*="text-align: right"] { text-align: right; }
#visual-editor-content div[style*="text-align: left"] { text-align: left; }

.visual-editor-code {
    min-height: 400px;
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-top: none; /* La barre d'outils sert de bordure supérieure */
    border-radius: 0 0 8px 8px;
    background-color: #2d3748; /* Fond sombre pour le code */
    color: #e2e8f0; /* Texte clair */
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    resize: vertical; /* Permet de redimensionner verticalement */
}
.visual-editor-code:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 1px #818cf8;
}

/* NOUVEAU : Classe utilitaire pour cacher/montrer */
.hidden {
    display: none;
}