/* ==========================================================================
   CANVAS.CSS - Área do Canvas Real do Site e Elementos Criados
   ========================================================================== */

.canvas-area {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    min-height: 400px;
}

.canvas-area h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.controls-panel {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.add-element-btn {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    margin: 5px 5px 5px 0;
}

.add-element-btn:hover {
    background: #8e44ad;
}

/* Elementos Físicos Instanciados no Canvas Zone */
.canvas-element {
    position: absolute;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 5px;
    background: white;
    cursor: move;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.canvas-element.button-elem {
    background: #3498db;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.canvas-element.text-elem {
    background: #ecf0f1;
    color: #2c3e50;
}

.category-element-tools .editor-add-btn {
    display: flex !important;
    width: 100% !important;
    background: #2c3e50 !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 9px 12px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
    clip-path: none !important;
    height: auto !important;
    min-width: unset !important;
    border-left: 1px solid rgba(255,255,255,0.1) !important;
}

.category-element-tools .editor-add-btn:hover {
    background: #3e5871 !important;
}

#editorPropsPanel {
    display: none;
}

#editorPropsPanel.visible {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-element-tools .prop-input {
    background: #2c3e50 !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    pointer-events: auto !important;
}

.category-element-tools .prop-input:focus {
    outline: none !important;
    border-color: #3498db !important;
}