/* ==========================================================================
   MOBILE-FIRST RESPONSIVE MAIN CONTENT
   ========================================================================== */

/* Main content adjustments - Mobile First */
.main-content {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 56px);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    background-color: #fff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main content only responds to sidebar in edit and running modes */
body.edit-mode .main-content,
body.running-mode .main-content {
    transition: left 0.3s ease, width 0.3s ease;
}

/* Ensure content container fills properly */
#content-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent content shift when sidebar is open on mobile */
.main-content.sidebar-open {
    transform: translateX(0);
}

/* ==========================================================================
   WELCOME INTERFACE - RESPONSIVE
   ========================================================================== */

/* Welcome Interface Styles */
.welcome-interface {
    position: fixed;
    top: 56px; /* Start below navbar */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
}

.welcome-content {
    max-width: 700px; /* Increased to accommodate more content */
    width: 100%;
    max-height: calc(100vh - 100px); /* Account for navbar and padding */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    position: relative;
    overflow-y: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.welcome-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-right: 35px; /* Make room for close button */
}

.welcome-close {
    position: absolute;
    top: 12px; /* Position relative to welcome-content */
    right: 12px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 6px;
    margin: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    border-radius: 4px;
    z-index: 10;
}

.welcome-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.welcome-header h1 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.welcome-body {
    margin-bottom: 1.5rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px; /* Space for scrollbar */
}

.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-section:last-child {
    margin-bottom: 0;
}

.welcome-section h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Accordion Styles */
.accordion-section {
    margin-bottom: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    transition: all 0.2s ease;
}

.accordion-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-section.expanded {
    border-color: #3498db;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: #fafafa;
    transition: background-color 0.2s ease;
    user-select: none;
}

.accordion-header:hover {
    background: #f5f5f5;
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.accordion-icon {
    font-size: 1.25rem;
    color: #3498db;
    width: 24px;
    text-align: center;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    border: none;
    padding: 0;
}

.accordion-arrow {
    font-size: 0.875rem;
    color: #666;
    transition: transform 0.3s ease;
}

.accordion-section.expanded .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-section.expanded .accordion-content {
    max-height: 2000px;
}

.accordion-body {
    padding: 1rem 1.25rem;
    background: white;
}

/* Feature Visual Styles */
.feature-visual {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.feature-visual i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-visual p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* Diagram Styles */
.connection-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.diagram-item {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #3498db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.diagram-connection {
    width: 40px;
    height: 2px;
    background: #3498db;
    position: relative;
}

.diagram-connection::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid #3498db;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.execution-diagram {
    padding: 1rem;
}

.exec-step, .exec-parallel {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    font-family: 'Courier New', monospace;
}

.exec-parallel {
    color: #27ae60;
}

.parallel-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.parallel-input, .parallel-map {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #3498db;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.parallel-map {
    background: #e8f4f8;
}

.parallel-arrow {
    color: #3498db;
}

.parallel-outputs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.parallel-outputs > div {
    padding: 0.5rem 1rem;
    background: #d5f4e6;
    border: 1px solid #27ae60;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #155724;
}

.conditional-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.cond-input, .cond-box {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #3498db;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.cond-box {
    background: #fff3cd;
    border-color: #ffc107;
}

.cond-branches {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.cond-true {
    padding: 0.5rem 1rem;
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 4px;
    color: #155724;
    font-size: 0.8rem;
    font-weight: 600;
}

.cond-false {
    padding: 0.5rem 1rem;
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #721c24;
    font-size: 0.8rem;
    font-weight: 600;
}

.aggregator-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.agg-datasets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agg-datasets > div {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.8rem;
}

.agg-output {
    padding: 0.75rem 1.5rem;
    background: #e8f4f8;
    border: 2px solid #3498db;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.agg-arrow {
    color: #3498db;
    font-size: 1.25rem;
}

.export-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.export-icons i {
    font-size: 2rem;
    color: #3498db;
}

.export-icons .fa-plus {
    font-size: 1rem;
    color: #666;
}

.welcome-section p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.examples-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.example-item {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    transition: background-color 0.2s ease;
}

.example-item:hover {
    background: #f5f5f5;
}

.example-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.example-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.4rem 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    margin-right: 0.5rem;
}

.tips-list li strong {
    color: #333;
    font-weight: 600;
}

/* Smooth scrolling for welcome body */
.welcome-body {
    scroll-behavior: smooth;
}

/* Custom scrollbar for welcome content */
.welcome-content::-webkit-scrollbar {
    width: 8px;
}

.welcome-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.welcome-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.welcome-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Keyboard shortcuts styling */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.shortcut-item kbd {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #495057;
    font-family: 'Courier New', monospace;
    min-width: 80px;
    text-align: center;
}

.shortcut-item span {
    color: #6c757d;
    font-size: 0.85rem;
}

.welcome-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    margin-top: auto;
}

