/* ==========================================================================
   SIGAP WARGA - Visual Bot Flow Editor Sharp Monochromatic Theme
   Kelurahan Cibangkong, Kecamatan Batununggal, Kota Bandung
   Strict Zero Border-Radius & Kedinasan Palette
   ========================================================================== */

.flow-editor-wrapper,
.flow-editor-wrapper * {
    border-radius: 0 !important;
    box-sizing: border-box;
}

/* Root Layout Container */
.flow-editor-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 170px);
    min-height: 720px;
    background-color: #ffffff;
    border: 2px solid #111827;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Top Action Bar (Organized 2-Tier Kedinasan Toolbar)
   -------------------------------------------------------------------------- */
.flow-action-bar {
    display: flex;
    flex-direction: column;
    background-color: #111827;
    color: #ffffff;
    border-bottom: 2px solid #000000;
    z-index: 30;
    padding: 0;
    margin: 0;
}

/* Row 1: Header Row (Title, Badges, View Toggles) */
.flow-action-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: #111827;
    border-bottom: 1px solid #1f2937;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.flow-action-meta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.flow-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

.flow-divider {
    color: #4b5563;
    font-size: 12px;
    user-select: none;
}

.flow-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.flow-badge-version {
    background-color: #1f2937;
    color: #9ca3af;
    border-color: #374151;
}

.flow-badge-active {
    background-color: #198754;
    color: #ffffff;
    border-color: #146c43;
}

.flow-badge-inactive {
    background-color: #842029;
    color: #ffffff;
    border-color: #58151c;
}

.flow-badge-date {
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
}

.flow-action-view-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Row 2: Operational Controls & Save Actions */
.flow-action-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background-color: #1f2937;
    border-top: 1px solid #111827;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.flow-action-ops-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.flow-action-save-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Action Buttons */
.flow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid #374151;
    transition: background-color 0.1s ease, border-color 0.1s ease;
    white-space: nowrap;
    border-radius: 0 !important;
}

.flow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flow-btn-simulasi {
    background-color: #198754;
    color: #ffffff;
    border-color: #146c43;
}

.flow-btn-simulasi:hover:not(:disabled) {
    background-color: #157347;
    border-color: #0f5132;
}

.flow-btn-secondary {
    background-color: #111827;
    color: #d1d5db;
    border-color: #374151;
}

.flow-btn-secondary:hover:not(:disabled) {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #4b5563;
}

.flow-btn-subtle {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

.flow-btn-subtle:hover:not(:disabled) {
    background-color: #374151;
    color: #ffffff;
}

.flow-btn-primary {
    background-color: #ffffff;
    color: #111827;
    border-color: #ffffff;
}

.flow-btn-primary:hover:not(:disabled) {
    background-color: #e5e7eb;
    color: #000000;
    border-color: #e5e7eb;
}

.flow-btn-publish {
    background-color: #198754;
    color: #ffffff;
    border-color: #146c43;
}

.flow-btn-publish:hover:not(:disabled) {
    background-color: #157347;
    border-color: #0f5132;
}

.flow-btn-reset {
    background-color: #842029;
    color: #ffffff;
    border-color: #58151c;
}

.flow-btn-reset:hover:not(:disabled) {
    background-color: #6a1a21;
    border-color: #491217;
}

/* --------------------------------------------------------------------------
   Main Workspace Area (Left Palette | Center Canvas | Right Properties)
   -------------------------------------------------------------------------- */
.flow-workspace {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

/* Left Node Palette */
.flow-palette {
    width: 240px;
    background-color: #ffffff;
    border-right: 2px solid #111827;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 20;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.flow-palette.is-hidden {
    display: none !important;
}

.flow-palette-header {
    padding: 10px 14px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flow-btn-palette-hide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #6b7280;
    border: 1px solid transparent;
    border-radius: 0 !important;
    padding: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.flow-btn-palette-hide:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.flow-btn-palette-hide svg {
    transition: transform 0.15s ease;
}

.flow-btn-palette-hide:hover svg {
    transform: translateX(-2px);
}

.flow-palette-items {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flow-palette-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background-color: #ffffff;
    border: 1px solid #111827;
    cursor: pointer;
    user-select: none;
    transition: none;
    text-align: left;
}

.flow-palette-item:hover {
    background-color: #111827;
    color: #ffffff;
}

.flow-palette-item:hover .flow-palette-item-desc {
    color: #d1d5db;
}

.flow-palette-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #111827;
    border: 1px solid #111827;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-palette-item:hover .flow-palette-item-icon {
    background-color: #ffffff;
    color: #111827;
}

.flow-palette-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flow-palette-item-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.flow-palette-item-desc {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.2;
}

/* Center Interactive Canvas */
.flow-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
    cursor: grab;
    user-select: none;
}

.flow-canvas-container.is-panning {
    cursor: grabbing !important;
}

.flow-canvas-surface {
    position: absolute;
    width: 6000px;
    height: 4000px;
    transform-origin: 0 0;
    top: 0;
    left: 0;
    will-change: transform;
}

/* SVG Connection Lines Layer */
.flow-svg-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 6000px;
    height: 4000px;
    pointer-events: none;
    z-index: 5;
}

