:root { --tigevifo-primary: #2271b1; --tigevifo-bg: #f6f7f7; --tigevifo-border: #c3c4c7; }
#tigevifo-builder-wrapper { display: flex; gap: 25px; margin-top: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
.tigevifo-sidebar { width: 260px; background: #fff; border: 1px solid var(--tigevifo-border); padding: 15px 20px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.tigevifo-sidebar hr { border: 0; border-top: 1px solid #eee; margin: 12px 0; }
.tigevifo-main { flex-grow: 1; background: #fff; border: 1px solid var(--tigevifo-border); padding: 20px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.tigevifo-field { background: #fff; border: 1px solid #dcdcde; padding: 10px 12px; margin-bottom: 8px; cursor: grab; border-radius: 4px; font-weight: 500; font-size: 13px; display: flex; align-items: center; transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.tigevifo-field:hover { border-color: var(--tigevifo-primary); transform: translateY(-1px); box-shadow: 0 3px 6px rgba(0,0,0,0.05); }
.tigevifo-field .icon { margin-right: 8px; font-size: 16px; }
.tigevifo-canvas { min-height: 480px; border: 2px dashed #b4b9be; padding: 20px; background: #fafbfc; border-radius: 6px; }
.tigevifo-canvas .tigevifo-field { background: #fff; border-left: 4px solid var(--tigevifo-primary); padding-right: 180px; position: relative; font-size: 14px; margin-bottom: 12px; }
.tigevifo-canvas .tigevifo-field::before { content: '⋮⋮'; color: #ccc; margin-right: 12px; font-weight: bold; letter-spacing: -2px; }
.tigevifo-canvas .tigevifo-field .actions { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display:flex; gap:12px; align-items: center; }
.tigevifo-canvas .tigevifo-field .actions span { cursor: pointer; font-size: 16px; opacity: 0.7; transition: 0.2s; }
.tigevifo-canvas .tigevifo-field .actions span:hover { opacity: 1; }
.tigevifo-canvas .tigevifo-field .duplicate-field:hover { color: #2271b1; }
.tigevifo-canvas .tigevifo-field .edit-field:hover { color: #2271b1; }
.tigevifo-canvas .tigevifo-field .remove-field { color: #d63638; font-weight: bold; }
.tigevifo-canvas .tigevifo-field .width-select { font-size: 12px; padding: 0 20px 0 8px; height: 28px; border-radius: 4px; border: 1px solid #ccc; background-color: #f9f9f9; }

.tigevifo-modal-hidden { display: none !important; }
#tigevifo-modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.tigevifo-modal-content { background:#fff; width:480px; border-radius:8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; max-height: 90vh; }
.tigevifo-modal-header { padding: 15px 20px; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; background: #f9f9f9; border-radius: 8px 8px 0 0; }
.tigevifo-modal-header h3 { margin: 0; font-size: 16px; color: #23282d; }
.tigevifo-modal-close { font-size: 24px; cursor: pointer; color: #666; line-height: 1; }
.tigevifo-modal-close:hover { color: #d63638; }
.tigevifo-modal-body { padding: 20px; overflow-y: auto; }
.tigevifo-modal-footer { padding: 15px 20px; border-top: 1px solid #ddd; text-align: right; background: #f9f9f9; border-radius: 0 0 8px 8px; }
.tigevifo-form-group { margin-bottom: 15px; }
.tigevifo-form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #2c3338; font-size: 13px; }
.tigevifo-form-group input[type="text"], .tigevifo-form-group input[type="number"] { width: 100%; padding: 6px 10px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px; }
.tigevifo-form-group input[type="text"]:focus { border-color: var(--tigevifo-primary); box-shadow: 0 0 0 1px var(--tigevifo-primary); outline: none; }
.tigevifo-row { display: flex; gap: 15px; margin-bottom: 15px; }
.tigevifo-col { flex: 1; }
.tigevifo-col label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.tigevifo-col input { width: 100%; padding: 6px 10px; border: 1px solid #8c8f94; border-radius: 4px; }
.tigevifo-checkbox-label { display: flex !important; align-items: center; gap: 8px; font-weight: normal !important; cursor: pointer; }
#tigevifo-redirect-url{width:80%}

/* Styling for the draggable row container */
.tigevifo-row-container {
    border: 2px dashed #bce2f4;
    background: #f0f6fc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* Styling for the inner dropzones (CRITICAL for drag-and-drop) */
.tigevifo-inner-col {
    flex: 1;
    box-sizing: border-box;
    min-height: 80px; /* Must have height to receive drops! */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    transition: background-color 0.2s ease;
}

/* Highlight column when dragging a field over it */
.tigevifo-inner-col.sortable-drag {
    background: #e5f5fa;
    border-color: #2271b1;
}