329 lines
7.8 KiB
CSS
329 lines
7.8 KiB
CSS
:root {
|
|
--bg: #0f1117;
|
|
--bg2: #1a1d2e;
|
|
--bg3: #232738;
|
|
--text: #e1e4ed;
|
|
--text2: #8b8fa3;
|
|
--accent: #6c5ce7;
|
|
--accent2: #a29bfe;
|
|
--green: #00b894;
|
|
--red: #ff6b6b;
|
|
--yellow: #fdcb6e;
|
|
--blue: #74b9ff;
|
|
--border: #2d3142;
|
|
--radius: 8px;
|
|
--shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--bg: #f8f9fa;
|
|
--bg2: #ffffff;
|
|
--bg3: #e9ecef;
|
|
--text: #212529;
|
|
--text2: #6c757d;
|
|
--border: #dee2e6;
|
|
--shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
display: flex;
|
|
min-height: 100vh;
|
|
transition: background 0.3s, color 0.3s;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 240px;
|
|
min-width: 240px;
|
|
background: var(--bg2);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
position: sticky;
|
|
top: 0;
|
|
transition: width 0.3s, min-width 0.3s;
|
|
}
|
|
|
|
.sidebar.closed {
|
|
width: 60px;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.sidebar.closed .logo-text,
|
|
.sidebar.closed .nav-item span:not(.nav-icon),
|
|
.sidebar.closed .sidebar-footer span {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.logo { display: flex; align-items: center; gap: 8px; }
|
|
.logo-icon { font-size: 24px; color: var(--accent); }
|
|
.logo-text { font-weight: 700; font-size: 16px; }
|
|
|
|
.sidebar-toggle {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text2);
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 8px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
color: var(--text2);
|
|
text-decoration: none;
|
|
border-radius: var(--radius);
|
|
margin-bottom: 2px;
|
|
font-size: 14px;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav-item:hover { background: var(--bg3); color: var(--text); }
|
|
.nav-item.active { background: var(--accent); color: white; }
|
|
.nav-icon { font-size: 16px; width: 20px; text-align: center; }
|
|
|
|
.sidebar-footer {
|
|
padding: 12px;
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.agent-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
|
|
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
|
|
.status-dot.online { background: var(--green); }
|
|
.status-dot.offline { background: var(--red); }
|
|
.status-dot.warning { background: var(--yellow); }
|
|
|
|
.theme-toggle button {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 24px;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
.page-content { animation: fadeIn 0.3s ease; }
|
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.page-title { font-size: 24px; font-weight: 700; }
|
|
.page-subtitle { font-size: 14px; color: var(--text2); margin-top: 4px; }
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.card-title { font-size: 16px; font-weight: 600; }
|
|
.card-value { font-size: 32px; font-weight: 700; color: var(--accent); }
|
|
.card-label { font-size: 12px; color: var(--text2); margin-top: 2px; }
|
|
|
|
/* Grid */
|
|
.grid { display: grid; gap: 16px; }
|
|
.grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
.grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
.grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg2);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn:hover { background: var(--bg3); }
|
|
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
|
|
.btn-primary:hover { background: var(--accent2); }
|
|
.btn-danger { background: var(--red); color: white; border-color: var(--red); }
|
|
.btn-sm { padding: 4px 10px; font-size: 12px; }
|
|
|
|
/* Tables */
|
|
.table-wrapper { overflow-x: auto; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
|
|
th { color: var(--text2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
tr:hover { background: var(--bg3); }
|
|
|
|
/* Forms */
|
|
input, textarea, select {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
input:focus, textarea:focus, select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
textarea { min-height: 120px; resize: vertical; font-family: 'SF Mono', 'Fira Code', monospace; }
|
|
|
|
.form-group { margin-bottom: 16px; }
|
|
.form-label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; font-weight: 600; }
|
|
|
|
/* Badges */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-success { background: rgba(0,184,148,0.15); color: var(--green); }
|
|
.badge-warning { background: rgba(253,203,110,0.15); color: var(--yellow); }
|
|
.badge-danger { background: rgba(255,107,107,0.15); color: var(--red); }
|
|
.badge-info { background: rgba(116,185,255,0.15); color: var(--blue); }
|
|
|
|
/* Charts */
|
|
.chart-container {
|
|
position: relative;
|
|
height: 250px;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
/* Loading */
|
|
.loading { text-align: center; padding: 60px; color: var(--text2); }
|
|
|
|
/* Toast */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 16px;
|
|
right: 16px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toast {
|
|
background: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 12px 16px;
|
|
box-shadow: var(--shadow);
|
|
font-size: 13px;
|
|
animation: slideIn 0.3s ease;
|
|
max-width: 360px;
|
|
}
|
|
|
|
.toast.success { border-left: 3px solid var(--green); }
|
|
.toast.error { border-left: 3px solid var(--red); }
|
|
.toast.info { border-left: 3px solid var(--blue); }
|
|
|
|
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
|
|
|
|
/* Skill Cards */
|
|
.skill-card {
|
|
background: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.skill-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
|
|
.skill-card .skill-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
|
|
.skill-card .skill-desc { font-size: 12px; color: var(--text2); }
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.sidebar { width: 60px; min-width: 60px; }
|
|
.sidebar .logo-text,
|
|
.sidebar .nav-item span:not(.nav-icon),
|
|
.sidebar .sidebar-footer span { display: none; }
|
|
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
|
|
.main-content { padding: 16px; }
|
|
}
|
|
|
|
/* Code */
|
|
pre, code {
|
|
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
|
|
font-size: 13px;
|
|
}
|
|
|
|
pre {
|
|
background: var(--bg);
|
|
padding: 12px;
|
|
border-radius: var(--radius);
|
|
overflow-x: auto;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
code { background: var(--bg3); padding: 2px 4px; border-radius: 3px; }
|
|
|
|
/* Empty state */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text2);
|
|
}
|
|
|
|
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }
|