.flow-svg-connections g {
    pointer-events: auto;
}

.flow-edge-group {
    transition: opacity 0.15s ease;
}

.flow-edge-path-default {
    fill: none;
    stroke: #9ca3af;
    stroke-width: 1.5;
    stroke-dasharray: 4 2;
    opacity: 0.75;
    transition: all 0.15s ease;
}

.flow-edge-path-active {
    fill: none;
    stroke: #111827;
    stroke-width: 2.5;
    stroke-dasharray: none;
    opacity: 1;
    transition: all 0.15s ease;
}

.flow-edge-path-incoming {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2;
    stroke-dasharray: none;
    opacity: 0.95;
    transition: all 0.15s ease;
}

.flow-edge-path-dimmed {
    fill: none;
    stroke: #d1d5db;
    stroke-width: 1;
    stroke-dasharray: 2 2;
    opacity: 0.2;
    transition: all 0.15s ease;
}

.flow-edge-hit-area {
    fill: none;
    stroke: transparent;
    stroke-width: 14;
    cursor: pointer;
    pointer-events: stroke;
}

.flow-edge-label-bg {
    fill: #111827;
    rx: 0;
    ry: 0;
}

.flow-edge-label-bg-incoming {
    fill: #2563eb;
    rx: 0;
    ry: 0;
}

.flow-edge-label-text {
    font-size: 9px;
    font-weight: 700;
    font-family: inherit;
    fill: #ffffff;
    text-anchor: middle;
    dominant-baseline: central;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
}

.flow-edge-path {
    fill: none;
    stroke: #111827;
    stroke-width: 2.5;
}

.flow-edge-arrow {
    fill: #111827;
}

/* Node Cards */
.flow-node-card {
    position: absolute;
    width: 260px;
    background-color: #ffffff;
    border: 2px solid #111827;
    box-shadow: 4px 4px 0px rgba(17, 24, 39, 0.15);
    cursor: move;
    user-select: none;
    z-index: 10;
}

.flow-node-card.is-selected {
    border: 2px solid #111827;
    outline: 3px solid #2563eb;
    box-shadow: 6px 6px 0px rgba(37, 99, 235, 0.25);
    z-index: 15;
}

.flow-node-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background-color: #111827;
    color: #ffffff;
    border-bottom: 1px solid #111827;
}

.flow-node-card-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #ffffff;
    color: #111827;
    padding: 2px 6px;
}

.flow-node-card-title {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.flow-node-card-body {
    padding: 10px;
    font-size: 11px;
    color: #1f2937;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.flow-node-preview-text {
    color: #4b5563;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.3;
    max-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    background-color: #f3f4f6;
    padding: 4px 6px;
    border: 1px solid #e5e7eb;
}

.flow-node-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #6b7280;
}

/* Ports (Connection Anchors) */
.flow-port-anchor-in {
    position: absolute;
    left: -5px;
    top: 40px;
    width: 8px;
    height: 8px;
    background-color: #111827;
    border: 1px solid #ffffff;
    z-index: 20;
}

.flow-port-anchor-out {
    position: absolute;
    right: -5px;
    top: 40px;
    width: 8px;
    height: 8px;
    background-color: #111827;
    border: 1px solid #ffffff;
    z-index: 20;
}

.flow-node-ports {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background-color: #f9fafb;
    font-size: 10px;
    font-weight: 600;
}

