Spaces:
3SCError404
/
Paused

nexus / frontend /apps /internal /src /components /WorkerLab.module.css
dushyantsingh0
backend stabilization
1df9c69
Raw History Blame Contribute Delete
6.61 kB
.container {
padding: 24px;
display: flex;
flex-direction: column;
gap: 24px;
max-width: 1400px;
margin: 0 auto;
}
.statsGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
}
.statCard {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
display: flex;
flex-direction: column;
gap: 8px;
position: relative;
overflow: hidden;
}
.statCard::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--accent);
opacity: 0.3;
}
.statLabel {
font-size: 12px;
font-weight: 800;
color: var(--text3);
text-transform: uppercase;
letter-spacing: 1px;
}
.statValue {
font-size: 32px;
font-weight: 900;
color: var(--text1);
}
.statTrend {
font-size: 11px;
color: #10b981;
}
.mainPanel {
display: grid;
grid-template-columns: 1fr 340px;
gap: 24px;
align-items: flex-start;
}
.jobTableContainer {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
}
.tableHeader {
padding: 20px 24px;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.tableTitle {
font-size: 16px;
font-weight: 800;
color: var(--text1);
}
.jobTable {
width: 100%;
border-collapse: collapse;
}
.jobTable th {
text-align: left;
padding: 12px 24px;
font-size: 11px;
font-weight: 800;
color: var(--text3);
text-transform: uppercase;
background: rgba(255,255,255,0.02);
}
.jobRow {
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: all 0.2s ease;
}
.jobRow:hover {
background: rgba(255,255,255,0.03);
}
.jobRow.selected {
background: rgba(79, 70, 229, 0.05);
border-left: 4px solid var(--accent);
}
.jobRow td {
padding: 16px 24px;
font-size: 13px;
color: var(--text2);
}
.statusBadge {
padding: 4px 10px;
border-radius: 99px;
font-size: 10px;
font-weight: 900;
text-transform: uppercase;
display: inline-block;
}
.status_success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status_failed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status_running { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status_queued { background: rgba(156, 163, 175, 0.1); color: #9ca3af; }
.taskName {
font-family: 'JetBrains Mono', monospace;
font-weight: 700;
font-size: 12px;
color: var(--accent);
}
.sideDetail {
display: flex;
flex-direction: column;
gap: 20px;
}
.detailCard {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 16px;
padding: 24px;
}
.detailTitle {
font-size: 14px;
font-weight: 800;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 8px;
}
.jsonBox {
background: #000;
padding: 16px;
border-radius: 8px;
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
color: #a5b4fc;
overflow-x: auto;
max-height: 300px;
}
.errorBox {
background: rgba(239, 68, 68, 0.05);
border: 1px solid rgba(239, 68, 68, 0.2);
padding: 16px;
border-radius: 8px;
color: #f87171;
font-size: 11px;
font-family: 'JetBrains Mono', monospace;
white-space: pre-wrap;
}
.emptyState {
padding: 80px;
text-align: center;
color: var(--text3);
font-size: 14px;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.spin icon, .spin {
display: inline-block;
animation: spin 1s linear infinite;
}
.tableContainer {
position: relative;
}
.refreshingTable {
opacity: 0.5;
pointer-events: none;
filter: grayscale(0.5);
transition: all 0.3s ease;
}
.liveIndicator {
width: 8px;
height: 8px;
background: #10b981;
border-radius: 50%;
animation: pulse 2s infinite;
}
.filterBar {
padding: 16px 24px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid var(--border);
display: flex;
gap: 16px;
align-items: center;
}
.searchInput {
background: var(--bg1);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 12px;
color: var(--text1);
font-size: 13px;
flex: 1;
max-width: 300px;
outline: none;
transition: border-color 0.2s;
}
.searchInput:focus {
border-color: var(--accent);
}
.selectInput {
background: var(--bg1);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 12px;
color: var(--text1);
font-size: 13px;
outline: none;
cursor: pointer;
}
.pagination {
padding: 16px 24px;
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(255, 255, 255, 0.01);
}
.pageInfo {
font-size: 12px;
color: var(--text3);
}
.pageControls {
display: flex;
gap: 4px;
}
.pageBtn {
background: var(--bg3);
border: 1px solid var(--border);
color: var(--text2);
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.pageBtn:hover:not(:disabled) {
background: var(--bg1);
border-color: var(--accent);
color: var(--accent);
}
.pageBtn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.pageBtnActive {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.idBox {
background: #000;
padding: 10px 14px;
border-radius: 6px;
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
color: var(--accent);
border: 1px solid rgba(79, 70, 229, 0.2);
word-break: break-all;
}
.timeline {
display: flex;
flex-direction: column;
gap: 0;
padding-left: 8px;
}
.timelineItem {
display: flex;
align-items: center;
gap: 12px;
position: relative;
}
.timelinePoint {
width: 10px;
height: 10px;
background: var(--accent);
border-radius: 50%;
z-index: 2;
}
.timelineLabel {
font-size: 12px;
font-weight: 700;
color: var(--text2);
width: 70px;
}
.timelineTime {
font-size: 11px;
color: var(--text3);
font-family: 'JetBrains Mono', monospace;
}
.timelineConnector {
border-left: 2px dashed rgba(255, 255, 255, 0.1);
margin-left: 4px;
padding: 8px 0 8px 16px;
font-size: 10px;
color: var(--accent);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.metadataGrid {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
.metadataRow {
display: flex;
justify-content: space-between;
font-size: 11px;
padding: 4px 0;
border-bottom: 1px solid rgba(255,255,255,0.03);
}
.metadataLabel {
color: var(--text3);
font-weight: 600;
}
.metadataValue {
color: var(--text2);
font-family: 'JetBrains Mono', monospace;
}