Spaces:
Paused

miracle / frontend /apps /internal /src /components /EscalationCentre.module.css
dushyantsingh0
backend stabilization
c64a33d
Raw History Blame Contribute Delete
12.4 kB
.container {
padding: var(--layout-padding);
background-color: var(--bg-dark);
min-height: calc(100vh - 120px);
display: flex;
flex-direction: column;
gap: var(--section-gap);
color: var(--text-main);
}
/* 1. Mission Header */
.missionHeader {
display: flex;
justify-content: space-between;
align-items: flex-end;
border-bottom: 1px solid var(--border-subtle);
padding-bottom: 24px;
transition: all 0.4s ease;
flex-wrap: wrap;
gap: 20px;
}
.missionHeaderAlert {
border-bottom-color: rgba(239, 68, 68, 0.2);
}
.statusBanner {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.statusOrb {
width: 8px;
height: 8px;
border-radius: 50%;
animation: orbPulse 2s infinite ease-in-out;
}
.hubTitle h1 {
font-size: clamp(24px, 5vw, 36px);
font-weight: 900;
letter-spacing: -0.02em;
margin: 0;
}
@keyframes orbPulse {
0%, 100% { transform: scale(1); opacity: 0.6; }
50% { transform: scale(1.5); opacity: 1; }
}
.badgeLine {
font-size: 10px;
font-weight: 900;
letter-spacing: 0.12em;
color: var(--text-muted);
}
.critical {
color: var(--error);
animation: textPulse 2s infinite;
}
.nominal { color: var(--success); }
@keyframes textPulse {
0%, 100% { opacity: 0.8; }
50% { opacity: 1; }
}
.complianceGauge {
width: 100%;
max-width: 300px;
}
.gaugeInfo {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
}
.gaugeInfo label {
font-size: 9px;
font-weight: 900;
color: var(--text-muted);
letter-spacing: 0.05em;
}
.gaugeValue {
font-size: 14px;
font-weight: 900;
color: var(--text-main);
}
.gaugeBar {
height: 6px;
background: var(--bg-hover);
border-radius: 3px;
overflow: hidden;
}
.gaugeFill {
height: 100%;
border-radius: 3px;
}
/* 2. Analytics Grid */
.analyticsGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}
.analyticsCard {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 24px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.cardGlow {
position: absolute;
top: -40px;
right: -40px;
width: 100px;
height: 100px;
filter: blur(40px);
opacity: 0.1;
pointer-events: none;
}
.activeAlert {
background: rgba(254, 242, 242, 0.6);
border-color: var(--error);
box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), inset 0 0 10px rgba(239, 68, 68, 0.05);
animation: pulseAlert 2s infinite;
}
@keyframes pulseAlert {
0% { border-color: rgba(239, 68, 68, 0.3); opacity: 0.9; }
50% { border-color: var(--error); opacity: 1; }
100% { border-color: rgba(239, 68, 68, 0.3); opacity: 0.9; }
}
.cardLabel {
font-size: 10px;
font-weight: 900;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 8px;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 12px;
}
.cardValue {
font-size: 32px;
font-weight: 900;
color: var(--text-main);
margin-bottom: 8px;
}
.cardTrend {
font-size: 11px;
font-weight: 800;
color: var(--success);
}
.cardTrend span {
font-weight: 900;
}
/* 3. Main Mission Grid */
.missionGrid {
display: grid;
grid-template-columns: 1fr 380px;
gap: 32px;
align-items: start;
}
@media (max-width: 1200px) {
.missionGrid {
grid-template-columns: 1fr;
}
}
.missionBoard {
background: var(--bg-card);
backdrop-filter: blur(24px);
border: 1px solid var(--border-subtle);
border-radius: 24px;
overflow: hidden;
box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.boardHeader {
padding: 24px 32px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border-subtle);
background: var(--bg-hover);
}
.boardTitle {
display: flex;
align-items: center;
gap: 12px;
color: var(--accent);
}
.boardTitle h3 {
font-size: 14px;
font-weight: 900;
letter-spacing: 0.05em;
margin: 0;
color: var(--text-main);
}
.boardFilters {
display: flex;
align-items: center;
gap: 8px;
}
.boardFilters select, .typeableInput {
padding: 6px 12px;
border-radius: 8px;
border: 1px solid var(--border-subtle);
font-size: 11px;
font-weight: 800;
outline: none;
background: var(--bg-card);
color: var(--text-main);
transition: all 0.2s ease;
}
.typeableInput {
width: 140px;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.typeableInput:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-glow);
}
.exportBtn {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 8px;
font-size: 10px;
font-weight: 900;
color: var(--accent);
cursor: pointer;
transition: all 0.2s ease;
margin-left: 12px;
}
.exportBtn:hover {
background: var(--bg-hover);
border-color: var(--accent);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.exportBtn span {
letter-spacing: 0.05em;
}
.tableWrapper {
overflow-x: auto;
border-radius: 12px;
}
.tableWrapper::-webkit-scrollbar {
height: 6px;
}
.tableWrapper::-webkit-scrollbar-track {
background: transparent;
}
.tableWrapper::-webkit-scrollbar-thumb {
background: rgba(124, 58, 237, 0.15);
border-radius: 10px;
}
.tableWrapper::-webkit-scrollbar-thumb:hover {
background: rgba(124, 58, 237, 0.3);
}
.missionTable {
width: 100%;
min-width: 900px;
border-collapse: collapse;
}
.missionTable th {
text-align: left;
padding: 16px 32px;
font-size: 9px;
font-weight: 950;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
border-bottom: 1px solid var(--border-subtle);
background: var(--bg-hover);
}
.missionTable tr {
transition: all 0.2s ease;
}
.missionTable tbody tr:hover {
background: rgba(248, 250, 252, 0.8);
}
.clickableRow {
cursor: pointer;
}
.missionTable td {
padding: 16px 32px;
border-bottom: 1px solid var(--bg-panel);
font-size: 13px;
vertical-align: middle;
}
.assetCell {
display: flex;
flex-direction: column;
gap: 4px;
}
.priorityCell, .deltaCell, .riskCell, .overdueCell {
display: flex;
align-items: center;
}
.assetId {
font-size: 10px;
font-weight: 900;
color: var(--accent);
letter-spacing: 0.05em;
}
.assetTitle {
font-weight: 750;
color: var(--text-main);
line-height: 1.2;
}
.priorityBadge {
font-size: 9px;
font-weight: 900;
padding: 2px 8px;
border-radius: 4px;
background: var(--bg-hover);
}
.priorityBadge[data-priority="P0"] { background: #fee2e2; color: #dc2626; }
.priorityBadge[data-priority="P1"] { background: #ffedd5; color: #d97706; }
.priorityBadge[data-priority="P2"] { background: #dcfce7; color: #16a34a; }
.deltaTimer {
display: flex;
align-items: center;
gap: 8px;
font-weight: 800;
font-size: 12px;
}
.riskIndicator {
display: flex;
align-items: center;
gap: 10px;
font-weight: 900;
font-size: 12px;
}
.riskIndicator .riskDot {
width: 8px;
height: 8px;
border-radius: 50%;
box-shadow: 0 0 8px currentColor;
}
.statusBadge {
font-size: 10px;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
}
.overdueCell {
font-weight: 900;
font-size: 14px;
}
.breachedRow {
background: rgba(239, 68, 68, 0.05);
}
.emptyTable {
text-align: center;
padding: 60px !important;
color: var(--text-muted);
font-style: italic;
}
.tablePagination {
padding: 16px 32px;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
background: var(--bg-hover);
border-top: 1px solid var(--border-subtle);
}
.tablePagination button {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
padding: 6px;
border-radius: 6px;
cursor: pointer;
display: flex;
}
.tablePagination span {
font-size: 11px;
font-weight: 900;
color: var(--text-muted);
}
/* 4. Controls Column */
.controlColumn {
display: flex;
flex-direction: column;
gap: 32px;
}
.rulesCard {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 24px;
box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}
.rulesHeader {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 24px;
}
.headerTitle h3 { margin: 0; font-size: 15px; font-weight: 900; }
.headerTitle span { font-size: 10px; font-weight: 800; color: var(--text-muted); display: block; margin-top: 4px; }
.addBtn {
background: var(--accent);
color: white;
border: none;
padding: 8px 16px;
border-radius: 10px;
font-size: 10px;
font-weight: 900;
cursor: pointer;
box-shadow: 0 4px 12px var(--accent-glow);
}
.rulesList {
display: flex;
flex-direction: column;
gap: 16px;
}
.topologyCard {
background: var(--bg-hover);
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 20px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.topologyCard:hover {
background: var(--bg-card);
border-color: var(--primary);
box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.05);
}
.topRow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.priorityPill {
font-size: 9px;
font-weight: 900;
padding: 4px 10px;
border-radius: 6px;
background: var(--bg-card);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.priorityPill[data-priority="P0"] { color: var(--error); }
.priorityPill[data-priority="P1"] { color: var(--warning); }
.logicFlow {
display: flex;
flex-direction: column;
gap: 6px;
position: relative;
padding-left: 12px;
}
.logicFlow::before {
content: '';
position: absolute;
left: 0;
top: 8px;
bottom: 8px;
width: 2px;
background: var(--bg-hover);
}
.logicBlock {
display: flex;
align-items: center;
gap: 8px;
}
.logicOp {
font-size: 9px;
font-weight: 950;
color: var(--accent);
min-width: 32px;
}
.logicDetail {
font-family: var(--font-mono);
font-size: 11px;
font-weight: 600;
color: var(--text-main);
background: rgba(0, 0, 0, 0.04);
padding: 2px 6px;
border-radius: 4px;
}
.topologyActions {
display: flex;
gap: 12px;
margin-top: 16px;
padding-top: 12px;
border-top: 1px dashed var(--bg-hover);
}
.topologyActions button {
background: none;
border: none;
font-size: 10px;
font-weight: 800;
color: var(--text-muted);
cursor: pointer;
padding: 0;
}
.topologyActions button:hover { color: var(--text-main); }
.textRed:hover { color: var(--error) !important; }
/* 5. Telemetry Card */
.telemetryCard {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 24px;
color: var(--text-main);
}
.telemetryCard .cardHeader {
font-size: 10px;
font-weight: 900;
color: var(--text-muted);
letter-spacing: 0.1em;
margin-bottom: 20px;
}
.auditList { display: flex; flex-direction: column; gap: 16px; }
.auditItem {
padding-left: 12px;
border-left: 1px solid var(--border-subtle);
}
.auditMeta { font-size: 9px; font-weight: 900; color: var(--text-dim); margin-bottom: 4px; }
.auditBody { font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.auditBody strong { color: var(--text-main); font-weight: 900; }
/* Switch Toggle UI */
.switch {
position: relative;
display: inline-block;
width: 32px;
height: 18px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: #e2e8f0;
transition: .4s;
border-radius: 18px;
}
.slider:before {
position: absolute;
content: "";
height: 14px; width: 14px;
left: 2px; bottom: 2px;
background-color: var(--bg-card);
transition: .4s;
border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(14px); }
.loadingContainer {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
color: var(--text-muted);
font-weight: 800;
font-size: 14px;
}
.loadingPulse {
width: 48px;
height: 48px;
border: 4px solid var(--accent);
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }