Spaces:
Paused

nexus / frontend /apps /internal /src /components /DashboardOverview.module.css
dushyantsingh0
backend stabilization
951cf3b
Raw History Blame Contribute Delete
8.54 kB
.container {
padding: 32px 40px;
background-color: var(--bg-dark);
min-height: 100vh;
display: flex;
flex-direction: column;
gap: 32px;
animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* 1. Mission Banner */
.missionBanner {
background: var(--banner-gradient);
border-radius: var(--radius-lg);
padding: 48px;
display: grid;
grid-template-columns: 1fr 480px;
gap: 60px;
align-items: center;
color: white;
box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2);
position: relative;
overflow: hidden;
}
.missionBanner::after {
content: '';
position: absolute;
top: -50%;
right: -10%;
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
pointer-events: none;
}
.bannerContent {
display: flex;
flex-direction: column;
}
.greetingHeader {
display: flex;
align-items: baseline;
gap: 10px;
margin-bottom: 24px;
}
.greetingText {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
color: rgba(255, 255, 255, 0.7);
}
.userName {
font-size: 24px;
font-weight: 900;
letter-spacing: -0.02em;
color: white;
text-transform: uppercase;
}
.globalRefresh {
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
font-size: 14px;
transition: all 0.2s;
margin-left: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.globalRefresh:hover {
background: rgba(255, 255, 255, 0.25);
transform: rotate(30deg);
}
.globalRefresh:active {
transform: scale(0.95);
}
.aiSummary {
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: var(--radius-md);
padding: 24px;
min-height: 200px;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.aiBadge {
display: inline-block;
font-size: 9px;
font-weight: 900;
background: rgba(255, 255, 255, 0.2);
padding: 4px 8px;
border-radius: 4px;
margin-bottom: 12px;
letter-spacing: 0.05em;
width: fit-content;
}
.summaryText {
font-size: 15px;
line-height: 1.6;
opacity: 0.95;
font-weight: 400;
}
/* Banner Stats Container */
.bannerStats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
align-self: flex-end;
}
.frostedCard {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: var(--radius-md);
padding: 24px 16px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 200px;
transition: transform 0.2s;
}
.frostedCard:hover {
transform: translateY(-4px);
background: rgba(255, 255, 255, 0.15);
}
.fLabel {
font-size: 10px;
font-weight: 800;
opacity: 0.7;
margin-bottom: 12px;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.fValue {
font-size: 32px;
font-weight: 900;
margin-bottom: 4px;
}
.fSub {
font-size: 10px;
font-weight: 600;
opacity: 0.6;
text-transform: uppercase;
}
/* 2. Intelligence Grid */
.intelGrid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 28px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
}
.cardHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.cardTitle {
font-size: 16px;
font-weight: 700;
color: var(--text-main);
}
.refreshBtn {
background: none;
border: none;
cursor: pointer;
font-size: 18px;
color: var(--text-muted);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
padding: 4px;
border-radius: 6px;
}
.refreshBtn:hover:not(:disabled) {
color: var(--primary);
background: var(--bg-hover);
transform: rotate(30deg);
}
.refreshBtn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.spinning {
display: inline-block;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Rest of the styles... */
.actionList { display: flex; flex-direction: column; gap: 16px; }
.actionItem { display: flex; gap: 16px; padding: 12px; border-radius: var(--radius-md); background: var(--bg-hover); transition: all 0.2s; cursor: pointer; }
.actionItem:hover { transform: translateX(4px); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.actionIcon { width: 32px; height: 32px; background: white; border: 1px solid var(--border-subtle); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.actionContent { flex: 1; }
.actionText { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
.actionMeta { font-size: 11px; color: var(--text-muted); }
.barsContainer { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 0 4px; margin: 10px 0; }
.chartLegend span { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.bar {
flex: 1;
border-radius: 4px 4px 1px 1px;
min-height: 4px;
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
display: flex;
justify-content: center;
}
.barLabel {
position: absolute;
bottom: -24px;
font-size: 9px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
white-space: nowrap;
}
/* Category Breakdown Chart */
.categoryBreakdown {
margin-top: 56px;
animation: fadeIn 0.8s ease-out;
}
.smallDivider {
height: 1px;
background: var(--border-subtle);
margin-bottom: 24px;
opacity: 0.5;
}
.subTitle {
font-size: 12px;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 20px;
}
.categoryList {
display: flex;
flex-direction: column;
gap: 16px;
}
.categoryRow {
display: grid;
grid-template-columns: 120px 1fr 40px;
align-items: center;
gap: 16px;
}
.catName {
font-size: 13px;
font-weight: 600;
color: var(--text-main);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.catBarWrapper {
height: 8px;
background: var(--bg-hover);
border-radius: 4px;
overflow: hidden;
}
.catBar {
height: 100%;
background: var(--primary);
border-radius: 4px;
transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
opacity: 0.8;
}
.catCount {
font-size: 12px;
font-weight: 700;
color: var(--text-main);
text-align: right;
}
.emptyCategories {
font-size: 13px;
color: var(--text-muted);
font-style: italic;
text-align: center;
padding: 20px;
}
.agentList { display: flex; flex-direction: column; gap: 20px; }
.agentItem { display: flex; align-items: center; gap: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--primary); border: 1px solid var(--border-subtle); }
.agentInfo { flex: 1; }
.agentHeader { display: flex; justify-content: space-between; margin-bottom: 6px; }
.agentName { font-size: 13px; color: var(--text-main); font-weight: 700; }
.agentScore { font-size: 11px; color: var(--text-muted); }
.progressBar { height: 8px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; }
.progressFill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
/* Skeletons */
.skeleton {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.05) 25%,
rgba(255, 255, 255, 0.1) 37%,
rgba(255, 255, 255, 0.05) 63%
);
background-size: 400% 100%;
animation: shimmer 1.4s ease infinite;
border-radius: 4px;
}
.skeletonDark {
background: linear-gradient(
90deg,
var(--bg-hover) 25%,
var(--border-subtle) 37%,
var(--bg-hover) 63%
);
background-size: 400% 100%;
animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
0% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.sText { height: 14px; width: 100%; margin: 8px 0; }
.sTitle { height: 32px; width: 120px; margin-bottom: 12px; }
.sValue { height: 40px; width: 60px; margin: 8px auto; }