Spaces:
Paused

miracle / frontend /apps /internal /src /components /InfraMonitor.module.css
dushyantsingh0
backend stabilization
ea10f92
Raw History Blame Contribute Delete
11 kB
.container {
padding: 2.5rem; /* Reduced from 280px to standard padding as parent layout handles sidebar */
background: var(--bg-dark);
min-height: 100vh;
max-width: 100vw;
overflow-x: hidden;
color: var(--text1);
font-family: var(--font-main);
}
.header {
margin-bottom: 4rem;
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.header h1 {
font-size: 2.75rem;
font-weight: 900;
letter-spacing: -0.04em;
color: var(--text1);
margin-bottom: 0.5rem;
background: linear-gradient(135deg, var(--text1) 0%, var(--accent) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.header p {
color: var(--text3);
font-size: 1.15rem;
font-weight: 500;
max-width: 600px;
}
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2.5rem;
margin-bottom: 4rem;
}
.card {
background: var(--bg-card);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(226, 232, 240, 0.8);
border-radius: 24px;
padding: 2.5rem;
position: relative;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px -2px rgba(0, 0, 0, 0.02),
inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.card:hover {
transform: translateY(-8px);
border-color: var(--accent);
box-shadow:
0 30px 60px -12px rgba(30, 64, 175, 0.08),
0 18px 36px -18px rgba(30, 64, 175, 0.12);
}
.cardTopBorder {
position: absolute;
top: 0;
left: 32px;
right: 32px;
height: 3px;
border-radius: 0 0 4px 4px;
}
.cardHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.cardTitle {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.95rem;
font-weight: 800;
color: var(--text2);
text-transform: uppercase;
letter-spacing: 0.08em;
}
/* Premium Status Orb */
.statusOrb {
width: 14px;
height: 14px;
border-radius: 50%;
position: relative;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.statusOrb.UP {
background: var(--green);
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
.statusOrb.DOWN {
background: var(--red);
box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.statusOrb.DEGRADED {
background: var(--amber);
box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}
.statusOrb::before {
content: '';
position: absolute;
inset: -6px;
border-radius: 50%;
background: inherit;
opacity: 0.2;
animation: orbGlow 3s infinite alternate;
}
@keyframes orbGlow {
0% { transform: scale(1); opacity: 0.1; }
100% { transform: scale(2); opacity: 0.3; }
}
.statValue {
font-size: 3.5rem;
font-weight: 900;
color: var(--text1);
letter-spacing: -0.06em;
margin-bottom: 0.5rem;
line-height: 1;
}
.statLabel {
color: var(--text3);
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.15em;
}
.metrics {
margin-top: 2.5rem;
display: flex;
gap: 3rem;
}
.metricItem {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.metricLabel {
font-size: 0.7rem;
font-weight: 800;
color: var(--text3);
text-transform: uppercase;
letter-spacing: 0.1em;
}
.metricValue {
font-size: 1.1rem;
color: var(--text1);
font-weight: 800;
font-family: var(--font-mono);
}
/* Sections & Layout */
.sectionGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Use auto-fit to wrap on smaller viewports */
gap: 2rem;
align-items: start;
width: 100%;
}
.section {
background: var(--bg-card);
border-radius: 28px;
border: 1px solid var(--border);
padding: 2.5rem;
min-height: 600px;
min-width: 0; /* Critical for grid item containment */
overflow: hidden;
}
.sectionHeader {
margin-bottom: 3.5rem;
}
.sectionTitle {
display: flex;
align-items: center;
gap: 1rem;
font-size: 1.5rem;
font-weight: 900;
color: var(--text1);
letter-spacing: -0.02em;
margin-bottom: 0.5rem;
}
.sectionSub {
font-size: 0.8rem;
color: var(--text3);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.list {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
/* Item Design */
.item {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 20px;
padding: 1.75rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.item:hover {
transform: scale(1.02);
border-color: var(--accent);
box-shadow: 0 12px 24px -10px rgba(30, 64, 175, 0.1);
}
.itemMeta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.typeBadge {
font-size: 0.8rem;
font-weight: 900;
color: var(--text1);
display: flex;
align-items: center;
gap: 0.75rem;
}
.idTag {
color: var(--text3);
font-weight: 500;
font-family: var(--font-mono);
}
.statusBadge {
font-size: 0.65rem;
font-weight: 800;
padding: 6px 14px;
border-radius: 100px;
background: var(--bg2);
color: var(--text2);
text-transform: uppercase;
letter-spacing: 0.05em;
border: 1px solid var(--border);
}
/* Neural Timeline Track */
.track {
display: flex;
align-items: center;
gap: 4px;
position: relative;
padding: 1rem 0;
overflow-x: auto; /* Enable internal scroll if the timeline is too long */
min-width: 0;
scrollbar-width: none; /* Hide scrollbar for internal tracks for cleaner look */
}
.track::-webkit-scrollbar {
display: none;
}
.step {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
position: relative;
z-index: 2;
min-width: 80px; /* Slightly wider to ensure label visibility */
flex-shrink: 0;
}
.node {
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--bg-hover);
border: 3px solid var(--bg-card);
box-shadow: 0 0 0 1px var(--border);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.node.success {
background: var(--green);
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.node.error {
background: var(--red);
box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.node.skipped { background: var(--bg3); opacity: 0.7; }
.node.pending {
background: var(--accent);
animation: nodeActive 1.5s infinite;
}
@keyframes nodeActive {
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4); }
70% { transform: scale(1.3); box-shadow: 0 0 0 10px rgba(30, 64, 175, 0); }
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
}
.connector {
flex: 1;
height: 2px;
background: var(--border);
min-width: 20px;
position: relative;
overflow: hidden;
}
.connector::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
animation: dataPacket 2s infinite linear;
}
@keyframes dataPacket {
0% { left: -100%; }
100% { left: 100%; }
}
.nodeLabel {
font-size: 0.65rem;
font-weight: 800;
color: var(--text3);
text-transform: uppercase;
white-space: nowrap;
}
/* Interaction Agent styling */
.agentHeader {
display: flex;
align-items: center;
gap: 1rem;
}
.agentIcon {
width: 36px;
height: 36px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg2);
border: 1px solid var(--border);
color: var(--accent);
}
.agentName {
font-size: 1rem;
font-weight: 800;
color: var(--text1);
}
/* Soft Error Aura */
.errorAura {
margin-top: 1.5rem;
background: rgba(239, 68, 68, 0.03);
border: 1px solid rgba(239, 68, 68, 0.1);
border-radius: 16px;
padding: 1.5rem;
}
.errorTitle {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--red);
font-weight: 800;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.75rem;
}
.errorText {
font-family: var(--font-mono);
font-size: 0.85rem;
color: var(--text2);
line-height: 1.6;
}
/* Search and Pagination Controls */
.controls {
display: flex;
align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
}
.searchInputWrapper {
position: relative;
flex: 1;
max-width: 400px;
}
.searchInput {
width: 100%;
padding: 12px 16px 12px 42px;
background: var(--bg1);
border: 1px solid var(--border-hi);
border-radius: 14px;
font-family: var(--font-main);
font-size: 0.9rem;
font-weight: 500;
color: var(--text1);
transition: all 0.3s ease;
}
.searchInput:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 4px var(--accent-glow);
}
.searchIcon {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: var(--text3);
}
.pagination {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 2rem;
justify-content: flex-end;
}
.pageBtn {
background: var(--bg1);
border: 1px solid var(--border);
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
color: var(--text1);
font-weight: 700;
font-size: 0.75rem;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s;
}
.pageBtn:hover:not(:disabled) {
border-color: var(--accent);
color: var(--accent);
}
.pageBtn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.refreshBtn {
background: var(--bg1);
border: 1px solid var(--border-hi);
border-radius: 14px;
padding: 10px 24px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
font-weight: 800;
font-size: 0.85rem;
color: var(--text1);
text-transform: uppercase;
letter-spacing: 0.08em;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.refreshBtn:hover {
transform: scale(1.05);
border-color: var(--accent);
color: var(--accent);
box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
}
.shimmerOverlay {
position: absolute;
inset: 0;
background: linear-gradient(90deg,
transparent 0%,
rgba(255, 255, 255, 0.1) 50%,
transparent 100%
);
background-size: 200% 100%;
animation: shimmerEffect 1.5s infinite;
z-index: 5;
pointer-events: none;
}
@keyframes shimmerEffect {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
.fading {
opacity: 0.5;
filter: blur(2px);
transition: all 0.4s ease;
}
/* Animations */
@keyframes entrance {
from { opacity: 0; transform: translateY(20px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.animateIn {
animation: entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Sparkline & History Enhancements */
.sparklineContainer {
height: 40px;
width: 100%;
padding: 4px 0;
filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}
.pulseIcon {
animation: pulseRotate 2s infinite linear;
}
@keyframes pulseRotate {
0% { transform: rotate(0deg) scale(1); }
50% { transform: scale(1.2); }
100% { transform: rotate(360deg) scale(1); }
}