/* Layout */
.module-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}
.module-item:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Canvas Items */
.email-block {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent; /* Selection border */
    transition: border-color 0.2s;
}
.email-block:hover {
    border-color: #cbd5e1; /* Hover light gray */
}
.email-block.active {
    border-color: #6366f1; /* Active Blue */
}

/* Action Buttons */
.block-actions {
    position: absolute;
    right: 0;
    top: -24px;
    background: #6366f1;
    color: white;
    border-radius: 4px 4px 0 0;
    font-size: 12px;
    padding: 2px 8px;
    display: none;
    gap: 8px;
}
.email-block:hover .block-actions,
.email-block.active .block-actions {
    display: flex;
}

/* Sortable Ghost */
.sortable-ghost {
    background: #f1f5f9;
    border: 2px dashed #94a3b8;
    opacity: 0.5;
}
.sortable-drag {
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

/* Content Editable */
[contenteditable]:focus {
    outline: 2px solid #a5b4fc;
    background: rgba(255, 255, 255, 0.5);
}

/* Form Styles for Props */
.prop-group { margin-bottom: 0.75rem; }
.prop-label { display: block; font-size: 0.75rem; font-weight: 700; color: #64748b; margin-bottom: 0.25rem; }
.prop-input { width: 100%; font-size: 0.875rem; padding: 0.375rem; border: 1px solid #cbd5e1; border-radius: 0.25rem; }
.prop-input:focus { border-color: #6366f1; outline: none; }
