vectorplasticity's picture
Add dashboard CSS styling
bffe968 verified
/* Universal Model Trainer - Dashboard Styles */
:root {
--primary-color: #6366f1;
--primary-hover: #4f46e5;
--secondary-color: #8b5cf6;
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--info-color: #3b82f6;
--dark-bg: #0f172a;
--card-bg: #1e293b;
--card-border: #334155;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--border-color: #334155;
--gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient-2: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}
/* Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--dark-bg);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.6;
}
/* Navbar */
.navbar {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--card-border);
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 1000;
}
.navbar-brand {
font-weight: 700;
font-size: 1.5rem;
background: var(--gradient-2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-link {
color: var(--text-secondary) !important;
font-weight: 500;
padding: 0.5rem 1rem !important;
border-radius: 0.5rem;
transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
color: var(--text-primary) !important;
background: rgba(99, 102, 241, 0.2);
}
/* Main Content */
.main-content {
padding: 2rem;
max-width: 1600px;
margin: 0 auto;
}
/* Cards */
.card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 1rem;
overflow: hidden;
transition: all 0.3s ease;
}
.card:hover {
border-color: var(--primary-color);
box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}
.card-header {
background: rgba(99, 102, 241, 0.1);
border-bottom: 1px solid var(--card-border);
padding: 1rem 1.5rem;
font-weight: 600;
}
.card-body {
padding: 1.5rem;
}
/* Stats Cards */
.stat-card {
background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.4) 100%);
border: 1px solid var(--card-border);
border-radius: 1rem;
padding: 1.5rem;
text-align: center;
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}
.stat-card .stat-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.stat-card .stat-value {
font-size: 2.5rem;
font-weight: 700;
background: var(--gradient-2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.stat-card .stat-label {
color: var(--text-secondary);
font-size: 0.9rem;
margin-top: 0.5rem;
}
/* Buttons */
.btn-primary {
background: var(--gradient-2);
border: none;
border-radius: 0.5rem;
padding: 0.75rem 1.5rem;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
background: var(--card-bg);
border: 1px solid var(--border-color);
color: var(--text-primary);
border-radius: 0.5rem;
padding: 0.75rem 1.5rem;
font-weight: 500;
}
.btn-secondary:hover {
background: rgba(99, 102, 241, 0.2);
border-color: var(--primary-color);
color: var(--text-primary);
}
.btn-danger {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
border: none;
}
.btn-success {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
border: none;
}
.btn-warning {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
border: none;
color: #000;
}
/* Forms */
.form-control, .form-select {
background: var(--dark-bg);
border: 1px solid var(--border-color);
color: var(--text-primary);
border-radius: 0.5rem;
padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
background: var(--dark-bg);
border-color: var(--primary-color);
color: var(--text-primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-control::placeholder {
color: var(--text-muted);
}
.form-label {
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.form-text {
color: var(--text-muted);
font-size: 0.85rem;
}
/* Tables */
.table {
color: var(--text-primary);
}
.table thead th {
background: rgba(99, 102, 241, 0.1);
border-bottom: 2px solid var(--primary-color);
font-weight: 600;
padding: 1rem;
}
.table tbody td {
border-bottom: 1px solid var(--card-border);
padding: 1rem;
vertical-align: middle;
}
.table tbody tr:hover {
background: rgba(99, 102, 241, 0.05);
}
/* Badges */
.badge {
padding: 0.5rem 0.75rem;
font-weight: 500;
border-radius: 0.5rem;
}
.badge-queued {
background: rgba(100, 116, 139, 0.3);
color: #cbd5e1;
}
.badge-running {
background: rgba(59, 130, 246, 0.2);
color: #60a5fa;
}
.badge-completed {
background: rgba(16, 185, 129, 0.2);
color: #34d399;
}
.badge-failed {
background: rgba(239, 68, 68, 0.2);
color: #f87171;
}
.badge-cancelled {
background: rgba(245, 158, 11, 0.2);
color: #fbbf24;
}
.badge-paused {
background: rgba(139, 92, 246, 0.2);
color: #a78bfa;
}
/* Progress Bar */
.progress {
background: var(--dark-bg);
border-radius: 1rem;
height: 0.75rem;
overflow: hidden;
}
.progress-bar {
background: var(--gradient-2);
transition: width 0.5s ease;
}
/* Modal */
.modal-content {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 1rem;
}
.modal-header {
border-bottom: 1px solid var(--card-border);
padding: 1.5rem;
}
.modal-title {
font-weight: 700;
}
.modal-body {
padding: 1.5rem;
}
.modal-footer {
border-top: 1px solid var(--card-border);
padding: 1rem 1.5rem;
}
.btn-close {
filter: invert(1);
}
/* Alerts */
.alert {
border-radius: 0.75rem;
border: 1px solid;
}
.alert-info {
background: rgba(59, 130, 246, 0.1);
border-color: rgba(59, 130, 246, 0.3);
color: #60a5fa;
}
.alert-success {
background: rgba(16, 185, 129, 0.1);
border-color: rgba(16, 185, 129, 0.3);
color: #34d399;
}
.alert-warning {
background: rgba(245, 158, 11, 0.1);
border-color: rgba(245, 158, 11, 0.3);
color: #fbbf24;
}
.alert-danger {
background: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.3);
color: #f87171;
}
/* Log Terminal */
.log-terminal {
background: #000;
border-radius: 0.5rem;
padding: 1rem;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 0.85rem;
max-height: 400px;
overflow-y: auto;
}
.log-terminal .log-entry {
padding: 0.25rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.log-terminal .log-info { color: #60a5fa; }
.log-terminal .log-warning { color: #fbbf24; }
.log-terminal .log-error { color: #f87171; }
.log-terminal .log-success { color: #34d399; }
/* Tabs */
.nav-tabs {
border-bottom: 1px solid var(--card-border);
}
.nav-tabs .nav-link {
border: none;
border-bottom: 2px solid transparent;
color: var(--text-secondary);
}
.nav-tabs .nav-link.active {
background: transparent;
border-bottom: 2px solid var(--primary-color);
color: var(--text-primary);
}
/* Tooltips */
.tooltip-inner {
background: var(--card-bg);
border: 1px solid var(--card-border);
color: var(--text-primary);
}
/* Dropdown */
.dropdown-menu {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 0.5rem;
padding: 0.5rem;
}
.dropdown-item {
color: var(--text-primary);
border-radius: 0.25rem;
padding: 0.5rem 1rem;
}
.dropdown-item:hover {
background: rgba(99, 102, 241, 0.2);
color: var(--text-primary);
}
/* Spinner */
.spinner-grow {
width: 1rem;
height: 1rem;
}
/* Animations */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.animate-spin {
animation: spin 1s linear infinite;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
background: var(--card-border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* Responsive */
@media (max-width: 768px) {
.main-content {
padding: 1rem;
}
.stat-card {
padding: 1rem;
}
.stat-card .stat-value {
font-size: 2rem;
}
}
/* Code blocks */
pre {
background: var(--dark-bg);
border: 1px solid var(--card-border);
border-radius: 0.5rem;
padding: 1rem;
overflow-x: auto;
}
code {
color: #a78bfa;
font-family: 'Monaco', 'Menlo', monospace;
}
/* Search results */
.search-result {
padding: 1rem;
border: 1px solid var(--card-border);
border-radius: 0.5rem;
margin-bottom: 0.5rem;
cursor: pointer;
transition: all 0.2s;
}
.search-result:hover {
background: rgba(99, 102, 241, 0.1);
border-color: var(--primary-color);
}
.search-result .result-title {
font-weight: 600;
color: var(--text-primary);
}
.search-result .result-meta {
font-size: 0.85rem;
color: var(--text-muted);
}
/* Loading overlay */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.loading-content {
text-align: center;
}
.loading-spinner {
width: 50px;
height: 50px;
border: 3px solid var(--card-border);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 1rem;
}
/* Feature badges */
.feature-badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.75rem;
background: rgba(99, 102, 241, 0.1);
border-radius: 2rem;
font-size: 0.75rem;
color: var(--primary-color);
margin: 0.25rem;
}
.feature-badge i {
margin-right: 0.25rem;
}