.btn-primary, .btn-secondary {
    padding: 0.6rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0 0.5rem 0.5rem 0;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 120px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d5dbdb;
    transform: translateY(-1px);
}

/* Hide welcome interface when not needed */
.welcome-interface.hidden {
    display: none;
}

/* Example options styles */
.example-category {
    margin-bottom: 2rem;
}

.example-category:last-of-type {
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #3498db);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color, #e1e5e9);
}

.example-options {
    text-align: left;
}

.example-options h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.example-category {
    margin-bottom: 2rem;
}

.example-category:last-of-type {
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
}

.example-buttons {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.example-btn {
    padding: 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.example-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateY(-1px);
}

.example-btn strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.example-btn p {
    color: #666;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.example-actions {
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* ==========================================================================
   WORKFLOW CANVAS - RESPONSIVE
   ========================================================================== */

/* Canvas container - ensure it fills the entire main content area */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Workflow canvas */
.workflow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-image:
        radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: auto; /* Allow scrolling for infinite canvas */
    z-index: 1;
    touch-action: pan-x pan-y;
    margin: 0;
    padding: 0;
}

.canvas-content {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    /* Remove fixed width/height to allow infinite canvas */
    width: max-content;
    height: max-content;
    transform-origin: 0 0;
    overflow: visible;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.workflow-canvas.drag-over {
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px dashed #666;
}

/* ==========================================================================
   ZOOM CONTROLS - RESPONSIVE
   ========================================================================== */

/* ZOOM CONTROLS - RESPONSIVE */
.zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    user-select: none;
    transition: left 0.3s cubic-bezier(.4,0,.2,1), width 0.3s cubic-bezier(.4,0,.2,1);
}

/* Center zoom controls between sidebar and right edge on desktop */
@media (min-width: 1024px) {
    body.edit-mode .zoom-controls,
    body.running-mode .zoom-controls {
        left: calc((var(--sidebar-width, 270px) + 100vw) / 2);
        transform: translateX(-50%);
    }
    body.edit-mode.sidebar-collapsed .zoom-controls,
    body.running-mode.sidebar-collapsed .zoom-controls {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 1440px) {
    body.edit-mode .zoom-controls,
    body.running-mode .zoom-controls {
        left: calc((var(--sidebar-width, 300px) + 100vw) / 2);
    }
}

/* Initialize sidebar width variable on root for proper inheritance */
:root {
    --sidebar-width: 270px;
}

body {
    --sidebar-width: 270px;
}

/* Update sidebar width based on screen size and state */
@media (max-width: 768px) {
    :root, body {
        --sidebar-width: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    :root, body {
        --sidebar-width: 260px;
    }
}

@media (min-width: 1024px) {
    :root, body {
        --sidebar-width: 270px;
    }
}

@media (min-width: 1440px) {
    :root, body {
        --sidebar-width: 300px;
    }
}

/* Collapsed sidebar state */
body.sidebar-collapsed {
    --sidebar-width: 60px;
}

body.edit-mode .main-content,
body.running-mode .main-content {
    --sidebar-width: 270px;
}

@media (min-width: 1440px) {
    .main-content {
        --sidebar-width: 300px;
    }
    
    body.edit-mode .main-content,
    body.running-mode .main-content {
        --sidebar-width: 300px;
    }
}

/* If sidebar is collapsed, center on full screen */
body.edit-mode.sidebar-collapsed .zoom-controls,
body.running-mode.sidebar-collapsed .zoom-controls {
    left: 50%;
    transform: translateX(-50%);
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    font-size: 14px;
}

.zoom-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.05);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.zoom-level {
    font-size: 0.875rem;
    color: #666;
    min-width: 50px;
    text-align: center;
    user-select: none;
    font-weight: 500;
}

/* Ensure zoom controls are only visible in edit mode */
.results-wrapper .zoom-controls {
    display: none;
}

/* ==========================================================================
   EXECUTION CONTROLS - RESPONSIVE
   ========================================================================== */

/* Execution controls container */
.execution-controls {
    position: fixed;
    top: 70px;
    right: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 6px;
    z-index: 1000;
    display: flex;
    gap: 4px;
}

/* Execution button base style */
.execution-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    font-size: 14px;
}

.execution-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.05);
}

