/**
 * formio-sortable.css
 * Styles for drag & drop controls and history buttons
 */

/* Edit Mode Styles */
body.formio-edit-mode .formio-component[data-component] {
    outline: 2px dashed rgba(66, 153, 225, 0.4);
    outline-offset: 4px;
    transition: all 0.2s ease;
    border-radius: 4px;
    position: relative !important;
    /* Ensure controls are positioned correctly */
}

/* Specific styling for Column Rows to facilitate dropping to create new columns */
body.formio-edit-mode .formio-component-columns .row {
    outline: 1px dashed rgba(72, 187, 120, 0.3);
    min-height: 50px;
    border-radius: 4px;
    transition: background-color 0.2s;

    /* Ensure controls that populate outside (via absolute position) are visible */
    overflow: visible !important;
    position: relative;
    z-index: 10;
    /* Base z-index */
}

body.formio-edit-mode .formio-component-columns .row:hover {
    background-color: rgba(72, 187, 120, 0.05);
}

/* Ensure columns themselves allow overflow for buttons */
body.formio-edit-mode .formio-component-columns,
body.formio-edit-mode .formio-component-columns .col,
body.formio-edit-mode .formio-component-columns [class*="col-"] {
    overflow: visible !important;
    position: relative;
}

/* IMPORTANT: When hovering a component, bring it to the front so controls don't hide behind next column */
body.formio-edit-mode .formio-component[data-component]:hover {
    outline-color: rgba(66, 153, 225, 0.8);
    background-color: rgba(66, 153, 225, 0.05);
    z-index: 1100 !important;
    /* Ensure it is above everything else */
    position: relative;
    /* Ensure z-index applies */
}

/* Allow glow/shadow to spill outside without being clipped */
body.formio-edit-mode .formio-component {
    overflow: visible !important;
    position: relative;
}

/* Disable hover effects while dragging to prevent flashing */
body.formio-dragging .formio-component:hover {
    outline-color: inherit !important;
    background-color: transparent !important;
}

body.formio-dragging .component-controls {
    display: none !important;
}

/* Component Controls Container */
.component-controls {
    position: absolute;
    top: 50%;
    /* Centrado vertical */
    left: -12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
    /* Centrado vertical + escala */
}

body.formio-edit-mode .component-controls {
    pointer-events: auto;
    /* Default to hidden even in edit mode, show on hover */
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    /* Centrado vertical + escala */
}

/* Show on hover of the component */
body.formio-edit-mode .formio-component[data-component]:hover>.component-controls,
body.formio-edit-mode .formio-component:hover>.component-controls {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    /* Centrado vertical + escala normal */
    z-index: 1001;
}

/* Ensure controls are visible if we are hovering them directly */
body.formio-edit-mode .component-controls:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    /* Centrado vertical + escala normal */
    z-index: 1002;
}

/* Center Top Controls */
.component-controls.center-top {
    left: 50%;
    right: auto;
    top: -12px;
    transform: translateX(-50%) scale(0.9);
}

/* Center Bottom Controls */
.component-controls.center-bottom {
    left: 50%;
    right: auto;
    top: auto;
    /* Reset top */
    bottom: -12px;
    transform: translateX(-50%) scale(0.9);
}

/* Adjust hover states for centered controls to keep centering */
body.formio-edit-mode .formio-component[data-component]:hover>.component-controls.center-top,
body.formio-edit-mode .formio-component:hover>.component-controls.center-top,
body.formio-edit-mode .component-controls.center-top:hover {
    transform: translateX(-50%) scale(1);
}

body.formio-edit-mode .formio-component[data-component]:hover>.component-controls.center-bottom,
body.formio-edit-mode .formio-component:hover>.component-controls.center-bottom,
body.formio-edit-mode .component-controls.center-bottom:hover {
    transform: translateX(-50%) scale(1);
}


