644 lines
13 KiB
CSS
644 lines
13 KiB
CSS
:root {
|
|
/* MD3 Color Tokens - Dark Theme (Violet/Deep Space) */
|
|
--md-sys-color-background: #09090b;
|
|
--md-sys-color-on-background: #e2e2e6;
|
|
|
|
--md-sys-color-surface: #0f1115;
|
|
/* Main card bg */
|
|
--md-sys-color-surface-dim: #09090b;
|
|
/* App bg */
|
|
--md-sys-color-surface-container: #1b1f26;
|
|
/* Elevated cards */
|
|
--md-sys-color-surface-container-high: #242933;
|
|
/* Modal/Nav */
|
|
|
|
--md-sys-color-primary: #d0bcff;
|
|
--md-sys-color-on-primary: #381e72;
|
|
--md-sys-color-primary-container: #4f378b;
|
|
--md-sys-color-on-primary-container: #eaddff;
|
|
|
|
--md-sys-color-secondary: #ccc2dc;
|
|
--md-sys-color-on-secondary: #332d41;
|
|
--md-sys-color-secondary-container: #4a4458;
|
|
--md-sys-color-on-secondary-container: #e8def8;
|
|
|
|
--md-sys-color-tertiary: #efb8c8;
|
|
--md-sys-color-outline: #938f99;
|
|
--md-sys-color-outline-variant: #49454f;
|
|
|
|
--radius-l: 24px;
|
|
--radius-pill: 50px;
|
|
--font-main: 'Outfit', sans-serif;
|
|
|
|
/* Effects */
|
|
--elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
|
|
--elevation-2: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
|
|
--glass-bg: rgba(30, 33, 40, 0.7);
|
|
--glass-border: rgba(255, 255, 255, 0.08);
|
|
/* Faint stroke for premium feel */
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--md-sys-color-background);
|
|
color: var(--md-sys-color-on-background);
|
|
font-family: var(--font-main);
|
|
font-size: 16px;
|
|
min-height: 100vh;
|
|
padding-bottom: 80px;
|
|
/* Space for bottom nav */
|
|
}
|
|
|
|
/* Background Animation */
|
|
#stars-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: -2;
|
|
background: radial-gradient(circle at 50% 100%, #17101f 0%, #09090b 100%);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.glow-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: -1;
|
|
background: radial-gradient(circle at 80% 10%, rgba(208, 188, 255, 0.05) 0%, transparent 50%),
|
|
radial-gradient(circle at 20% 90%, rgba(79, 55, 139, 0.1) 0%, transparent 50%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Typography */
|
|
h1 {
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
color: var(--md-sys-color-on-background);
|
|
letter-spacing: -0.5px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
color: var(--md-sys-color-on-background);
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--md-sys-color-outline);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* Layout */
|
|
.app-layout {
|
|
margin: 0 auto;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
display: none;
|
|
/* Hidden on mobile */
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100vh;
|
|
padding: 30px;
|
|
flex-direction: column;
|
|
z-index: 50;
|
|
}
|
|
|
|
.content-area {
|
|
flex: 1;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
/* Prevent flex overflow */
|
|
}
|
|
|
|
/* Components: Glass / Surface */
|
|
.glass {
|
|
background: var(--md-sys-color-surface-container);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-l);
|
|
backdrop-filter: blur(10px);
|
|
/* Less blur for performance, color does work */
|
|
}
|
|
|
|
/* Headers */
|
|
.mobile-header {
|
|
height: 64px;
|
|
padding: 0 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
background: rgba(9, 9, 11, 0.8);
|
|
backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid var(--glass-border);
|
|
}
|
|
|
|
.logo-mini {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.user-chip .avatar-xs {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--md-sys-color-primary-container);
|
|
color: var(--md-sys-color-on-primary-container);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* View Container */
|
|
.view-container {
|
|
padding: 24px;
|
|
animation: fadeUp 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
|
|
}
|
|
|
|
@keyframes fadeUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(15px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* MD3 Cards */
|
|
.status-card {
|
|
background: var(--md-sys-color-surface-container);
|
|
padding: 24px;
|
|
border-radius: var(--radius-l);
|
|
margin-bottom: 16px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: 1px solid var(--glass-border);
|
|
box-shadow: var(--elevation-1);
|
|
}
|
|
|
|
/* Stats Ring */
|
|
.status-ring {
|
|
width: 120px;
|
|
height: 120px;
|
|
margin-bottom: 16px;
|
|
align-self: center;
|
|
}
|
|
|
|
.circular-chart {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.circle-bg {
|
|
stroke: var(--md-sys-color-surface-container-high);
|
|
stroke-width: 8;
|
|
/* Thicker premium look */
|
|
fill: none;
|
|
}
|
|
|
|
.circle {
|
|
stroke: var(--md-sys-color-primary);
|
|
stroke-width: 8;
|
|
stroke-linecap: round;
|
|
fill: none;
|
|
transition: stroke-dasharray 1s ease;
|
|
}
|
|
|
|
.ring-content {
|
|
position: absolute;
|
|
top: 24px;
|
|
left: 24px;
|
|
width: 120px;
|
|
height: 120px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ring-content .value {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--md-sys-color-primary);
|
|
}
|
|
|
|
.ring-content .unit {
|
|
font-size: 12px;
|
|
color: var(--md-sys-color-outline);
|
|
}
|
|
|
|
/* Details List */
|
|
.status-details {
|
|
background: var(--md-sys-color-surface-dim);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.detail-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.detail-item:last-child {
|
|
border: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.detail-item:first-child {
|
|
padding-top: 0;
|
|
}
|
|
|
|
/* Quick Actions */
|
|
.quick-actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.action-card {
|
|
background: var(--md-sys-color-surface-container);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-l);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
transition: transform 0.1s;
|
|
user-select: none;
|
|
}
|
|
|
|
.action-card:active {
|
|
transform: scale(0.98);
|
|
background: var(--md-sys-color-surface-container-high);
|
|
}
|
|
|
|
.action-card span {
|
|
font-weight: 500;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.icon-circle {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: var(--md-sys-color-secondary-container);
|
|
color: var(--md-sys-color-on-secondary-container);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.icon-circle.pop {
|
|
background: var(--md-sys-color-primary-container);
|
|
color: var(--md-sys-color-on-primary-container);
|
|
}
|
|
|
|
/* Shop Items */
|
|
.plans-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.plan-card {
|
|
background: var(--md-sys-color-surface-container);
|
|
border-radius: var(--radius-l);
|
|
padding: 20px;
|
|
border: 1px solid var(--glass-border);
|
|
}
|
|
|
|
.plan-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.plan-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--md-sys-color-on-surface);
|
|
}
|
|
|
|
.plan-price {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--md-sys-color-primary);
|
|
}
|
|
|
|
.plan-specs {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
color: var(--md-sys-color-outline);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary {
|
|
width: 100%;
|
|
height: 48px;
|
|
border-radius: var(--radius-pill);
|
|
border: none;
|
|
background: var(--md-sys-color-primary);
|
|
color: var(--md-sys-color-on-primary);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
cursor: pointer;
|
|
box-shadow: var(--elevation-1);
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
.btn-primary:active {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-secondary {
|
|
width: 100%;
|
|
height: 48px;
|
|
border-radius: var(--radius-pill);
|
|
border: 1px solid var(--md-sys-color-outline);
|
|
background: transparent;
|
|
color: var(--md-sys-color-primary);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-small {
|
|
height: 40px;
|
|
padding: 0 20px;
|
|
border-radius: var(--radius-pill);
|
|
border: none;
|
|
background: var(--md-sys-color-primary-container);
|
|
color: var(--md-sys-color-on-primary-container);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* MD3 Bottom Navigation */
|
|
.bottom-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 80px;
|
|
background: var(--md-sys-color-surface-container);
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
border-top: 1px solid var(--glass-border);
|
|
z-index: 100;
|
|
padding-bottom: 10px;
|
|
/* Safe area */
|
|
}
|
|
|
|
.nav-item {
|
|
background: none;
|
|
border: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
width: 64px;
|
|
cursor: pointer;
|
|
color: var(--md-sys-color-outline);
|
|
}
|
|
|
|
.nav-item svg {
|
|
z-index: 2;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
/* Active Indicator (Pill) */
|
|
.nav-item.active {
|
|
color: var(--md-sys-color-on-secondary-container);
|
|
}
|
|
|
|
.nav-item.active svg {
|
|
background: var(--md-sys-color-secondary-container);
|
|
border-radius: 16px;
|
|
padding: 4px 20px;
|
|
width: 64px;
|
|
box-sizing: content-box;
|
|
/* Stretch pill */
|
|
height: 24px;
|
|
}
|
|
|
|
/* Center FAB Override for 'Config' */
|
|
.nav-item.center-fab {
|
|
transform: translateY(-20px);
|
|
}
|
|
|
|
.nav-item.center-fab .fab-bg {
|
|
width: 56px;
|
|
height: 56px;
|
|
background: var(--md-sys-color-primary-container);
|
|
color: var(--md-sys-color-on-primary-container);
|
|
border-radius: 16px;
|
|
/* Squircle */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: var(--elevation-2);
|
|
}
|
|
|
|
/* Inputs */
|
|
.glass-input {
|
|
width: 100%;
|
|
height: 56px;
|
|
border: 1px solid var(--md-sys-color-outline);
|
|
border-radius: 8px;
|
|
/* M3 text field */
|
|
background: var(--md-sys-color-surface);
|
|
color: white;
|
|
padding: 0 16px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.glass-input:focus {
|
|
border-color: var(--md-sys-color-primary);
|
|
border-width: 2px;
|
|
outline: none;
|
|
}
|
|
|
|
/* Profile */
|
|
.profile-main {
|
|
align-items: center;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.big-avatar {
|
|
width: 96px;
|
|
height: 96px;
|
|
background: var(--md-sys-color-primary-container);
|
|
color: var(--md-sys-color-on-primary-container);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 40px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.id-badge {
|
|
background: var(--md-sys-color-surface-container-high);
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* List Menu */
|
|
.list-menu {
|
|
border-radius: var(--radius-l);
|
|
background: var(--md-sys-color-surface-container);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.list-item {
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 16px;
|
|
gap: 16px;
|
|
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
color: var(--md-sys-color-on-surface);
|
|
background: none;
|
|
border: none;
|
|
width: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.list-item:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
/* Material Ripple Effect */
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 0.6s linear;
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Desktop Sidebar fix */
|
|
@media (min-width: 769px) {
|
|
.bottom-nav {
|
|
display: none;
|
|
}
|
|
|
|
.app-layout {
|
|
display: flex;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
/* Ensure vertical layout */
|
|
background: var(--md-sys-color-surface-container);
|
|
border-right: 1px solid var(--glass-border);
|
|
width: 280px;
|
|
/* Wider standard drawer */
|
|
padding: 24px;
|
|
gap: 12px;
|
|
}
|
|
|
|
.content-area {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.sidebar .nav-item {
|
|
flex-direction: row;
|
|
width: 100%;
|
|
height: 56px;
|
|
padding: 0 24px;
|
|
border-radius: 28px;
|
|
/* Full pill */
|
|
gap: 12px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.1px;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.sidebar .nav-item:hover {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.sidebar .nav-item.active {
|
|
background: var(--md-sys-color-secondary-container);
|
|
color: var(--md-sys-color-on-secondary-container);
|
|
}
|
|
|
|
.sidebar .nav-item svg,
|
|
.sidebar .nav-item.active svg {
|
|
background: transparent;
|
|
padding: 0;
|
|
width: 24px;
|
|
height: 24px;
|
|
box-sizing: border-box;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* Hide FAB background on desktop sidebar if we reuse the same button */
|
|
.sidebar .fab-bg {
|
|
background: transparent;
|
|
width: auto;
|
|
height: auto;
|
|
box-shadow: none;
|
|
display: contents;
|
|
/* Treat children as direct children of button */
|
|
}
|
|
} |