Files
monitoring-app/src/index.css
2026-04-02 11:59:21 +08:00

114 lines
2.4 KiB
CSS

@import '@mantine/core/styles.css';
:root {
--font-inter: 'Inter', system-ui, -apple-system, sans-serif;
/* Monitoring System Colors */
--blue-primary: #2563EB;
--purple-primary: #7C3AED;
--gradient-blue-purple: linear-gradient(135deg, var(--blue-primary) 0%, var(--purple-primary) 100%);
/* Backgrounds & Cards (Light Mode) */
--bg-light: #F8FAFC;
--card-light: #FFFFFF;
/* Backgrounds & Cards (Dark Mode) */
--bg-dark: #0F172A;
--card-dark: #1E293B;
/* Transitions */
--transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Base Resets */
html, body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
font-family: var(--font-inter);
/* background-color handled by Mantine */
color: var(--mantine-color-text);
}
body {
overflow-x: hidden;
}
/* Custom Scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(124, 58, 237, 0.2);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(124, 58, 237, 0.4);
}
/* Premium Dashboard Utilities */
.glass {
background: var(--mantine-color-default);
backdrop-filter: blur(12px);
border: 1px solid rgba(128, 128, 128, 0.1);
border-radius: 24px; /* XL rounding for cards */
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.gradient-text {
background: var(--gradient-blue-purple);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.gradient-bg {
background: var(--gradient-blue-purple);
}
.premium-card {
transition: var(--transition-smooth);
}
.premium-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 24px -10px rgba(124, 58, 237, 0.3);
}
.sidebar-nav-item {
position: relative;
transition: var(--transition-smooth);
}
.sidebar-nav-item.active {
background: var(--gradient-blue-purple);
color: white;
}
/* Responsive Table */
.data-table {
border-radius: 20px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.data-table thead th {
background: rgba(124, 58, 237, 0.05);
font-weight: 600;
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.05em;
padding: 12px 16px;
}
.data-table tbody tr {
transition: var(--transition-smooth);
}
.data-table tbody tr:hover {
background: rgba(124, 58, 237, 0.03);
}