/* Control Button Group */
.control-btn-group {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Two Column Layout for Left Controls (Drag + Arrows) */
.control-btn-group-two-columns {
    display: grid;
    grid-template-columns: 28px 28px;
    grid-template-rows: auto auto;
    gap: 0;
    column-gap: 3px;
    /* Pequeño margen entre columnas */
}

.control-btn-group-two-columns .drag-handle {
    grid-column: 1;
    grid-row: 1 / 3;
    /* Spans both rows */
    border-right: 1px solid #edf2f7;
    border-bottom: none;
    height: 60px;
    /* Altura aumentada para alargar el botón */
}

.control-btn-group-two-columns .move-up {
    grid-column: 2;
    grid-row: 1;
    border-bottom: 1px solid #edf2f7;
    border-right: none;
}

.control-btn-group-two-columns .move-down {
    grid-column: 2;
    grid-row: 2;
    border-right: none;
    border-bottom: none;
}

/* Two Column Layout for Right Controls (JSON/Delete + AI) */
.control-btn-group-two-columns-right {
    display: grid;
    grid-template-columns: 28px 28px;
    grid-template-rows: auto auto;
    gap: 0;
    column-gap: 3px;
    /* Pequeño margen entre columnas */
}

.control-btn-group-two-columns-right .json-edit-btn {
    grid-column: 1;
    grid-row: 1;
    border-bottom: 1px solid #edf2f7;
    border-right: 1px solid #edf2f7;
}

.control-btn-group-two-columns-right .ai-edit-btn {
    grid-column: 2;
    grid-row: 1 / 3;
    /* Spans both rows */
    border-bottom: none;
    border-right: none;
    height: 60px;
    /* Altura aumentada para alargar el botón */
}

.control-btn-group-two-columns-right .delete-btn {
    grid-column: 1;
    grid-row: 2;
    border-right: 1px solid #edf2f7;
    border-bottom: none;
}

/* Horizontal group for center controls */
.component-controls.center-top .control-btn-group,
.component-controls.center-bottom .control-btn-group {
    flex-direction: row;
}

.component-controls.center-top .control-btn,
.component-controls.center-bottom .control-btn {
    border-bottom: none;
    border-right: 1px solid #edf2f7;
}

.component-controls.center-top .control-btn:last-child,
.component-controls.center-bottom .control-btn:last-child {
    border-right: none;
}


/* Individual Buttons */
.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #edf2f7;
}

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

.control-btn:hover {
    background-color: #ebf8ff;
    color: #3182ce;
}

.control-btn:active {
    background-color: #bee3f8;
}

.control-btn.ai-edit-btn {
    background: linear-gradient(135deg, #ff7e5f, #fbbf24);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 126, 95, 0.35);
}

.control-btn.ai-edit-btn i {
    color: inherit;
}

.control-btn.ai-edit-btn:hover {
    background: linear-gradient(135deg, #ff8f70, #fcd34d);
    color: #fff;
    transform: translateY(-1px);
}

.control-btn.ai-edit-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Drag Handle Specifics */
.control-btn.drag-handle {
    cursor: grab;
    background-color: #f7fafc;
    color: #718096;
}

.control-btn.drag-handle:active {
    cursor: grabbing;
}

/* SortableJS Classes */
.sortable-ghost {
    opacity: 0.4;
    background-color: rgba(66, 153, 225, 0.2);
    border: 2px dashed #4299e1;
}

.sortable-chosen {
    background-color: rgba(66, 153, 225, 0.1);
}

.sortable-drag {
    opacity: 0.95;
    background: #fdfdfd;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.18), 0 5px 10px -5px rgba(0, 0, 0, 0.12);
    transform: scale(1.01);
    border: 2px solid #63b3ed;
}

body.wizard-tab-drop-active .sortable-ghost,
body.wizard-tab-drop-active .sortable-placeholder,
body.wizard-tab-drop-active .sortable-chosen,
body.wizard-tab-drop-active .sortable-drag {
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
}

/* Header Buttons */
.control-header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    margin-left: 10px;
    cursor: pointer;
}

/* Switch Toggle Styles */
.edit-mode-switch-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
    background-color: #805ad5;
    /* Purple to match previous button */
}

input:focus+.slider {
    box-shadow: 0 0 1px #805ad5;
}

input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-text-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
}

[data-theme="dark"] .switch-text-label {
    color: #e2e8f0;
}

[data-theme="dark"] .slider {
    background-color: #4a5568;
}

[data-theme="dark"] input:checked+.slider {
    background-color: #9f7aea;
    /* Lighter purple for dark mode */
}

#undo-btn {
    background-color: #718096;
    color: white;
}

#undo-btn:hover {
    background-color: #4a5568;
}

#undo-btn:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}


/* Dark Mode Overrides */
[data-theme="dark"] body.formio-edit-mode .formio-component[data-component] {
    outline-color: rgba(144, 205, 244, 0.3);
}

