280 lines
9.2 KiB
CSS
280 lines
9.2 KiB
CSS
/* Base reset, typography, and utility classes */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
|
|
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html, body {
|
|
height: 100%;
|
|
font-family: var(--font);
|
|
font-size: var(--font-size-base);
|
|
color: var(--text);
|
|
background: var(--page-bg);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Scrollbar ── */
|
|
::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
|
|
|
|
/* ── Buttons ── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: var(--font-size-base);
|
|
font-family: var(--font);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
border: none;
|
|
transition: all 0.15s;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
line-height: 1;
|
|
}
|
|
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
.btn-primary { background: var(--cobalt); color: #fff; }
|
|
.btn-primary:not(:disabled):hover { background: var(--cobalt-hover); }
|
|
.btn-secondary { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
|
|
.btn-secondary:hover { background: var(--ecru); }
|
|
.btn-ghost { background: transparent; color: var(--cobalt); padding: 6px 10px; }
|
|
.btn-ghost:hover { background: var(--cobalt-light); }
|
|
.btn-danger { background: var(--poppy); color: #fff; }
|
|
.btn-danger:hover { background: #e04040; }
|
|
.btn-sm { padding: 5px 10px; font-size: var(--font-size-sm); }
|
|
.btn-xs { padding: 3px 8px; font-size: var(--font-size-xs); }
|
|
.btn-icon { padding: 6px; border-radius: var(--radius-sm); }
|
|
|
|
/* ── Badges ── */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
.badge-green { background: var(--success-bg); color: var(--success); }
|
|
.badge-amber { background: var(--warning-bg); color: var(--warning); }
|
|
.badge-red { background: var(--error-bg); color: var(--error); }
|
|
.badge-blue { background: var(--cobalt-light); color: var(--cobalt); }
|
|
.badge-gray { background: #EDF0F4; color: var(--slate); }
|
|
|
|
/* ── Cards ── */
|
|
.card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border);
|
|
box-shadow: var(--shadow-sm);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
.card-header {
|
|
padding: 14px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.card-title { font-size: var(--font-size-md); font-weight: 700; }
|
|
.card-body { padding: var(--space-md) 20px; }
|
|
|
|
/* ── Tables ── */
|
|
.table-wrap { overflow-x: auto; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th {
|
|
text-align: left;
|
|
padding: 10px 14px;
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
background: #FAFBFC;
|
|
white-space: nowrap;
|
|
}
|
|
td {
|
|
padding: 11px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: var(--font-size-base);
|
|
vertical-align: middle;
|
|
}
|
|
tr:last-child td { border-bottom: none; }
|
|
tr:hover td { background: #FAFBFC; }
|
|
|
|
/* ── Page layout ── */
|
|
.page-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
.page-title { font-size: var(--font-size-xl); font-weight: 700; color: var(--text); }
|
|
.page-subtitle { font-size: var(--font-size-base); color: var(--text-muted); margin-top: 2px; }
|
|
.page-actions { display: flex; gap: var(--space-sm); align-items: center; }
|
|
|
|
/* ── Callouts ── */
|
|
.callout {
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: var(--font-size-base);
|
|
margin-bottom: var(--space-md);
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
.callout-icon { font-size: 16px; flex-shrink: 0; }
|
|
.callout.info { background: var(--cobalt-light); border: 1px solid #B3D4FF; color: #0052A3; }
|
|
.callout.warn { background: var(--warning-bg); border: 1px solid #FFD280; color: #7A3E00; }
|
|
.callout.success { background: var(--success-bg); border: 1px solid #B3E8D5; color: #006644; }
|
|
.callout.error { background: var(--error-bg); border: 1px solid #FFB3B3; color: #8B0000; }
|
|
|
|
/* ── Tabs ── */
|
|
.tabs {
|
|
display: flex;
|
|
border-bottom: 2px solid var(--border);
|
|
margin-bottom: 20px;
|
|
gap: 0;
|
|
}
|
|
.tab {
|
|
padding: 10px 18px;
|
|
font-size: var(--font-size-base);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -2px;
|
|
transition: all 0.1s;
|
|
user-select: none;
|
|
}
|
|
.tab:hover { color: var(--text); }
|
|
.tab.active { color: var(--cobalt); border-bottom-color: var(--cobalt); }
|
|
|
|
/* ── Divider ── */
|
|
.divider { height: 1px; background: var(--border); margin: var(--space-md) 0; }
|
|
|
|
/* ── Misc utilities ── */
|
|
.mono { font-family: var(--font-mono); font-size: var(--font-size-sm); background: var(--ecru); padding: 1px 6px; border-radius: 3px; }
|
|
.tag { display: inline-block; padding: 1px 7px; border-radius: var(--radius-sm); font-size: var(--font-size-xs); font-weight: 600; background: var(--ecru); color: var(--text-muted); margin-right: 4px; }
|
|
.cb { width: 15px; height: 15px; accent-color: var(--cobalt); cursor: pointer; flex-shrink: 0; }
|
|
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
|
|
|
|
/* ── Empty state ── */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
color: var(--text-muted);
|
|
}
|
|
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
|
|
.empty-state-title { font-size: var(--font-size-lg); font-weight: 700; margin-bottom: 6px; color: var(--text); }
|
|
.empty-state-sub { font-size: var(--font-size-base); }
|
|
|
|
/* ── Spinner ── */
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid var(--border);
|
|
border-top-color: var(--cobalt);
|
|
border-radius: 50%;
|
|
animation: spin 0.7s linear infinite;
|
|
flex-shrink: 0;
|
|
}
|
|
.spinner-sm { width: 12px; height: 12px; border-width: 1.5px; }
|
|
|
|
/* ── Progress bar ── */
|
|
.progress-wrap { margin-bottom: var(--space-lg); }
|
|
.progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: var(--font-size-sm); color: var(--text-muted); }
|
|
.progress-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
|
|
.progress-fill { height: 100%; background: var(--cobalt); border-radius: 4px; transition: width 0.4s ease; }
|
|
.progress-fill.green { background: var(--success); }
|
|
.progress-fill.amber { background: var(--warning-amber); }
|
|
|
|
/* ── Toggle switch ── */
|
|
.toggle {
|
|
width: 36px;
|
|
height: 20px;
|
|
background: var(--border);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
transition: background 0.2s;
|
|
border: none;
|
|
}
|
|
.toggle.on { background: var(--cobalt); }
|
|
.toggle::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: #fff;
|
|
border-radius: 50%;
|
|
top: 3px;
|
|
left: 3px;
|
|
transition: left 0.2s;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
|
}
|
|
.toggle.on::after { left: 19px; }
|
|
|
|
/* ── Stat cards grid ── */
|
|
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
|
|
.stat-card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius-md);
|
|
padding: 16px 18px;
|
|
border: 1px solid var(--border);
|
|
box-shadow: var(--shadow-sm);
|
|
cursor: pointer;
|
|
transition: box-shadow 0.15s;
|
|
}
|
|
.stat-card:hover { box-shadow: var(--shadow-md); }
|
|
.stat-label { font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
|
|
.stat-value { font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
|
|
.stat-sub { font-size: var(--font-size-xs); color: var(--text-muted); }
|
|
.stat-card.blue .stat-value { color: var(--cobalt); }
|
|
.stat-card.green .stat-value { color: var(--success); }
|
|
.stat-card.amber .stat-value { color: var(--warning); }
|
|
.stat-card.red .stat-value { color: var(--error); }
|
|
.stat-card.gray .stat-value { color: var(--slate); }
|
|
|
|
/* ── Two/three-col layouts ── */
|
|
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-md); align-items: start; }
|
|
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: var(--space-md); }
|
|
|
|
/* ── Avatar ── */
|
|
.avatar {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
background: var(--cobalt);
|
|
color: #fff;
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ── Responsive ── */
|
|
@media (max-width: 900px) {
|
|
.stat-grid { grid-template-columns: repeat(3, 1fr); }
|
|
.two-col { grid-template-columns: 1fr; }
|
|
}
|
|
@media (max-width: 600px) {
|
|
.stat-grid { grid-template-columns: repeat(2, 1fr); }
|
|
}
|