.execution-btn:active {
    transform: scale(0.95);
}

/* Run button states */
#run-button.running {
    background-color: #28a745;
    color: white;
}

#run-button.paused {
    background-color: #ffc107;
    color: white;
}

/* Stop button state */
#stop-button.stopped {
    background-color: #dc3545;
    color: white;
}

/* Disabled state */
.execution-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   TABLET RESPONSIVE (768px and up)
   ========================================================================== */

@media (min-width: 768px) {
    .main-content {
        /* Sidebar is off-canvas, no margin needed */
        left: 0;
        width: 100%;
    }
    
    .main-content.sidebar-open {
        transform: translateX(0);
    }
    
    .welcome-content {
        padding: 2rem;
        border-radius: 12px;
        max-width: 720px; /* Increased for more content */
    }
    
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .execution-controls {
        top: 72px;
        right: 20px;
        padding: 8px;
        gap: 6px;
    }
    
    .execution-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .zoom-controls {
        bottom: 30px;
        padding: 10px 14px;
        gap: 12px;
    }
    
    .zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .example-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   DESKTOP RESPONSIVE (1024px and up)
   ========================================================================== */

@media (min-width: 1024px) {
    body.edit-mode .main-content,
    body.running-mode .main-content {
        left: 270px;
        width: calc(100% - 270px);
    }
    
    body.edit-mode .main-content.sidebar-collapsed,
    body.running-mode .main-content.sidebar-collapsed {
        left: 0;
        width: 100%;
    }
    
    .welcome-content {
        max-width: 750px; /* Increased for comprehensive content */
        padding: 2rem;
    }
    
    .execution-controls {
        top: 76px;
        right: 24px;
    }
    
    .zoom-controls {
        bottom: 40px;
    }
}

/* ==========================================================================
   LARGE DESKTOP (1440px and up)
   ========================================================================== */

@media (min-width: 1440px) {
    body.edit-mode .main-content,
    body.running-mode .main-content {
        left: 300px;
        width: calc(100% - 300px);
    }
    
    body.edit-mode .main-content.sidebar-collapsed,
    body.running-mode .main-content.sidebar-collapsed {
        left: 0;
        width: 100%;
    }
    
    .welcome-content {
        max-width: 800px; /* Increased for comprehensive content */
        padding: 2.25rem;
    }
    
    .execution-controls {
        top: 80px;
        right: 30px;
    }
}

/* ==========================================================================
   MOBILE SPECIFIC OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 767.98px) {
    .welcome-interface {
        padding: 8px;
        top: 56px; /* Ensure it starts below navbar on mobile */
    }
    
    .welcome-content {
        padding: 1rem;
        border-radius: 8px;
        max-height: calc(100vh - 80px); /* Account for navbar and padding */
        max-width: 100%; /* Full width on mobile */
    }
    
    .welcome-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 28px;
        height: 28px;
    }
    
    .welcome-header {
        padding-right: 30px;
    }
    
    .welcome-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
    }
    
    .welcome-section h3 {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0 0 0.5rem 0;
    }
    
    .execution-controls {
        top: 64px;
        right: 12px;
        padding: 4px;
        gap: 2px;
    }
    
    .execution-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .zoom-controls {
        bottom: 16px;
        padding: 6px 10px;
        gap: 8px;
    }
    
    .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .zoom-level {
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .example-buttons {
        grid-template-columns: 1fr;
    }
    
    .example-btn {
        padding: 1rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .main-content,
    .zoom-controls,
    .execution-controls,
    .btn-primary,
    .btn-secondary,
    .zoom-btn,
    .execution-btn {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .workflow-canvas {
        background-image:
            radial-gradient(circle, rgba(0, 0, 0, 0.3) 1px, transparent 1px),
            radial-gradient(circle, rgba(0, 0, 0, 0.3) 1px, transparent 1px);
    }
}