Spaces:
Paused
Paused
Download frontend/apps/internal/src/components/DashboardOverview.module.css from 3SCError404/miracle: direct link, hf CLI and curl.
- Browser
- Download file 18.3 kB
-
https://huggingface.co/spaces/3SCError404/miracle/resolve/main/frontend/apps/internal/src/components/DashboardOverview.module.css
- Command line
-
hf download hf://spaces/3SCError404/miracle/frontend/apps/internal/src/components/DashboardOverview.module.css
-
curl -L -o DashboardOverview.module.css https://huggingface.co/spaces/3SCError404/miracle/resolve/main/frontend/apps/internal/src/components/DashboardOverview.module.css
18.3 kB
.container {
padding: 32px 40px;
background-color: transparent;
min-height: 100vh;
display: flex;
flex-direction: column;
gap: 32px;
animation: fadeIn 0.5s ease-out;
}
@media (max-width: 900px) {
.container {
padding: 24px 20px;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.errorBanner {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #FCA5A5;
padding: 12px 20px;
border-radius: var(--radius-md);
margin-bottom: 24px;
font-size: 13px;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
backdrop-filter: blur(8px);
}
.retryInline {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 2px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
text-transform: uppercase;
font-weight: 800;
}
.retryInline:hover {
background: rgba(255, 255, 255, 0.25);
}
/* 1. Mission Banner */
.missionBanner {
background: var(--banner-bg);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 48px;
display: grid;
grid-template-columns: 1fr 480px;
gap: 60px;
align-items: center;
color: var(--banner-text);
box-shadow: var(--shadow-xl);
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
@media (max-width: 1400px) {
.missionBanner {
padding: 40px;
}
}
@media (max-width: 1200px) {
.missionBanner {
grid-template-columns: 1fr;
gap: 40px;
padding: 40px 32px;
}
}
.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: var(--banner-subtitle);
}
.userName {
font-size: clamp(20px, 4vw, 24px);
font-weight: 900;
letter-spacing: -0.02em;
color: var(--banner-text);
text-transform: uppercase;
}
.globalRefresh {
background: var(--bg-dark);
border: 1px solid var(--border-subtle);
color: var(--primary);
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.05);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--radius-md);
padding: 24px;
min-height: 120px;
display: flex;
flex-direction: column;
justify-content: flex-start;
transition: all 0.3s ease;
position: relative;
}
.aiSummary::after {
content: '✦';
position: absolute;
top: 12px;
right: 16px;
font-size: 14px;
opacity: 0.4;
}
.aiBadge {
display: inline-block;
font-size: 9px;
font-weight: 900;
background: var(--primary);
color: #ffffff;
padding: 4px 8px;
border-radius: 4px;
margin-bottom: 12px;
letter-spacing: 0.05em;
width: fit-content;
}
.summaryText {
font-size: 15px;
line-height: 1.7;
font-weight: 500;
color: var(--banner-text);
opacity: 0.9;
}
/* Banner Stats Container */
.bannerStats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
align-self: flex-end;
transition: all 0.3s ease;
}
@media (max-width: 1200px) {
.bannerStats {
align-self: stretch;
grid-template-columns: repeat(3, 1fr);
width: 100%;
}
}
@media (max-width: 800px) {
.bannerStats {
grid-template-columns: 1fr;
gap: 12px;
}
}
.frostedCard {
background: var(--banner-card-bg);
backdrop-filter: blur(12px);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 24px 16px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 160px;
transition: all 0.2s;
}
@media (max-width: 1200px) {
.frostedCard {
min-height: 120px;
}
}
.frostedCard:hover {
transform: translateY(-4px);
background: rgba(255, 255, 255, 0.15);
}
.fLabel {
font-size: 10px;
font-weight: 800;
color: var(--text-muted);
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: 700;
color: var(--text-muted);
text-transform: uppercase;
}
/* 2. Intelligence Grid */
.intelGrid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
align-items: stretch;
}
@media (max-width: 1024px) {
.intelGrid {
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
}
@media (max-width: 900px) {
.intelGrid {
grid-template-columns: 1fr;
}
}
.card {
background: var(--bg-card);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 28px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
height: 560px;
/* Fixed height for consistency as requested */
overflow: hidden;
}
.cardHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border-subtle);
background: linear-gradient(to right, rgba(124, 58, 237, 0.03), transparent);
}
.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;
}
.clearBtn {
background: rgba(99, 102, 241, 0.1);
border: 1px solid rgba(99, 102, 241, 0.2);
color: #6366F1;
font-size: 10px;
font-weight: 800;
padding: 4px 12px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
}
.clearBtn:hover {
background: #6366F1;
color: white;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Rest of the styles... */
.actionList {
display: flex;
flex-direction: column;
gap: 16px;
overflow-y: auto;
max-height: 440px;
padding-right: 8px;
}
/* Custom Scrollbar for Action List */
.actionList::-webkit-scrollbar {
width: 5px;
}
.actionList::-webkit-scrollbar-track {
background: transparent;
}
.actionList::-webkit-scrollbar-thumb {
background: rgba(124, 58, 237, 0.2);
border-radius: 10px;
}
.actionList::-webkit-scrollbar-thumb:hover {
background: rgba(124, 58, 237, 0.4);
}
.actionItem {
display: flex;
gap: 16px;
padding: 16px;
border-radius: var(--radius-md);
background: var(--bg-hover);
transition: all 0.2s;
cursor: pointer;
border: 1px solid transparent;
}
.actionItem:hover {
transform: translateX(4px);
background: var(--bg-card);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
border-color: rgba(124, 58, 237, 0.2);
}
.actionIcon {
width: 32px;
height: 32px;
background: var(--bg-card);
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);
}
/* Operations Stream */
.streamList {
display: flex;
flex-direction: column;
gap: 12px;
max-height: 500px;
overflow-y: auto;
padding-right: 8px;
}
.streamItem {
display: grid;
grid-template-columns: 120px 1fr 140px;
align-items: center;
gap: 24px;
padding: 16px 20px;
background: var(--bg-hover);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 900px) {
.streamItem {
grid-template-columns: 1fr;
gap: 12px;
}
.streamAction {
justify-content: flex-start !important;
}
}
.streamItem:hover {
background: var(--bg-card);
border-color: var(--primary);
transform: translateX(4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
/* 5 Recent Tickets Table */
.tableBox {
flex: 1;
overflow-x: auto;
overflow-y: hidden;
background: var(--bg-card);
border-radius: var(--radius-md);
border: 1px solid var(--border-subtle);
}
.tableBox::-webkit-scrollbar {
height: 4px;
}
.tableBox::-webkit-scrollbar-track {
background: transparent;
}
.tableBox::-webkit-scrollbar-thumb {
background: rgba(124, 58, 237, 0.15);
border-radius: 10px;
}
.tableBox::-webkit-scrollbar-thumb:hover {
background: rgba(124, 58, 237, 0.3);
}
.miniTable {
width: 100%;
min-width: 450px;
border-collapse: collapse;
text-align: left;
}
.miniTable th {
font-size: 9px;
font-weight: 900;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
padding: 12px 16px;
background: var(--bg-hover);
border-bottom: 1px solid var(--border-subtle);
}
.miniTable td {
padding: 12px 16px;
font-size: 11px;
border-bottom: 1px solid var(--border-subtle);
vertical-align: middle;
}
.miniTable tr:last-child td {
border-bottom: none;
}
.clickableRow {
cursor: pointer;
transition: all 0.2s;
}
.clickableRow:hover {
background: var(--bg-hover);
}
.tableId {
font-family: var(--font-mono);
font-weight: 700;
color: var(--text-muted);
width: 80px;
}
.tableTitle {
font-weight: 600;
color: var(--text-main);
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tableAgent {
font-weight: 700;
color: var(--primary);
text-transform: uppercase;
}
.miniTag {
font-size: 8px;
font-weight: 900;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid;
text-transform: uppercase;
}
.tableEmpty {
text-align: center;
padding: 40px;
font-size: 11px;
color: var(--text-muted);
}
.sTable {
height: 40px;
width: 100%;
margin: 4px 0;
}
.streamMeta {
display: flex;
flex-direction: column;
gap: 4px;
}
@media (max-width: 900px) {
.streamMeta {
flex-direction: row;
align-items: center;
gap: 8px;
}
}
.tID {
font-family: var(--font-mono);
font-size: 11px;
font-weight: 700;
color: var(--text-muted);
}
.tTag {
padding: 2px 6px;
border-radius: 4px;
font-size: 9px;
font-weight: 900;
width: fit-content;
}
.streamContent {
display: flex;
flex-direction: column;
gap: 2px;
}
.tTitle {
font-size: 14px;
font-weight: 700;
color: var(--text-main);
}
.tFooter {
font-size: 11px;
color: var(--text-muted);
}
.streamAction {
display: flex;
justify-content: flex-end;
}
.viewBtn {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
color: var(--text-main);
font-size: 10px;
font-weight: 800;
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
}
.viewBtn:hover {
background: var(--primary);
color: white;
border-color: var(--primary);
}
.emptyStream {
text-align: center;
padding: 60px 20px;
color: var(--text-muted);
}
/* 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;
}
/* Grain Selector */
.grainSelector {
display: flex;
background: var(--bg-hover);
padding: 2px;
border-radius: 8px;
border: 1px solid var(--border-subtle);
}
.grainBtn {
background: none;
border: none;
padding: 4px 10px;
border-radius: 6px;
font-size: 10px;
font-weight: 800;
color: var(--text-muted);
cursor: pointer;
transition: all 0.2s;
}
.grainBtnActive {
background: var(--bg-card) !important;
color: var(--primary) !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.refreshPulse {
position: absolute;
top: -2px;
right: -2px;
width: 8px;
height: 8px;
background: #10B981;
border-radius: 50%;
border: 2px solid white;
animation: pulseSmall 2s infinite;
}
@keyframes pulseSmall {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
}
/* Horizontal Stat Bars */
.statList {
display: flex;
flex-direction: column;
gap: 14px;
overflow-y: auto;
padding-right: 4px;
margin-top: 8px;
}
.statItem {
display: flex;
flex-direction: column;
gap: 6px;
padding: 4px 0;
transition: all 0.2s;
}
.statItem:hover .statBarFill {
filter: brightness(1.1);
box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}
.statLabelRow {
display: flex;
justify-content: space-between;
align-items: center;
}
.statTag {
font-size: 11px;
font-weight: 700;
color: var(--text-main);
text-transform: uppercase;
letter-spacing: 0.02em;
}
.statValue {
font-size: 11px;
font-weight: 800;
color: var(--text-muted);
}
.statBarContainer {
width: 100%;
height: 6px;
background: var(--bg-hover);
border-radius: 10px;
overflow: hidden;
position: relative;
}
.statBarFill {
height: 100%;
border-radius: 10px;
transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
background: var(--primary);
}
.leaderboardItem {
background: rgba(255, 255, 255, 0.5);
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 12px 14px;
}
.leaderboardItem:hover {
background: var(--bg-card);
border-color: var(--primary);
transform: translateX(4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.chartGrid {
display: grid;
grid-template-columns: 140px 1fr;
gap: 20px;
align-items: center;
height: 100%;
}
.chartCol {
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
}
.totalSummary {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
pointer-events: none;
}
.totalValueText {
display: block;
font-size: 16px;
font-weight: 900;
color: var(--text-main);
line-height: 1;
}
.totalLabelText {
display: block;
font-size: 8px;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 2px;
}
/* Expanded Pie Chart */
.chartGrid {
display: flex;
flex-direction: column;
height: 100%;
gap: 12px;
}
.chartColBig {
flex: 1;
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 300px;
width: 100%;
}
.totalSummaryBig {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
pointer-events: none;
}
.totalValueTextBig {
display: block;
font-size: 32px;
font-weight: 900;
color: var(--text-main);
line-height: 1;
}
.totalLabelTextBig {
display: block;
font-size: 10px;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
}
.statListSmall {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 16px;
background: var(--bg-hover);
border-radius: 12px;
justify-content: center;
}
.miniLeaderboardItem {
display: flex;
align-items: center;
gap: 6px;
background: var(--bg-hover);
padding: 4px 10px;
border-radius: 99px;
border: 1px solid var(--border-subtle);
}
.miniName {
font-size: 9px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
}
.miniVal {
font-size: 10px;
font-weight: 900;
color: var(--text-main);
}
.dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
/* 3-CARD MINIMALIST LAYOUT REIMAGINED */
.miniCard {
background: var(--bg-card);
border-radius: 12px;
padding: 24px;
display: flex;
flex-direction: column;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
border: 1px solid var(--border-subtle);
height: 380px;
}
.miniCardHeader {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}
.miniCardIcon {
font-size: 20px;
}
.miniCardTitle {
font-size: 11px;
font-weight: 900;
color: var(--text-main);
text-transform: uppercase;
letter-spacing: 0.05em;
margin: 0 0 2px 0;
}
.miniCardSubtitle {
font-size: 10px;
font-weight: 600;
color: var(--text-muted);
margin: 0;
}
.miniCardChart {
flex: 1;
min-height: 120px;
margin-bottom: 20px;
position: relative;
border-bottom: 1px dashed var(--border-subtle);
padding-bottom: 20px;
}
.miniCardStat {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px dashed var(--border-subtle);
}
.miniCardInsight {
font-size: 10px;
line-height: 1.5;
color: var(--text-muted);
font-family: monospace;
}
/* Specific Dashboard Skeletons */
.skeletonCircle {
width: 220px;
height: 220px;
border-radius: 50%;
border: 12px solid var(--bg-hover);
}
.skeletonPill {
width: 80px;
height: 24px;
border-radius: 99px;
background: var(--bg-hover);
}
.skeletonPulse {
background: linear-gradient(
90deg,
var(--bg-hover) 25%,
var(--border-subtle) 50%,
var(--bg-hover) 75%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite linear;
}
.container {
padding: 32px 40px;
background-color: transparent;
min-height: 100vh;
display: flex;
flex-direction: column;
gap: 32px;
animation: fadeIn 0.5s ease-out;
}
@media (max-width: 900px) {
.container {
padding: 24px 20px;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.errorBanner {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #FCA5A5;
padding: 12px 20px;
border-radius: var(--radius-md);
margin-bottom: 24px;
font-size: 13px;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
backdrop-filter: blur(8px);
}
.retryInline {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 2px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
text-transform: uppercase;
font-weight: 800;
}
.retryInline:hover {
background: rgba(255, 255, 255, 0.25);
}
/* 1. Mission Banner */
.missionBanner {
background: var(--banner-bg);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 48px;
display: grid;
grid-template-columns: 1fr 480px;
gap: 60px;
align-items: center;
color: var(--banner-text);
box-shadow: var(--shadow-xl);
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
@media (max-width: 1400px) {
.missionBanner {
padding: 40px;
}
}
@media (max-width: 1200px) {
.missionBanner {
grid-template-columns: 1fr;
gap: 40px;
padding: 40px 32px;
}
}
.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%);