/**
 * Vee Elementor Addons - Advanced Editor Field CSS
 */

/* Stili generali per l'editor */
.vee-advanced-editor-wrapper {
    position: relative;
    margin-bottom: 15px;
    width: 100% !important;
    max-width: 100% !important;
}

.vee-editor-container {
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Forza la larghezza del contenitore TinyMCE */
.vee-editor-container .mce-tinymce {
    width: 100% !important;
    box-sizing: border-box !important;
}

.vee-editor-container .mce-container,
.vee-editor-container .mce-container-body {
    width: 100% !important;
    box-sizing: border-box !important;
}

.vee-editor-container .mce-edit-area,
.vee-editor-container .mce-edit-area iframe {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Stili per TinyMCE */
.vee-editor-container .mce-panel {
    border: none !important;
    background-color: #ffffff !important;
}

.vee-editor-container .mce-toolbar {
    border-bottom: 1px solid #eee !important;
    padding: 2px;
}

.vee-editor-container .mce-toolbar button {
    margin: 1px 2px !important;
}

.vee-editor-container .mce-btn {
    background: transparent !important;
    border-color: transparent !important;
}

.vee-editor-container .mce-btn:hover, 
.vee-editor-container .mce-btn:focus {
    background: #f6f6f6 !important;
    border-color: #e0e0e0 !important;
}

.vee-editor-container .mce-btn.mce-active {
    background: #e6e6e6 !important;
    border-color: #ddd !important;
}

.vee-editor-container .mce-statusbar {
    background-color: #f9f9f9 !important;
    border-top: 1px solid #eee !important;
    font-size: 12px !important;
}

.vee-editor-container .mce-path {
    padding: 6px 8px !important;
}

/* Stili per l'editor semplice */
.vee-editor-container.simple-mode .mce-toolbar:not(:first-child) {
    display: none !important;
}

/* Stili per l'editor in modalità focus */
.vee-editor-container.focus-mode {
    position: fixed;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    background: #fff;
    z-index: 999999;
    box-shadow: 0 0 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.vee-editor-container.focus-mode .mce-tinymce {
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
}

.vee-editor-container.focus-mode .mce-edit-area {
    flex: 1 !important;
}

/* Pulsante per uscire dalla modalità focus */
.vee-editor-exit-focus {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999999;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.vee-editor-exit-focus:hover {
    background: #555;
    transform: scale(1.1);
}

/* Stili per la modalità responsive */
@media (max-width: 768px) {
    .vee-editor-container .mce-toolbar {
        flex-wrap: wrap;
    }
    
    .vee-editor-container.focus-mode {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
} 