  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #333;
            overflow: hidden;
        }

        .app-container {
            display: grid;
            grid-template-columns: 300px 1fr 300px;
            grid-template-rows: 60px 1fr;
            height: 100vh;
            gap: 1px;
            background: #e0e0e0;
        }

        .header {
            grid-column: 1 / -1;
            background: linear-gradient(90deg, #2c3e50, #34495e);
            color: white;
            display: flex;
            align-items: center;
            padding: 0 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header h1 {
            font-size: 1.5rem;
            font-weight: 300;
        }

        .header .actions {
            margin-left: auto;
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .btn-primary {
            background: linear-gradient(45deg, #3498db, #2980b9);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
        }

        .btn-secondary {
            background: linear-gradient(45deg, #95a5a6, #7f8c8d);
            color: white;
        }

        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
        }

        .sidebar {
            background: white;
            overflow-y: auto;
            border-radius: 0 0 0 12px;
        }

        .sidebar-header {
            padding: 20px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-bottom: 1px solid #dee2e6;
            font-weight: 600;
            color: #495057;
        }

        .sidebar-content {
            padding: 20px;
        }

        .node-palette {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .palette-node {
            padding: 12px;
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            border: 2px dashed #2196f3;
            border-radius: 8px;
            cursor: grab;
            text-align: center;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .palette-node:hover {
            background: linear-gradient(135deg, #bbdefb, #90caf9);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
        }

        .palette-node:active {
            cursor: grabbing;
        }

        .main-canvas {
            background: 
                radial-gradient(circle at 20px 20px, #e0e0e0 2px, transparent 2px),
                linear-gradient(135deg, #f8f9fa, #ffffff);
            background-size: 40px 40px;
            position: relative;
            overflow: hidden;
            border-radius: 0 0 12px 12px;
        }

        .canvas {
            width: 100%;
            height: 100%;
            position: relative;
            cursor: default;
        }

        .workflow-node {
            position: absolute;
            background: white;
            border: 2px solid #3498db;
            border-radius: 12px;
            padding: 16px;
            cursor: move;
            min-width: 120px;
            max-width: 200px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            user-select: none;
        }

        .connection-port {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #3498db;
            border: 2px solid white;
            border-radius: 50%;
            cursor: crosshair;
            transition: all 0.2s ease;
            z-index: 10;
        }

        .connection-port:hover {
            background: #e74c3c;
            transform: scale(1.3);
        }

        .connection-port.output {
            right: -6px;
            top: 50%;
            transform: translateY(-50%);
        }

        .connection-port.input {
            left: -6px;
            top: 50%;
            transform: translateY(-50%);
        }

        .connection-port.connecting {
            background: #f39c12;
            box-shadow: 0 0 10px rgba(243, 156, 18, 0.6);
        }

        .workflow-node:hover {
            box-shadow: 0 6px 25px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }

        .workflow-node.selected {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
        }

        .workflow-node.dragging {
            z-index: 1000;
            transform: rotate(5deg);
            opacity: 0.8;
        }

        .node-header {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .node-type {
            font-size: 0.8rem;
            color: #7f8c8d;
            background: #ecf0f1;
            padding: 4px 8px;
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .node-status {
            font-size: 0.75rem;
            padding: 2px 6px;
            border-radius: 3px;
            color: white;
        }

        .status-ready { background: #27ae60; }
        .status-running { background: #f39c12; }
        .status-failed { background: #e74c3c; }
        .status-success { background: #2ecc71; }

        .connection-line {
            position: absolute;
            stroke: #3498db;
            stroke-width: 3;
            fill: none;
            pointer-events: stroke;
            z-index: 2;
            marker-end: url(#arrowhead);
        }

        .connection-line:hover {
            stroke: #e74c3c;
            stroke-width: 4;
            cursor: pointer;
        }

        .connection-line.selected {
            stroke: #e74c3c;
            stroke-width: 4;
        }

        .temp-connection {
            stroke: #f39c12;
            stroke-width: 2;
            stroke-dasharray: 5,5;
            pointer-events: none;
        }

        .properties-panel {
            background: white;
            border-radius: 0 0 12px 0;
        }

        .panel-header {
            padding: 20px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-bottom: 1px solid #dee2e6;
            font-weight: 600;
            color: #495057;
        }

        .panel-content {
            padding: 20px;
            height: calc(100% - 80px);
            overflow-y: auto;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #495057;
            font-size: 0.9rem;
        }

        .form-input, .form-textarea, .form-select {
            width: 100%;
            padding: 10px;
            border: 2px solid #e9ecef;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .form-input:focus, .form-textarea:focus, .form-select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .form-textarea {
            resize: vertical;
            min-height: 80px;
        }

        .tabs {
            display: flex;
            border-bottom: 2px solid #e9ecef;
            margin-bottom: 20px;
        }

        .tab {
            padding: 10px 16px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            font-weight: 500;
            color: #6c757d;
            transition: all 0.3s ease;
        }

        .tab.active {
            color: #3498db;
            border-bottom-color: #3498db;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .project-settings {
            background: #f8f9fa;
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }

        .modal-header {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: #2c3e50;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }

        .context-menu {
            position: fixed;
            background: white;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1500;
            display: none;
            min-width: 150px;
        }

        .context-menu-item {
            padding: 10px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f1f1f1;
            font-size: 0.9rem;
        }

        .context-menu-item:hover {
            background: #f8f9fa;
        }

        .context-menu-item:last-child {
            border-bottom: none;
        }

        @media (max-width: 1024px) {
            .app-container {
                grid-template-columns: 250px 1fr 250px;
            }
        }

        @media (max-width: 768px) {
            .app-container {
                grid-template-columns: 1fr;
                grid-template-rows: 60px auto 1fr auto;
            }
            
            .sidebar, .properties-panel {
                height: 200px;
                overflow-y: auto;
            }
        }

        .notification {
            position: fixed;
            top: 80px;
            right: 20px;
            background: white;
            padding: 16px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-left: 4px solid #27ae60;
            z-index: 1600;
            transform: translateX(400px);
            transition: transform 0.3s ease;
        }

        .notification.show {
            transform: translateX(0);
        }