.editable-text {
    padding: 10px;
    min-height: 30px;
    transition: all 0.3s;
}
.edit-mode .editable-text {
    outline: 1px dashed #007bff;
}

.editable-image {
    /* width: 300px !important;
    height: 300px !important; */
    display: block;
    /* margin: 20px 0; */
    transition: all 0.3s;
}


.image600x400 {
    width: 600px !important;
    height: 400px !important;
}

.image400x300 {
    width: 400px !important;
    height: 300px !important;
}


.image400x400 {
    width: 400px !important;
    height: 400px !important;
}
@media (max-width: 350px) {
    .image400x400 {
        width: 300px !important;
        height: 300px !important;
    }
}


.image300x300 {
    width: 300px !important;
    height: 300px !important;
}

@media (max-width: 350px) {
    .image300x300 {
        width: 250px !important;
        height: 250px !important;
    }
}

.image100x100 {
    width: 100px !important;
    height: 100px !important;
}

@media (max-width: 350px) {
    .image100x100 {
        width: 70px !important;
        height: 70px !important;
    }
}


.image80x80 {
    width: 80px !important;
    height: 80px !important;
}

@media (max-width: 450px) {
    .image80x80 {
        width: 50px !important;
        height: 50px !important;
    }
}


.img-invisibile,
.module-invisibile {
    display: none !important;
    width: 1px !important;
    height: 1px !important;
}

.img-default {
    border: #eea3ee 2px solid;
}


.edit-mode .editable-text:hover,
.edit-mode .editable-image:hover {
    outline: 6px dashed #007bff;
    outline-offset: 4px;
    cursor: pointer;
}

.edit-mode .editable-module:hover {
    outline: 2px dashed #fd3f05;
}

.editable-text.editing {
    outline: 6px solid #007bff;
    background: #f9fae8 !important;
    color: black !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content input[type="password"],
.modal-content input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Editor Controls */
.editor-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.editor-controls.active {
    display: block;
}

.editor-controls button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #007bff;
    color: white;
}

.editor-controls button:hover {
    background: #0056b3;
}

/* Rotation Controls */
.rotation-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rotation-controls button {
    flex: 1;
    min-width: 50px;
}

.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
}



.toolbar {
    position: absolute;
    display: none;
    background: #333;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 400px;
    width: min-content;
}

.toolbar.active {
    display: flex;
}

.toolbar-row {
    display: flex;
    gap: 4px;
    width: 100%;
}

.toolbar button {
    background: #555;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
    min-width: 32px;
}

.toolbar button:hover {
    background: #777;
}

.toolbar button.active {
    background: #007bffa1;
}


.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.confirm-modal.active {
    display: flex;
}

.confirm-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    text-align: center;
}

.confirm-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.confirm-yes {
    background: #dc3545;
    color: white;
}

.confirm-yes:hover {
    background: #c82333;
}

.confirm-no {
    background: #6c757d;
    color: white;
}

.confirm-no:hover {
    background: #5a6268;
}


mark,
.mark {
    padding: 0.2em;
    border-radius: 5px;
    background-color: #c1daf8;
}

em,
.em {
    font-style: normal;
    color: #007bff;
}


input[type="checkbox"] {
    scale: 2;
}

.module-visibility-checkbox {
    z-index: 1;
    position: relative;
}