.flow-node-port-in,
.flow-node-port-out {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.flow-port-circle {
    width: 10px;
    height: 10px;
    background-color: #111827;
    border: 1px solid #ffffff;
}

/* Clean Target Destination Badges on Node Cards */
.flow-node-targets {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
}

.flow-node-targets-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    margin-bottom: 4px;
}

.flow-node-targets-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flow-node-target-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0 !important;
    font-size: 10px;
    color: #111827;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    width: 100%;
}

.flow-node-target-badge:hover {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.flow-node-target-badge:hover span {
    color: #ffffff !important;
}

.flow-node-target-port {
    font-weight: 700;
    font-size: 9px;
    text-transform: uppercase;
    color: #1f2937;
    background-color: #e5e7eb;
    padding: 1px 4px;
}

.flow-node-target-title {
    flex: 1;
    margin-left: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}


/* Canvas Floating Controls (Zoom & Pan) */
.flow-canvas-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    background-color: #ffffff;
    border: 2px solid #111827;
    z-index: 25;
    box-shadow: 3px 3px 0px rgba(17, 24, 39, 0.15);
}

.flow-control-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    background-color: #ffffff;
    border: none;
    border-right: 1px solid #111827;
    cursor: pointer;
}

.flow-control-btn:last-child {
    border-right: none;
}

.flow-control-btn:hover {
    background-color: #111827;
    color: #ffffff;
}

/* Right Property Panel */
.flow-properties {
    width: 320px;
    background-color: #ffffff;
    border-left: 2px solid #111827;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 20;
    flex-shrink: 0;
}

.flow-properties-header {
    padding: 10px 14px;
    background-color: #111827;
    color: #ffffff;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flow-properties-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.flow-properties-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flow-form-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111827;
    letter-spacing: 0.5px;
}

.flow-form-input,
.flow-form-textarea,
.flow-form-select {
    width: 100%;
    padding: 6px 10px;
    font-size: 12px;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #111827;
    font-family: inherit;
}

.flow-form-input:focus,
.flow-form-textarea:focus,
.flow-form-select:focus {
    outline: 2px solid #111827;
}

.flow-form-help {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.3;
}

.flow-properties-empty {
    padding: 30px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.flow-properties-empty-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border: 2px dashed #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #9ca3af;
}

/* Option List Items inside Property Panel */
.flow-prop-options-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.flow-prop-option-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    padding: 6px;
}

.flow-prop-option-item input {
    font-size: 11px;
    padding: 3px 6px;
    border: 1px solid #9ca3af;
}

.flow-btn-icon-danger {
    padding: 4px 8px;
    background-color: #842029;
    color: #ffffff;
    border: none;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.flow-btn-icon-danger:hover {
    background-color: #58151c;
}

/* Floating Canvas Navigation & Zoom Controls */
.flow-canvas-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #ffffff;
    border: 2px solid #111827;
    box-shadow: 4px 4px 0px rgba(17, 24, 39, 0.2);
    padding: 6px;
    z-index: 40;
}

.flow-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background-color: #f3f4f6;
    color: #111827;
    border: 1px solid #111827;
    border-radius: 0 !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.flow-control-btn:hover {
    background-color: #111827;
    color: #ffffff;
}

.flow-control-btn:active {
    background-color: #374151;
    color: #ffffff;
}

.flow-control-separator {
    width: 1px;
    height: 22px;
    background-color: #d1d5db;
    margin: 0 4px;
}

/* Properties Panel Collapsed */
.flow-properties.is-hidden {
    display: none !important;
}

/* Close/Hide Button inside Properties Header */
.flow-btn-close-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 !important;
    padding: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.flow-btn-close-panel:hover {
    background-color: #374151;
    color: #ffffff;
    border-color: #9ca3af;
}

.flow-btn-close-panel svg {
    transition: transform 0.15s ease;
}

.flow-btn-close-panel:hover svg {
    transform: scale(1.1);
}

.flow-btn-header-ghost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
    border-radius: 0 !important;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
}

.flow-btn-header-ghost:hover {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #6b7280;
}

