First Commit

This commit is contained in:
dedhersel
2026-02-17 12:43:27 +01:00
commit 38f85dc498
26 changed files with 9939 additions and 0 deletions

586
static/css/dashboard.css Normal file
View File

@@ -0,0 +1,586 @@
/* ===========================================
PROXMOX MANAGER - DASHBOARD STYLES
VM Cards, Metrics, and Dashboard Components
=========================================== */
/* ===========================================
VM GRID LAYOUT
=========================================== */
.vm-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
gap: var(--space-lg);
margin-top: var(--space-lg);
}
@media (max-width: 480px) {
.vm-grid {
grid-template-columns: 1fr;
}
}
/* ===========================================
VM CARDS
=========================================== */
.vm-card {
background: var(--bg-secondary);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
padding: var(--space-lg);
transition: all var(--transition-normal);
position: relative;
overflow: hidden;
}
.vm-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: var(--border-default);
transition: background var(--transition-fast);
}
.vm-card:hover {
border-color: var(--border-muted);
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.vm-card.status-running::before {
background: var(--accent-green);
}
.vm-card.status-stopped::before {
background: var(--accent-red);
}
.vm-card.status-unknown::before {
background: var(--text-tertiary);
}
/* VM Header */
.vm-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: var(--space-md);
}
.vm-title {
font-size: 1.125rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-xs);
}
.vm-id {
font-size: 0.8rem;
color: var(--text-secondary);
font-family: var(--font-mono);
}
.vm-notes {
color: var(--text-secondary);
font-size: 0.85rem;
margin-bottom: var(--space-md);
padding: var(--space-sm);
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
border-left: 2px solid var(--accent-purple);
}
/* ===========================================
METRICS BOXES
=========================================== */
.metrics-realtime {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-sm);
margin: var(--space-md) 0;
}
.metric-box {
background: var(--bg-tertiary);
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
padding: var(--space-md);
text-align: center;
position: relative;
overflow: hidden;
min-height: 100px;
display: flex;
flex-direction: column;
justify-content: center;
}
.metric-box.cpu {
background: linear-gradient(135deg, rgba(88, 166, 255, 0.15) 0%, rgba(88, 166, 255, 0.05) 100%);
border-color: rgba(88, 166, 255, 0.3);
}
.metric-box.memory {
background: linear-gradient(135deg, rgba(163, 113, 247, 0.15) 0%, rgba(163, 113, 247, 0.05) 100%);
border-color: rgba(163, 113, 247, 0.3);
}
.metric-box.disk {
background: linear-gradient(135deg, rgba(63, 185, 80, 0.15) 0%, rgba(63, 185, 80, 0.05) 100%);
border-color: rgba(63, 185, 80, 0.3);
}
.metric-label {
font-size: 0.75rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: var(--space-xs);
}
.metric-value {
font-size: 1.75rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1.2;
}
.metric-box.cpu .metric-value {
color: var(--accent-blue);
}
.metric-box.memory .metric-value {
color: var(--accent-purple);
}
.metric-box.disk .metric-value {
color: var(--accent-green);
}
.metric-subvalue {
font-size: 0.75rem;
color: var(--text-secondary);
margin-top: var(--space-xs);
}
.metric-box canvas {
max-height: 35px !important;
margin-top: var(--space-sm);
}
/* Metric animation on update */
.metric-box.updating {
animation: metricPulse 0.3s ease;
}
@keyframes metricPulse {
0% { transform: scale(1); }
50% { transform: scale(1.02); }
100% { transform: scale(1); }
}
/* ===========================================
VM STATS
=========================================== */
.vm-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--space-sm);
margin: var(--space-md) 0;
}
.stat-item {
background: var(--bg-tertiary);
padding: var(--space-sm) var(--space-md);
border-radius: var(--radius-sm);
border: 1px solid var(--border-muted);
}
.stat-label {
font-size: 0.75rem;
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: 0.3px;
}
.stat-value {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
margin-top: var(--space-xs);
}
/* ===========================================
VM ACTIONS
=========================================== */
.vm-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-sm);
margin-top: var(--space-md);
padding-top: var(--space-md);
border-top: 1px solid var(--border-muted);
}
.vm-actions .btn {
flex: 1 1 auto;
min-width: 100px;
}
.vm-actions .btn-icon {
min-width: auto;
padding: var(--space-sm);
}
/* Action button states */
.vm-actions .btn.loading {
pointer-events: none;
opacity: 0.7;
}
.vm-actions .btn.loading::after {
content: '';
width: 14px;
height: 14px;
border: 2px solid transparent;
border-top-color: currentColor;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin-left: var(--space-sm);
}
/* ===========================================
HISTORICAL CHARTS
=========================================== */
.metrics-historical {
margin-top: var(--space-md);
padding-top: var(--space-md);
border-top: 1px solid var(--border-muted);
}
.chart-controls {
display: flex;
gap: var(--space-xs);
margin-bottom: var(--space-md);
}
.chart-btn {
padding: var(--space-xs) var(--space-sm);
background: var(--bg-tertiary);
border: 1px solid var(--border-default);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all var(--transition-fast);
}
.chart-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.chart-btn.active {
background: var(--accent-blue);
border-color: var(--accent-blue);
color: #ffffff;
}
.chart-container {
height: 150px;
position: relative;
}
/* ===========================================
BACKUP & SNAPSHOT LISTS
=========================================== */
.backup-list,
.snapshot-list {
margin-top: var(--space-md);
max-height: 300px;
overflow-y: auto;
}
.backup-item,
.snapshot-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-md);
background: var(--bg-tertiary);
border: 1px solid var(--border-muted);
border-radius: var(--radius-md);
margin-bottom: var(--space-sm);
transition: all var(--transition-fast);
}
.backup-item:hover,
.snapshot-item:hover {
border-color: var(--border-default);
background: var(--bg-hover);
}
.backup-info,
.snapshot-info {
flex: 1;
min-width: 0;
}
.backup-name,
.snapshot-name {
font-weight: 500;
color: var(--text-primary);
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.backup-date,
.snapshot-date {
font-size: 0.8rem;
color: var(--text-secondary);
margin-top: var(--space-xs);
}
.backup-size {
font-size: 0.85rem;
color: var(--accent-blue);
font-weight: 600;
margin-right: var(--space-md);
}
/* ===========================================
EMPTY STATE
=========================================== */
.no-vms {
text-align: center;
padding: var(--space-2xl);
color: var(--text-secondary);
}
.no-vms-icon {
font-size: 4rem;
margin-bottom: var(--space-md);
opacity: 0.5;
}
.no-vms h2 {
color: var(--text-primary);
margin-bottom: var(--space-sm);
}
.no-vms p {
color: var(--text-secondary);
}
/* ===========================================
DASHBOARD HEADER
=========================================== */
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-lg);
}
.dashboard-header h1 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}
.dashboard-header .subtitle {
color: var(--text-secondary);
font-size: 0.9rem;
margin-top: var(--space-xs);
}
/* ===========================================
OVERVIEW STATS GRID
=========================================== */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: var(--space-md);
margin-bottom: var(--space-xl);
}
.stat-card {
background: var(--bg-secondary);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
padding: var(--space-lg);
display: flex;
align-items: center;
gap: var(--space-md);
transition: all var(--transition-fast);
}
.stat-card:hover {
border-color: var(--border-muted);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.stat-card .stat-icon {
width: 48px;
height: 48px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
flex-shrink: 0;
}
.stat-card.stat-total .stat-icon {
background: rgba(88, 166, 255, 0.15);
}
.stat-card.stat-running .stat-icon {
background: rgba(63, 185, 80, 0.15);
}
.stat-card.stat-stopped .stat-icon {
background: rgba(248, 81, 73, 0.15);
}
.stat-card.stat-cpu .stat-icon {
background: rgba(163, 113, 247, 0.15);
}
.stat-card .stat-content {
flex: 1;
}
.stat-card .stat-value {
font-size: 1.75rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1;
}
.stat-card .stat-label {
font-size: 0.85rem;
color: var(--text-secondary);
margin-top: var(--space-xs);
}
/* ===========================================
VM OVERVIEW LIST
=========================================== */
.vm-overview-list {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.vm-overview-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-md);
background: var(--bg-tertiary);
border: 1px solid var(--border-muted);
border-radius: var(--radius-md);
transition: all var(--transition-fast);
}
.vm-overview-item:hover {
background: var(--bg-hover);
border-color: var(--border-default);
}
.vm-overview-info {
display: flex;
align-items: center;
gap: var(--space-md);
}
.vm-overview-name {
font-weight: 500;
color: var(--text-primary);
}
.vm-overview-id {
font-size: 0.8rem;
color: var(--text-secondary);
font-family: var(--font-mono);
}
.vm-overview-metrics {
display: flex;
gap: var(--space-lg);
align-items: center;
}
.vm-overview-metric {
text-align: right;
}
.vm-overview-metric-value {
font-weight: 600;
color: var(--text-primary);
}
.vm-overview-metric-label {
font-size: 0.75rem;
color: var(--text-secondary);
}
.vm-overview-actions {
display: flex;
gap: var(--space-sm);
}
/* ===========================================
RESPONSIVE ADJUSTMENTS
=========================================== */
@media (max-width: 768px) {
.metrics-realtime {
grid-template-columns: 1fr;
}
.vm-actions {
flex-direction: column;
}
.vm-actions .btn {
width: 100%;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.vm-overview-metrics {
display: none;
}
}
@media (max-width: 480px) {
.stats-grid {
grid-template-columns: 1fr;
}
.dashboard-header {
flex-direction: column;
align-items: flex-start;
gap: var(--space-md);
}
}

674
static/css/theme.css Normal file
View File

@@ -0,0 +1,674 @@
/* ===========================================
PROXMOX MANAGER - DARK THEME
Modern dark mode inspired by VS Code/GitHub
=========================================== */
:root {
/* Background layers */
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--bg-hover: #30363d;
--bg-active: #388bfd1a;
/* Text colors */
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--text-tertiary: #6e7681;
--text-link: #58a6ff;
/* Accent colors */
--accent-blue: #58a6ff;
--accent-green: #3fb950;
--accent-red: #f85149;
--accent-yellow: #d29922;
--accent-purple: #a371f7;
--accent-orange: #db6d28;
--accent-cyan: #39c5cf;
/* Gradients */
--gradient-primary: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
--gradient-success: linear-gradient(135deg, #3fb950 0%, #2ea043 100%);
--gradient-danger: linear-gradient(135deg, #f85149 0%, #da3633 100%);
--gradient-warning: linear-gradient(135deg, #d29922 0%, #bb8009 100%);
--gradient-purple: linear-gradient(135deg, #a371f7 0%, #8957e5 100%);
/* Borders */
--border-default: #30363d;
--border-muted: #21262d;
--border-subtle: #1b1f24;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
--shadow-glow-blue: 0 0 20px rgba(88, 166, 255, 0.3);
--shadow-glow-green: 0 0 20px rgba(63, 185, 80, 0.3);
--shadow-glow-red: 0 0 20px rgba(248, 81, 73, 0.3);
/* Status colors */
--status-running-bg: rgba(63, 185, 80, 0.15);
--status-running-border: #238636;
--status-running-text: #3fb950;
--status-stopped-bg: rgba(248, 81, 73, 0.15);
--status-stopped-border: #da3633;
--status-stopped-text: #f85149;
--status-unknown-bg: rgba(110, 118, 129, 0.15);
--status-unknown-border: #6e7681;
--status-unknown-text: #8b949e;
/* Spacing */
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
--space-2xl: 3rem;
/* Border radius */
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 9999px;
/* Transitions */
--transition-fast: 150ms ease;
--transition-normal: 250ms ease;
--transition-slow: 350ms ease;
/* Font */
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}
/* ===========================================
GLOBAL STYLES
=========================================== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth;
}
body {
font-family: var(--font-sans);
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: var(--text-link);
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover {
color: var(--accent-blue);
text-decoration: underline;
}
/* ===========================================
NAVBAR
=========================================== */
.navbar {
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-default);
padding: 0 var(--space-xl);
height: 64px;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(12px);
}
.navbar-brand {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
text-decoration: none;
display: flex;
align-items: center;
gap: var(--space-sm);
}
.navbar-brand:hover {
color: var(--accent-blue);
text-decoration: none;
}
.navbar-menu {
display: flex;
gap: var(--space-xs);
align-items: center;
}
.navbar-menu a {
color: var(--text-secondary);
text-decoration: none;
padding: var(--space-sm) var(--space-md);
border-radius: var(--radius-md);
transition: all var(--transition-fast);
font-weight: 500;
font-size: 0.9rem;
}
.navbar-menu a:hover {
background: var(--bg-hover);
color: var(--text-primary);
text-decoration: none;
}
.navbar-menu a.active {
background: var(--bg-active);
color: var(--accent-blue);
}
.navbar-user {
display: flex;
align-items: center;
gap: var(--space-md);
}
.navbar-user > span {
color: var(--text-secondary);
font-size: 0.9rem;
}
.badge-admin {
background: var(--gradient-danger);
color: white;
padding: var(--space-xs) var(--space-sm);
border-radius: var(--radius-full);
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* ===========================================
CONTAINER
=========================================== */
.container {
max-width: 1400px;
margin: 0 auto;
padding: var(--space-xl);
}
/* ===========================================
CARDS
=========================================== */
.card {
background: var(--bg-secondary);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
padding: var(--space-lg);
margin-bottom: var(--space-lg);
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
border-color: var(--border-muted);
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-sm);
}
.card-subtitle {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* ===========================================
BUTTONS
=========================================== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
border: 1px solid transparent;
border-radius: var(--radius-md);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all var(--transition-fast);
text-decoration: none;
white-space: nowrap;
}
.btn:hover {
text-decoration: none;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--accent-blue);
color: #ffffff;
border-color: var(--accent-blue);
}
.btn-primary:hover:not(:disabled) {
background: #4c9aed;
box-shadow: var(--shadow-glow-blue);
}
.btn-success {
background: var(--accent-green);
color: #ffffff;
border-color: var(--accent-green);
}
.btn-success:hover:not(:disabled) {
background: #2ea043;
box-shadow: var(--shadow-glow-green);
}
.btn-danger {
background: var(--accent-red);
color: #ffffff;
border-color: var(--accent-red);
}
.btn-danger:hover:not(:disabled) {
background: #da3633;
box-shadow: var(--shadow-glow-red);
}
.btn-warning {
background: var(--accent-yellow);
color: #000000;
border-color: var(--accent-yellow);
}
.btn-warning:hover:not(:disabled) {
background: #bb8009;
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
border-color: var(--border-default);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-hover);
border-color: var(--text-secondary);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
background: var(--bg-hover);
color: var(--text-primary);
}
.btn-sm {
padding: var(--space-xs) var(--space-sm);
font-size: 0.8rem;
}
.btn-lg {
padding: var(--space-md) var(--space-lg);
font-size: 1rem;
}
/* ===========================================
STATUS BADGES
=========================================== */
.status-badge {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-xs) var(--space-sm);
border-radius: var(--radius-full);
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.status-badge::before {
content: '';
width: 8px;
height: 8px;
border-radius: 50%;
animation: pulse 2s ease-in-out infinite;
}
.status-running {
background: var(--status-running-bg);
color: var(--status-running-text);
border: 1px solid var(--status-running-border);
}
.status-running::before {
background: var(--status-running-text);
}
.status-stopped {
background: var(--status-stopped-bg);
color: var(--status-stopped-text);
border: 1px solid var(--status-stopped-border);
}
.status-stopped::before {
background: var(--status-stopped-text);
animation: none;
}
.status-unknown {
background: var(--status-unknown-bg);
color: var(--status-unknown-text);
border: 1px solid var(--status-unknown-border);
}
.status-unknown::before {
background: var(--status-unknown-text);
animation: none;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* ===========================================
ALERTS
=========================================== */
.alert {
padding: var(--space-md);
border-radius: var(--radius-md);
margin-bottom: var(--space-md);
border-left: 4px solid;
display: flex;
align-items: flex-start;
gap: var(--space-sm);
}
.alert-success {
background: var(--status-running-bg);
border-color: var(--accent-green);
color: var(--accent-green);
}
.alert-error {
background: var(--status-stopped-bg);
border-color: var(--accent-red);
color: var(--accent-red);
}
.alert-info {
background: rgba(88, 166, 255, 0.15);
border-color: var(--accent-blue);
color: var(--accent-blue);
}
.alert-warning {
background: rgba(210, 153, 34, 0.15);
border-color: var(--accent-yellow);
color: var(--accent-yellow);
}
/* ===========================================
FORMS
=========================================== */
.form-group {
margin-bottom: var(--space-md);
}
.form-group label {
display: block;
margin-bottom: var(--space-sm);
font-weight: 500;
color: var(--text-primary);
font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: var(--space-sm) var(--space-md);
background: var(--bg-primary);
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
color: var(--text-primary);
font-size: 1rem;
font-family: inherit;
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--accent-blue);
box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}
.form-group input::placeholder {
color: var(--text-tertiary);
}
/* ===========================================
TABLES
=========================================== */
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: var(--space-md);
text-align: left;
border-bottom: 1px solid var(--border-default);
}
th {
background: var(--bg-tertiary);
font-weight: 600;
color: var(--text-secondary);
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
tr:hover td {
background: var(--bg-hover);
}
/* ===========================================
MODALS
=========================================== */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
animation: fadeIn var(--transition-fast);
}
.modal-content {
background: var(--bg-secondary);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
margin: 5% auto;
padding: var(--space-xl);
width: 90%;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
animation: slideIn var(--transition-normal);
}
.modal-content h2 {
color: var(--text-primary);
margin-bottom: var(--space-lg);
padding-bottom: var(--space-md);
border-bottom: 1px solid var(--border-default);
}
.close {
color: var(--text-secondary);
float: right;
font-size: 1.5rem;
font-weight: bold;
cursor: pointer;
transition: color var(--transition-fast);
line-height: 1;
}
.close:hover {
color: var(--text-primary);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ===========================================
LOADING STATES
=========================================== */
.loading {
text-align: center;
padding: var(--space-2xl);
color: var(--text-secondary);
}
.spinner {
width: 48px;
height: 48px;
border: 3px solid var(--border-default);
border-top-color: var(--accent-blue);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto var(--space-md);
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ===========================================
SCROLLBAR
=========================================== */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
background: var(--border-default);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-tertiary);
}
/* ===========================================
UTILITY CLASSES
=========================================== */
.text-muted {
color: var(--text-secondary);
}
.text-primary {
color: var(--text-primary);
}
.text-success {
color: var(--accent-green);
}
.text-danger {
color: var(--accent-red);
}
.text-warning {
color: var(--accent-yellow);
}
.text-center {
text-align: center;
}
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }