:root {
--primary-color: #007bff;
--primary-hover: #0056b3;
--secondary-color: #6c757d;
--success-color: #28a745;
--danger-color: #dc3545;
--warning-color: #ffc107;
--info-color: #17a2b8;
--bg-primary: #ffffff;
--bg-secondary: #f8f9fa;
--bg-tertiary: #e9ecef;
--text-primary: #212529;
--text-secondary: #6c757d;
--border-color: #dee2e6;
--sidebar-bg: #343a40;
--sidebar-text: #ffffff;
--sidebar-hover: #495057;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
--border-radius: 6px;
--transition: all 0.2s ease;
}
.dark-mode {
--bg-primary: #1a1a2e;
--bg-secondary: #16213e;
--bg-tertiary: #0f3460;
--text-primary: #e4e4e4;
--text-secondary: #a0a0a0;
--border-color: #2d3748;
--sidebar-bg: #0f0f1a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
font-size: 14px;
line-height: 1.5;
color: var(--text-primary);
background-color: var(--bg-secondary);
}
.app-container {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 220px;
background: var(--sidebar-bg);
color: var(--sidebar-text);
display: flex;
flex-direction: column;
position: fixed;
height: 100vh;
z-index: 100;
}
.sidebar-header {
padding: 20px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h1 {
font-size: 24px;
font-weight: 600;
margin-bottom: 4px;
}
.sidebar-header .version {
font-size: 12px;
opacity: 0.7;
}
.nav-menu {
list-style: none;
flex: 1;
padding: 10px 0;
}
.nav-item {
padding: 12px 20px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: var(--transition);
position: relative;
}
.nav-item:hover {
background: var(--sidebar-hover);
}
.nav-item.active {
background: var(--primary-color);
}
.nav-icon {
font-size: 16px;
width: 20px;
text-align: center;
}
.badge {
background: var(--danger-color);
color: white;
font-size: 11px;
padding: 2px 6px;
border-radius: 10px;
margin-left: auto;
}
.sidebar-footer {
padding: 15px 20px;
border-top: 1px solid rgba(255,255,255,0.1);
}
.connection-status {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.status-dot.connected {
background: var(--success-color);
}
.status-dot.disconnected {
background: var(--danger-color);
}
.main-content {
flex: 1;
margin-left: 220px;
padding: 20px 30px;
background: var(--bg-secondary);
min-height: 100vh;
}
.tab-content {
display: none;
animation: fadeIn 0.2s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.tab-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.tab-header h2 {
font-size: 24px;
font-weight: 600;
}
.header-actions {
display: flex;
gap: 10px;
align-items: center;
}
.btn {
padding: 8px 16px;
border: none;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 6px;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-secondary:hover {
background: var(--border-color);
}
.btn-danger {
background: var(--danger-color);
color: white;
}
.btn-danger:hover {
background: #c82333;
}
.btn-success {
background: var(--success-color);
color: white;
}
.btn-success:hover {
background: #218838;
}
.btn-sm {
padding: 4px 8px;
font-size: 12px;
}
.table-container {
background: var(--bg-primary);
border-radius: var(--border-radius);
box-shadow: var(--shadow-sm);
overflow: hidden;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th,
.data-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.data-table th {
background: var(--bg-tertiary);
font-weight: 600;
color: var(--text-secondary);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.data-table tbody tr:hover {
background: var(--bg-secondary);
}
.data-table .loading {
text-align: center;
color: var(--text-secondary);
padding: 40px;
}
.status-badge {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
}
.status-uninitialized { background: #e9ecef; color: #495057; }
.status-blocked { background: #fff3cd; color: #856404; }
.status-ready { background: #d1ecf1; color: #0c5460; }
.status-pending { background: #ffe5d0; color: #8a4a00; }
.status-running { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-failed { background: #f8d7da; color: #721c24; }
.status-canceled { background: #e2d9f3; color: #4a235a; }
.status-terminated { background: #d6d8db; color: #383d41; }
.status-disabled { background: #fdfdfe; color: #818182; }
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: var(--text-primary);
}
.form-group small {
display: block;
margin-top: 4px;
color: var(--text-secondary);
font-size: 12px;
}
.text-input,
.select-input {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
font-size: 14px;
background: var(--bg-primary);
color: var(--text-primary);
transition: var(--transition);
}
.text-input:focus,
.select-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
.select-input {
cursor: pointer;
}
textarea.text-input {
resize: vertical;
font-family: monospace;
}
.toggle-label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
font-size: 14px;
}
.dag-container {
background: var(--bg-primary);
border-radius: var(--border-radius);
box-shadow: var(--shadow-sm);
height: calc(100vh - 250px);
min-height: 400px;
position: relative;
}
.dag-container .placeholder-message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--text-secondary);
}
.dag-legend {
display: flex;
flex-wrap: wrap;
gap: 16px;
padding: 16px;
background: var(--bg-primary);
border-radius: var(--border-radius);
margin-top: 10px;
}
.legend-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
}
.legend-color {
width: 16px;
height: 16px;
border-radius: 4px;
}
.events-container {
background: var(--bg-primary);
border-radius: var(--border-radius);
box-shadow: var(--shadow-sm);
height: calc(100vh - 180px);
overflow-y: auto;
}
.events-list {
padding: 16px;
}
.event-item {
padding: 12px;
border-bottom: 1px solid var(--border-color);
display: flex;
gap: 12px;
}
.event-item:last-child {
border-bottom: none;
}
.event-time {
color: var(--text-secondary);
font-size: 12px;
min-width: 140px;
}
.event-type {
font-weight: 500;
min-width: 120px;
}
.event-message {
flex: 1;
color: var(--text-primary);
}
.settings-container {
max-width: 600px;
}
.settings-section {
background: var(--bg-primary);
border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 20px;
box-shadow: var(--shadow-sm);
}
.settings-section h3 {
font-size: 16px;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-color);
}
.info-box {
background: var(--bg-secondary);
border-radius: var(--border-radius);
padding: 16px;
font-family: monospace;
font-size: 13px;
}
.details-container {
background: var(--bg-primary);
border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 16px;
box-shadow: var(--shadow-sm);
}
.sub-tabs {
display: flex;
gap: 0;
margin-bottom: 16px;
border-bottom: 2px solid var(--border-color);
}
.sub-tab {
padding: 10px 20px;
border: none;
background: none;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
border-bottom: 2px solid transparent;
margin-bottom: -2px;
transition: var(--transition);
}
.sub-tab:hover {
color: var(--text-primary);
}
.sub-tab.active {
color: var(--primary-color);
border-bottom-color: var(--primary-color);
}
.sub-tab-content {
background: var(--bg-primary);
border-radius: var(--border-radius);
box-shadow: var(--shadow-sm);
overflow: hidden;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: var(--bg-primary);
border-radius: var(--border-radius);
width: 100%;
max-width: 600px;
max-height: 90vh;
overflow: auto;
box-shadow: var(--shadow-lg);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
font-size: 18px;
}
.modal-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--text-secondary);
line-height: 1;
}
.modal-close:hover {
color: var(--text-primary);
}
.modal-body {
padding: 20px;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 16px 20px;
border-top: 1px solid var(--border-color);
}
.toast-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1100;
display: flex;
flex-direction: column;
gap: 10px;
}
.toast {
padding: 12px 20px;
border-radius: var(--border-radius);
color: white;
font-size: 14px;
box-shadow: var(--shadow-md);
animation: slideIn 0.3s ease;
max-width: 400px;
}
.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
.toast.warning { background: var(--warning-color); color: #333; }
.toast.info { background: var(--info-color); }
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.placeholder-message {
text-align: center;
color: var(--text-secondary);
padding: 40px;
}
.action-buttons {
display: flex;
gap: 6px;
}
.workflow-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 16px;
margin-bottom: 20px;
}
.summary-card {
background: var(--bg-secondary);
border-radius: var(--border-radius);
padding: 16px;
text-align: center;
}
.summary-card .value {
font-size: 28px;
font-weight: 600;
color: var(--text-primary);
}
.summary-card .label {
font-size: 12px;
color: var(--text-secondary);
text-transform: uppercase;
margin-top: 4px;
}
@media (max-width: 768px) {
.sidebar {
width: 60px;
}
.sidebar-header h1,
.sidebar-header .version,
.nav-item span:not(.nav-icon),
.connection-status .status-text {
display: none;
}
.nav-item {
justify-content: center;
}
.main-content {
margin-left: 60px;
padding: 15px;
}
.tab-header {
flex-direction: column;
gap: 10px;
align-items: flex-start;
}
.header-actions {
flex-wrap: wrap;
}
}