/* Floating button on canvas to reopen palette when hidden */
.flow-btn-toggle-palette {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #ffffff;
    color: #111827;
    border: 1.5px solid #111827;
    border-radius: 0 !important;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 3px 3px 0px rgba(17, 24, 39, 0.25);
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.flow-btn-toggle-palette:hover {
    background-color: #111827;
    color: #ffffff;
    transform: translate(1px, -1px);
    box-shadow: 4px 4px 0px rgba(17, 24, 39, 0.4);
}

.flow-btn-toggle-palette svg {
    transition: transform 0.15s ease;
}

.flow-btn-toggle-palette:hover svg {
    transform: translateX(2px);
}

/* Docked tab on canvas right edge to reopen properties when hidden */
.flow-btn-toggle-properties {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #111827;
    border: 1.5px solid #111827;
    border-right: none;
    border-radius: 0 !important;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: -2px 2px 0px rgba(17, 24, 39, 0.2);
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.flow-btn-toggle-properties:hover {
    background-color: #111827;
    color: #ffffff;
    transform: translateY(-50%) translateX(-2px);
    box-shadow: -3px 3px 0px rgba(17, 24, 39, 0.4);
}

.flow-btn-toggle-properties svg {
    transition: transform 0.15s ease;
}

.flow-btn-toggle-properties:hover svg {
    transform: translateX(-2px);
}

/* WhatsApp Simulation Modal & Drawer */
.flow-sim-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flow-sim-modal {
    width: 100%;
    max-width: 980px;
    height: 88vh;
    background-color: #ffffff;
    border: 3px solid #111827;
    box-shadow: 8px 8px 0px rgba(17, 24, 39, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flow-sim-header {
    background-color: #111827;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #000000;
}

.flow-sim-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: #ffffff;
}

.flow-sim-subtitle {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.flow-sim-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Chat Column */
.flow-sim-chat-col {
    flex: 3;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #111827;
    background-color: #f9fafb;
}

.flow-sim-messages-wrap {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f3f4f6;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
}

.flow-sim-bubble {
    max-width: 82%;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.5;
    position: relative;
    box-shadow: 2px 2px 0px rgba(17, 24, 39, 0.1);
}

.flow-sim-bubble-bot {
    align-self: flex-start;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-left: 4px solid #111827;
    color: #111827;
    white-space: pre-wrap;
}

.flow-sim-bubble-user {
    align-self: flex-end;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-right: 4px solid #059669;
    color: #065f46;
    white-space: pre-wrap;
}

.flow-sim-bubble-time {
    font-size: 9px;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

/* Interactive WhatsApp Options inside Bot Bubble */
.flow-sim-options-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-sim-options-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    margin-bottom: 2px;
}

.flow-sim-options-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-sim-option-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background-color: #f9fafb;
    color: #111827;
    border: 1px solid #111827;
    border-radius: 0 !important;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-shadow: 2px 2px 0px rgba(17, 24, 39, 0.1);
}

.flow-sim-option-button:hover {
    background-color: #111827;
    color: #ffffff;
    transform: translate(1px, -1px);
    box-shadow: 3px 3px 0px rgba(17, 24, 39, 0.25);
}

.flow-sim-option-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: #111827;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.flow-sim-option-button:hover .flow-sim-option-badge {
    background-color: #ffffff;
    color: #111827;
}

.flow-sim-option-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flow-sim-quick-chips {
    padding: 8px 14px;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.flow-sim-chip {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    background-color: #f3f4f6;
    color: #111827;
    border: 1px solid #111827;
    cursor: pointer;
    border-radius: 0 !important;
}

.flow-sim-chip:hover {
    background-color: #111827;
    color: #ffffff;
}

.flow-sim-input-bar {
    padding: 10px 14px;
    background-color: #ffffff;
    border-top: 2px solid #111827;
    display: flex;
    gap: 8px;
    align-items: center;
}

.flow-sim-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #111827;
    font-size: 12px;
    border-radius: 0 !important;
}

.flow-sim-input:focus {
    outline: 2px solid #111827;
}

/* Inspector Column */
.flow-sim-info-col {
    flex: 2;
    padding: 16px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.flow-sim-info-section {
    border: 1px solid #e5e7eb;
    padding: 12px;
    background-color: #f9fafb;
}

.flow-sim-info-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111827;
    margin-bottom: 6px;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 4px;
}

.flow-sim-var-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.flow-sim-var-key {
    font-family: monospace;
    font-weight: 600;
    color: #1f2937;
}

.flow-sim-var-val {
    color: #059669;
    font-weight: 600;
}

