File size: 2,970 Bytes
2303095
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2dc2fbc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d57a1c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2dc2fbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
.output-node {
  border: 1px solid #1a73e8;
  border-radius: 8px;
  background: #e8f0fe;
  width: 300px;
  min-height: 100px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.output-node-header {
  background: #d2e3fc;
  padding: 10px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  border-bottom: 1px solid #a8c7fa;
  font-size: 14px;
  color: #174ea6;
}

.output-content {
  padding: 15px;
  font-family: sans-serif;
  font-size: 14px;
  color: #333;
}

.output-content.placeholder p {
  color: #666;
  font-style: italic;
  text-align: center;
  margin: 20px 0;
}

.output-content.text-output p {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  min-height: 50px;
}

.output-content.image-output {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  min-height: 150px;
  border-radius: 4px;
}

.output-node.running .output-node-header {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

.output-node.success .output-node-header {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.output-node.error .output-node-header {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.node-status {
  float: right;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,0.1);
}
/* Add these styles to your existing OutputNode.css file */

.download-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.download-button:hover {
  background-color: #0d5bdd;
}

.download-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.download-button svg {
  margin-right: 5px;
}

.output-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 15px 10px 15px;
}


/* Reusable indicator styling */
.reusable-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #1a73e8;
  cursor: help;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.reusable-indicator:hover {
  opacity: 1;
}

/* Handle styling for better visibility */
.react-flow__handle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1a73e8;
  border: 2px solid white;
  transition: background-color 0.2s;
}

.react-flow__handle:hover {
  background-color: #0d5bdd;
}

/* Source handle with special styling to indicate it's reusable */
.react-flow__handle-right {
  background-color: #34a853;
}

.react-flow__handle-right:hover {
  background-color: #2d9249;
}

/* Enhanced styling for connections */
.react-flow__edge-path {
  stroke: #1a73e8;
  stroke-width: 2;
}

.react-flow__connection-path {
  stroke: #34a853;
  stroke-width: 2;
}