body {
     font-family: sans-serif;
     margin: 30px;
     background: #fafafa;
     color: #333;
}

.editor-container {
     border: 1px solid #ccc;
     border-radius: 4px;
     width: 100%;
     /* max-width: 800px; */
     background: white;
}

.textarea-source {
     display: none;
     width: 100%;
     /* max-width: 800px; */
     height: 200px;
}

.toolbar {
     background: #f3f3f3;
     padding: 8px;
     border-bottom: 1px solid #ccc;
     display: flex;
     gap: 6px;
}

.toolbar button {
     background: transparent;
     /* border: 1px solid #ccc;  */
     border: 0;
     padding: 5px 10px;
     cursor: pointer;
     border-radius: 3px;
     font-size: 14px;
}

.toolbar button:hover {
     background: #eee;
}

.btn-submit {
     margin-top: 15px;
     background: #0066cc;
     color: white;
     border: none;
     padding: 10px 20px;
     cursor: pointer;
     border-radius: 4px;
     font-size: 15px;
}

.btn-submit:hover {
     background: #0052a3;
}

.preview {
     margin-top: 30px;
     /* max-width: 800px; */
     padding: 15px;
     border: 1px dashed #aaa;
     background: #f9f9f9;
}

.editor img.selected-image {
     outline: 3px solid #0d6efd;
     outline-offset: 2px;
     cursor: pointer;
}

.align-dropdown {
     position: relative;
     display: inline-block;
}

.align-menu {
     display: none;
     position: absolute;
     top: 100%;
     left: 0;
     background: #fff;
     border: 1px solid #ccc;
     z-index: 9999;
}

.align-dropdown:hover .align-menu {
     display: flex;
}

.align-menu button {
     width: 36px;
     height: 32px;
     border: none;
     background: transparent;
     cursor: pointer;
}

table.selected {
     outline: 2px solid #0d6efd;
}

.editor {
     min-height: 200px;
     border: 1px solid #ced4da;
     padding: 10px;
     border-radius: 4px;
     outline: none;
     font-size: 16px;
     line-height: 1.5;
}

.img-server-gallery {
     display: none;
     flex-wrap: wrap;
     gap: 8px;
     max-height: 220px;
     overflow-y: auto;
     margin-top: 10px;
     padding: 8px;
     border: 1px solid #ddd;
     border-radius: 4px;
}

.img-server-gallery.show {
     display: flex;
}

.img-server-gallery img {
     width: 80px;
     height: 80px;
     object-fit: cover;
     cursor: pointer;
     border: 2px solid transparent;
     border-radius: 3px;
}

.img-server-gallery img:hover,
.img-server-gallery img.selected {
     border-color: #0d6efd;
}