[data-theme="dark"] .component-controls .control-btn-group {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .control-btn {
    background: #2d3748;
    color: #e2e8f0;
    border-bottom-color: #4a5568;
    border-right-color: #4a5568;
}

[data-theme="dark"] .control-btn-group-two-columns .drag-handle {
    border-right-color: #4a5568;
}

[data-theme="dark"] .control-btn-group-two-columns .move-up {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .control-btn-group-two-columns-right .json-edit-btn {
    border-bottom-color: #4a5568;
    border-right-color: #4a5568;
}

[data-theme="dark"] .control-btn-group-two-columns-right .delete-btn {
    border-right-color: #4a5568;
}

[data-theme="dark"] .control-btn.ai-edit-btn {
    background: linear-gradient(135deg, #f6ad55, #fcd34d);
    color: #1a202c;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.45);
}

[data-theme="dark"] .control-btn.ai-edit-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #fde68a);
    color: #1a202c;
}

[data-theme="dark"] .control-btn:hover {
    background-color: #4a5568;
    color: #63b3ed;
}

[data-theme="dark"] .control-btn.drag-handle {
    background-color: #1a202c;
}


/* Drop Target Right Indicator - Nuclear Option for Double Preview */
body.formio-edit-mode .formio-component[data-component].drop-target-right,
.drop-target-right {
    position: relative;
    width: 49% !important;
    transition: width 0.2s ease;
    overflow: visible !important;
    z-index: 2000 !important;

    /* Force white background and remove all borders/outlines */
    background-color: white !important;
    border-radius: 4px;
    outline: none !important;
    outline-style: none !important;
    border: none !important;
    box-shadow: none !important;
}

.drop-target-right::after {
    content: "Crear Columna";
    position: absolute;
    /* Position relative to the SHRUNK component */
    top: 0;
    bottom: 0;
    left: 104%;
    /* Gap of 4% (2% relative to original width approx) */
    width: 100%;
    /* Same width as the shrunk component = 50% of total */

    background: rgba(72, 187, 120, 0.1);
    border: 2px dashed #48bb78;
    color: #2f855a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

/* Optional: Highlight the left side (current component) explicitly if needed, but the shrink does it naturally */
.drop-target-right::before {
    display: none;
}

/* HIDE BLUE GHOST when Split Preview (Green) is active */
body.formio-splitting-mode .sortable-ghost,
body.formio-splitting-mode .sortable-placeholder,
body.formio-splitting-mode .sortable-chosen,
body.formio-splitting-mode .sortable-drag {
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Wizard Management Controls */
.wizard-management-controls {
    display: none;
    /* Default hidden */
    margin: 10px auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* Show only in Edit Mode */
body.formio-edit-mode .wizard-management-controls {
    display: block !important;
}

/* Wizard Header Visibility */
/* Default: Hide Formio Wizard Navigation (Tabs Only) */
ul.pagination {
    display: none !important;
}

/* Edit Mode: Show Wizard Navigation */
body.formio-edit-mode ul.pagination {
    display: flex !important;
    /* Restore default flex behavior */
    justify-content: center;
}

/* Tab Edit Button */
.edit-tab-btn {
    display: none;
    margin-left: 8px;
    padding: 2px 5px;
    font-size: 12px;
    color: var(--text-color, #4a5568);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-tab-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #4299e1;
}

/* Show Edit Button on Tab Hover */
/* Note: Formio tabs are usually li.page-item or similar */
li.page-item:hover .edit-tab-btn,
li.nav-item:hover .edit-tab-btn {
    display: inline-block;
}

.wizard-actions-container {
    background: var(--header-bg, #fff);
    /* Theme aware */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    /* Push groups apart */
    align-items: center;
    border: 1px dashed var(--header-border, #cbd5e0);
    /* Theme aware */
    gap: 8px;
    flex-wrap: wrap;
}

/* Wizard Tab Drop Feedback */
.wizard-tab-drop-target {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.35);
    transform: translateY(-1px);
}

.wizard-tab-drop-target::after {
    content: "";
    position: absolute;
    inset: -6px -8px;
    border-radius: 8px;
    background: rgba(72, 187, 120, 0.12);
    pointer-events: none;
}

/* Flex Groups for Controls */
.wizard-group-left,
.wizard-group-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wizard-label {
    font-weight: 600;
    color: var(--text-color, #4a5568);
    /* Theme aware */
    margin-right: 10px;
}

.wizard-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;


    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .wizard-actions-container {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-group-left,
    .wizard-group-right {
        width: 100%;
        justify-content: flex-start;
    }

    .wizard-label {
        width: 100%;
        margin-right: 0;
    }

    .wizard-btn {
        flex: 1 1 auto;
    }
}

.wizard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-btn:disabled {
    background-color: #cbd5e0 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Colors */
.btn-add {
    background-color: #48bb78;
}

.btn-add:hover {
    background-color: #38a169;
}

.btn-delete {
    background-color: #f56565;
}

.btn-delete:hover {
    background-color: #e53e3e;
}

.btn-undo {
    background-color: #718096;
    /* Gray */
}

.btn-undo:hover {
    background-color: #4a5568;
}

.btn-json {
    background-color: #805ad5;
    /* Purple */
}

.btn-json:hover {
    background-color: #6b46c1;
}

.ai-editor-modal .swal2-popup {
    width: 520px;
    padding: 22px 22px 18px;
    box-sizing: border-box;
}

.ai-editor-modal .swal2-html-container {
    margin: 0;
    padding: 28px 44px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    align-items: stretch;
    text-align: left;
}

.ai-editor-modal .ai-editor-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.ai-editor-modal .ai-editor-select,
.ai-editor-modal .ai-editor-textarea {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
    display: block;
    margin: 0;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
}

.ai-editor-modal .ai-editor-select:focus,
.ai-editor-modal .ai-editor-textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.btn-save {
    background-color: #0ea5e9;
}

.btn-save:hover {
    background-color: #0284c7;
}

/* SweetAlert2 Dark Mode Overrides */
[data-theme="dark"] .swal2-popup {
    background: #1f2937 !important;
    /* Dark gray background */
    color: #f3f4f6 !important;
    /* Light text */
    border: 1px solid #374151;
}

[data-theme="dark"] .swal2-title,
[data-theme="dark"] .swal2-content,
[data-theme="dark"] .swal2-html-container,
[data-theme="dark"] .swal2-html-container label {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .swal2-input {
    background: #374151 !important;
    /* Darker input bg */
    color: #fff !important;
    border: 1px solid #4b5563 !important;
}

[data-theme="dark"] .swal2-textarea {
    background: #374151 !important;
    color: #fff !important;
    border: 1px solid #4b5563 !important;
}

[data-theme="dark"] .swal2-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5) !important;
}

[data-theme="dark"] .swal2-textarea:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5) !important;
}

[data-theme="dark"] .swal2-validation-message {
    background: #1f2937 !important;
    color: #f3f4f6 !important;
}

[data-theme="dark"] .swal2-confirm {
    background-color: #3b82f6 !important;
    /* Blue */
    color: white !important;
}

[data-theme="dark"] .swal2-cancel {
    background-color: #4b5563 !important;
    /* Gray */
    color: white !important;
}

/* Disable inputs in edit mode */
.formio-edit-mode .formio-component input,
.formio-edit-mode .formio-component select,
.formio-edit-mode .formio-component textarea,
.formio-edit-mode .formio-component button:not(.component-controls button) {
    pointer-events: none !important;
    background-color: #f8fafc !important;
    color: #a0aec0 !important;
    opacity: 0.8;
}

/* Ensure controls are still clickable */
.formio-edit-mode .component-controls {
    pointer-events: auto !important;
}

[data-theme="dark"] .formio-edit-mode .formio-component input,
[data-theme="dark"] .formio-edit-mode .formio-component select,
[data-theme="dark"] .formio-edit-mode .formio-component textarea {
    background-color: #2d3748 !important;
    color: #718096 !important;
}

/* Visualize hidden components in edit mode */
.formio-edit-mode .formio-component-hidden {
    display: block !important;
    opacity: 0.7;
    border: 1px dashed #feb2b2;
    position: relative;
    padding: 10px;
    margin: 5px 0;
}

.formio-edit-mode .formio-component-hidden::before {
    content: "Oculto (Condicional)";
    position: absolute;
    top: -8px;
    right: 5px;
    background: #e53e3e;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 10;
}

/* Dark Mode support for Dependency Alerts in JSON Editor */
[data-theme="dark"] .dependency-alert-parent {
    background-color: #2d3748 !important;
    border-bottom: 1px solid #4a5568 !important;
    color: #90cdf4 !important;
}

[data-theme="dark"] .dependency-alert-parent button {
    color: #63b3ed !important;
}

[data-theme="dark"] #json-dependency-info {
    /* If it's the yellow box warnings */
    background-color: #2d3748 !important;
    border-bottom: 1px solid #744210 !important;
    color: #fbd38d !important;
}

[data-theme="dark"] #json-dependency-info button {
    color: #f6ad55 !important;
}

/* Split Editor - Dark Mode */
[data-theme="dark"] .json-editor-split-container {
    border-color: #4a5568 !important;
}

[data-theme="dark"] #jsoneditor {
    border-color: #4a5568 !important;
}

[data-theme="dark"] #preview-panel {
    background-color: #1a202c !important;
    border-color: #4a5568 !important;
}

[data-theme="dark"] #preview-panel>div:first-child {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
}

[data-theme="dark"] #preview-panel h5 {
    color: #e2e8f0 !important;
}

/* Dependency Indicators in Edit Mode */
.dependency-badge {
    position: absolute;
    top: -5px;
    left: 5px;
    /* Left aligned to avoid conflict with controls */
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 15;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    font-family: monospace;
}

.dependency-parent {
    top: -5px;
    left: 5px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dependency-parent::before {
    content: "P-";
    opacity: 0.8;
}

.dependency-child {
    top: auto;
    bottom: -5px;
    left: 5px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dependency-child::before {
    content: "C-";
    opacity: 0.8;
}

[data-theme="dark"] .dependency-parent {
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .dependency-child {
    border-color: rgba(255, 255, 255, 0.3);
}