Windows system utility with driver scanning, Windows Update integration, and system info collection. Beautiful dark-themed UI via embedded WebView2. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
425 lines
11 KiB
CSS
425 lines
11 KiB
CSS
:root {
|
|
--bg-primary: #0f0f1a;
|
|
--bg-secondary: #1a1a2e;
|
|
--bg-card: #16213e;
|
|
--bg-hover: #1f2b4d;
|
|
--border: #2a2a4a;
|
|
--text-primary: #e8e8f0;
|
|
--text-secondary: #9ca3af;
|
|
--text-muted: #6b7280;
|
|
--accent-primary: #6366f1;
|
|
--accent-secondary: #8b5cf6;
|
|
--accent-glow: rgba(99, 102, 241, 0.15);
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--danger: #ef4444;
|
|
--info: #3b82f6;
|
|
--radius: 12px;
|
|
--radius-sm: 8px;
|
|
--sidebar-width: 240px;
|
|
--transition: 0.2s ease;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.app { display: flex; height: 100vh; }
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: var(--sidebar-width);
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); }
|
|
|
|
.logo { display: flex; align-items: center; gap: 10px; }
|
|
|
|
.logo-text {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.nav-items { list-style: none; padding: 12px; flex: 1; }
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
transition: all var(--transition);
|
|
margin-bottom: 4px;
|
|
font-size: 14px;
|
|
user-select: none;
|
|
}
|
|
|
|
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
|
|
.nav-item.active {
|
|
background: var(--accent-glow);
|
|
color: var(--accent-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-item.active svg { stroke: var(--accent-primary); }
|
|
|
|
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
|
|
|
|
.version-badge {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
background: var(--bg-primary);
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Content */
|
|
.content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 32px;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.content::-webkit-scrollbar { width: 6px; }
|
|
.content::-webkit-scrollbar-track { background: transparent; }
|
|
.content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
|
|
|
|
.page { display: none; animation: fadeIn 0.3s ease; }
|
|
.page.active { display: block; }
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.page-header h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
|
|
|
|
.subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
|
|
|
|
/* Stats Grid */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.stat-card:hover {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 20px var(--accent-glow);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.drivers-icon { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
|
|
.outdated-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
|
|
.updates-icon { background: rgba(59, 130, 246, 0.15); color: var(--info); }
|
|
.ram-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
|
|
|
|
.stat-value { font-size: 28px; font-weight: 700; display: block; line-height: 1.1; }
|
|
.stat-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
|
|
|
|
/* Panels */
|
|
.dashboard-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
|
|
|
.panel {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
|
|
|
|
.panel-header h3 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Quick Actions */
|
|
.quick-actions { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
|
|
|
|
.action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.action-btn.primary {
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.primary:hover {
|
|
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.action-btn.secondary {
|
|
background: rgba(59, 130, 246, 0.15);
|
|
color: var(--info);
|
|
border: 1px solid rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.action-btn.secondary:hover { background: rgba(59, 130, 246, 0.25); }
|
|
|
|
.action-btn.accent {
|
|
background: rgba(16, 185, 129, 0.15);
|
|
color: var(--success);
|
|
border: 1px solid rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.action-btn.accent:hover { background: rgba(16, 185, 129, 0.25); }
|
|
|
|
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
|
|
|
|
/* Resource Bars */
|
|
.resource-bars { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
|
|
|
|
.resource-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
|
|
.resource-label span:first-child { font-weight: 600; }
|
|
.resource-label span:last-child { color: var(--text-secondary); }
|
|
|
|
.progress-bar { height: 8px; background: var(--bg-primary); border-radius: 4px; overflow: hidden; }
|
|
|
|
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
|
|
.ram-fill { background: linear-gradient(90deg, var(--success), #34d399); }
|
|
.disk-fill { background: linear-gradient(90deg, var(--info), #60a5fa); }
|
|
|
|
/* Driver List */
|
|
.driver-summary {
|
|
display: flex;
|
|
gap: 24px;
|
|
margin-bottom: 16px;
|
|
padding: 14px 20px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.summary-item { font-size: 13px; color: var(--text-secondary); }
|
|
.summary-item strong { color: var(--text-primary); font-size: 16px; margin-right: 4px; }
|
|
.summary-item.warning strong { color: var(--warning); }
|
|
.summary-item.error strong { color: var(--danger); }
|
|
|
|
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; }
|
|
|
|
.filter-btn {
|
|
padding: 6px 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 20px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.filter-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
|
|
|
|
.filter-btn.active {
|
|
background: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.driver-list, .update-list { display: flex; flex-direction: column; gap: 8px; }
|
|
|
|
.driver-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 16px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.driver-card:hover { border-color: var(--accent-primary); background: var(--bg-hover); }
|
|
.driver-card.outdated { border-left: 3px solid var(--warning); }
|
|
.driver-card.error { border-left: 3px solid var(--danger); }
|
|
|
|
.driver-class-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(99, 102, 241, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent-primary);
|
|
font-size: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.driver-info { flex: 1; min-width: 0; }
|
|
|
|
.driver-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.driver-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
|
|
.driver-badges { display: flex; gap: 6px; flex-shrink: 0; }
|
|
|
|
.badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
|
|
.badge-signed { background: rgba(16, 185, 129, 0.15); color: var(--success); }
|
|
.badge-unsigned { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
|
|
.badge-outdated { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
|
|
.badge-ok { background: rgba(16, 185, 129, 0.15); color: var(--success); }
|
|
|
|
/* Update Cards */
|
|
.update-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 16px 20px;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.update-card:hover { border-color: var(--accent-primary); }
|
|
.update-card.installed { opacity: 0.6; }
|
|
.update-card.pending { border-left: 3px solid var(--info); }
|
|
|
|
.update-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
|
|
.update-meta { font-size: 12px; color: var(--text-secondary); display: flex; gap: 16px; flex-wrap: wrap; }
|
|
|
|
/* System Info Grid */
|
|
.sysinfo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
|
|
|
|
.info-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
}
|
|
|
|
.info-card h4 {
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--accent-primary);
|
|
margin-bottom: 16px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
font-size: 13px;
|
|
border-bottom: 1px solid rgba(42, 42, 74, 0.5);
|
|
}
|
|
|
|
.info-row:last-child { border-bottom: none; }
|
|
.info-key { color: var(--text-secondary); }
|
|
|
|
.info-val {
|
|
font-weight: 600;
|
|
text-align: right;
|
|
max-width: 60%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
|
|
.empty-state p { margin-top: 16px; font-size: 14px; }
|
|
|
|
/* Loading Overlay */
|
|
.loading-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 15, 26, 0.85);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--accent-primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.loading-overlay p { margin-top: 16px; color: var(--text-secondary); font-size: 14px; }
|
|
|
|
@media (max-width: 900px) {
|
|
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
|
.dashboard-panels { grid-template-columns: 1fr; }
|
|
.sysinfo-grid { grid-template-columns: 1fr; }
|
|
}
|