Files
skywatch/client/src/App.css
T
nmemmertandClaude Sonnet 4.6 b83a19e9cf Add 10 UX/feature improvements across dashboard, status page, and API
- Incident acknowledge: Ack button in dashboard rail and ResourceDetail incidents table
- Status page 90-day uptime history bars (teal ≥99%, amber ≥95%, red <95%, grey = no data)
- Theme setting applied: data-theme attribute wired to saved setting with CSS variables + light mode overrides
- Sparkline replaced with colored status bars (teal=up, red=down, grey=unknown) per check tick
- ResourceDetail chart time-range selector: 1h / 6h / 24h / 7d toggle fetches from checks endpoint
- Bulk actions: checkbox per row, select-all header, bulk delete and maintenance toggle bar
- CSV export adds 6 new fields (http_method, http_body, heartbeat_timeout, is_public, consecutive_failures_threshold, response_time_threshold)
- CSV import handles those 6 new fields on INSERT
- Check detail expansion: click expandable rows in Recent Checks to show full details JSON
- Browser push notifications: request permission opt-in, new Notification() on WS message when tab unfocused

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-31 11:01:24 -04:00

1619 lines
25 KiB
CSS

/* ── Theme variables ── */
:root {
--app-bg: #020617;
--surface: #0f172a;
--surface-2: #1e293b;
--border: #334155;
--text: #e2e8f0;
--text-muted: #94a3b8;
--text-dim: #64748b;
--accent: #14b8a6;
}
[data-theme="light"] {
--app-bg: #f8fafc;
--surface: #ffffff;
--surface-2: #f1f5f9;
--border: #e2e8f0;
--text: #1e293b;
--text-muted: #475569;
--text-dim: #94a3b8;
--accent: #0d9488;
}
[data-theme="light"] .App {
background: var(--app-bg);
}
[data-theme="light"] .navbar {
background: rgba(255, 255, 255, 0.92);
border-bottom: 1px solid var(--border);
color: var(--text);
}
[data-theme="light"] .nav-link {
color: #475569;
}
[data-theme="light"] .nav-link:hover {
background: #f1f5f9;
color: #1e293b;
box-shadow: inset 0 0 0 1px #e2e8f0;
}
[data-theme="light"] .container,
[data-theme="light"] .detail-section,
[data-theme="light"] .resource-row {
background: var(--surface);
color: var(--text);
}
.App {
min-height: 100vh;
background:
radial-gradient(circle at 15% 0%, rgba(30, 64, 175, 0.2) 0%, transparent 42%),
radial-gradient(circle at 95% 10%, rgba(15, 118, 110, 0.14) 0%, transparent 36%),
#020617;
}
.navbar {
background: rgba(15, 23, 42, 0.82);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
padding: 0.85rem 2rem;
color: #e2e8f0;
border-bottom: 1px solid #334155;
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
position: sticky;
top: 0;
z-index: 30;
}
.navbar h1 {
margin: 0;
font-size: 1.5rem;
letter-spacing: -0.02em;
}
.navbar-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
width: 100%;
}
.navbar-left {
display: flex;
align-items: center;
gap: 1.5rem;
min-width: 0;
}
.navbar-links {
display: flex;
gap: 0.5rem;
align-items: center;
flex-wrap: wrap;
}
.nav-link {
color: #cbd5e1;
text-decoration: none;
font-weight: 600;
font-size: 0.92rem;
padding: 0.4rem 0.7rem;
border-radius: 7px;
transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-link:hover {
background: #111827;
color: #f8fafc;
box-shadow: inset 0 0 0 1px #334155;
}
.settings-link {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.setup-badge {
background: #facc15;
color: #111827;
padding: 0.15rem 0.5rem;
border-radius: 999px;
font-size: 0.68rem;
font-weight: 700;
}
.notifications-pill {
display: flex;
align-items: center;
gap: 0.45rem;
font-size: 0.82rem;
color: #e2e8f0;
background: #111827;
border: 1px solid #334155;
border-radius: 999px;
padding: 0.3rem 0.7rem;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 2rem;
}
.dashboard-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-bottom: 2rem;
}
.dashboard-title {
margin: 0;
font-size: 1.85rem;
letter-spacing: -0.02em;
color: #f8fafc;
}
.dashboard-subtitle {
margin: 0.2rem 0 0;
color: #94a3b8;
font-size: 0.9rem;
}
.dashboard-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
align-items: center;
}
.quick-filter-row {
display: flex;
gap: 0.45rem;
flex-wrap: wrap;
margin: 0.2rem 0 0.8rem;
}
.quick-chip {
background: #0f172a;
border: 1px solid #334155;
color: #cbd5e1;
border-radius: 999px;
padding: 0.28rem 0.7rem;
font-size: 0.74rem;
font-weight: 700;
letter-spacing: 0.02em;
cursor: pointer;
}
.quick-chip:hover {
background: #111f34;
}
.quick-chip.active {
background: #14b8a6;
border-color: #14b8a6;
color: #052e2b;
}
.tag-filter-input {
padding: 0.5rem 0.75rem;
border-radius: 10px;
border: 1px solid #334155;
min-width: 180px;
background: #111827;
color: #e2e8f0;
}
.actions-menu-wrapper {
position: relative;
}
.actions-menu {
position: absolute;
right: 0;
top: 110%;
background: #ffffff;
border: 1px solid #dbe2ea;
border-radius: 8px;
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
min-width: 220px;
padding: 0.35rem 0;
z-index: 20;
}
.actions-menu-divider {
margin: 0.25rem 0;
border: 0;
border-top: 1px solid #eef2f6;
}
.hidden-file-input {
display: none;
}
.toast-stack {
position: fixed;
top: 20px;
right: 20px;
z-index: 9999;
}
.toast-item {
margin-bottom: 10px;
padding: 12px 16px;
border-radius: 8px;
min-width: 280px;
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
border: 1px solid transparent;
}
.toast-error {
background: #fee2e2;
color: #7f1d1d;
border-color: #fecaca;
}
.toast-success {
background: #dcfce7;
color: #14532d;
border-color: #bbf7d0;
}
.toast-info {
background: #dbeafe;
color: #1e3a8a;
border-color: #bfdbfe;
}
.cc-metrics-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 0.65rem;
margin-bottom: 1rem;
}
.cc-metric-card {
background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
border: 1px solid #334155;
border-radius: 10px;
padding: 0.75rem;
color: #e2e8f0;
}
.cc-metric-label {
margin: 0;
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #94a3b8;
}
.cc-metric-value {
margin: 0.35rem 0 0;
font-size: 1.2rem;
font-weight: 700;
}
.metric-ok {
border-color: #14532d;
}
.metric-down {
border-color: #7f1d1d;
}
.metric-maint {
border-color: #78350f;
}
.cc-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 300px;
gap: 0.8rem;
align-items: start;
}
.cc-main {
min-width: 0;
}
.cc-rail {
display: flex;
flex-direction: column;
gap: 0.75rem;
position: sticky;
top: 82px;
}
.cc-panel {
background: rgba(15, 23, 42, 0.94);
color: #e2e8f0;
border: 1px solid #334155;
border-radius: 12px;
padding: 0.75rem;
}
.cc-panel h3 {
margin: 0 0 0.65rem;
font-size: 0.9rem;
letter-spacing: 0.03em;
}
.cc-empty {
margin: 0;
color: #94a3b8;
font-size: 0.85rem;
}
.cc-incident-list,
.cc-group-list {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.cc-incident-item {
width: 100%;
background: #0f172a;
border: 1px solid #334155;
color: #e2e8f0;
border-radius: 8px;
padding: 0.2rem 0.35rem 0.2rem 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.cc-incident-item:hover {
background: #111f34;
border-color: #475569;
}
.cc-incident-nav {
flex: 1;
background: none;
border: none;
color: #e2e8f0;
padding: 0.25rem 0.55rem;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
text-align: left;
}
.cc-ack-btn {
flex-shrink: 0;
color: #4ade80;
font-size: 0.95rem;
padding: 0.2rem 0.4rem;
margin-right: 0.25rem;
}
.cc-group-item {
width: 100%;
background: #0f172a;
border: 1px solid #334155;
color: #e2e8f0;
border-radius: 8px;
padding: 0.45rem 0.55rem;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
.cc-group-item:hover {
background: #111f34;
border-color: #475569;
}
.cc-incident-name {
font-size: 0.85rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 0.5rem;
}
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.resource-list {
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.resource-list-shell {
background: rgba(15, 23, 42, 0.9);
border: 1px solid #334155;
border-radius: 12px;
padding: 0.65rem;
max-height: calc(100vh - 250px);
overflow: auto;
}
.resource-list-header {
display: grid;
grid-template-columns: 28px minmax(260px, 2fr) minmax(220px, 1.25fr) minmax(170px, 0.8fr);
gap: 1rem;
padding: 0.35rem 0.6rem 0.6rem;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #94a3b8;
border-bottom: 1px solid #334155;
margin-bottom: 0.45rem;
position: sticky;
top: 0;
z-index: 5;
background: rgba(15, 23, 42, 0.98);
}
.resource-list-count {
font-size: 0.75rem;
color: #94a3b8;
margin: 0 0.6rem 0.55rem;
position: sticky;
top: 31px;
z-index: 4;
background: rgba(15, 23, 42, 0.95);
padding-bottom: 0.25rem;
}
.resource-row {
display: grid;
grid-template-columns: 28px minmax(260px, 2fr) minmax(220px, 1.25fr) minmax(170px, 0.8fr);
align-items: center;
gap: 1rem;
padding: 0.65rem 0.8rem;
background: rgba(15, 23, 42, 0.96);
border: 1px solid #334155;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(2, 6, 23, 0.55);
cursor: pointer;
transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.resource-row:hover {
transform: translateY(-1px);
border-color: #60a5fa;
box-shadow: 0 12px 22px rgba(2, 6, 23, 0.65);
}
.row-main {
min-width: 0;
}
.row-title-line {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 0.15rem;
}
.row-name {
margin: 0;
font-size: 0.98rem;
color: #f8fafc;
}
.resource-group-pill {
padding: 0.15rem 0.5rem;
border-radius: 999px;
background: #1e293b;
color: #cbd5e1;
font-size: 0.72rem;
font-weight: 700;
}
.incident-inline {
font-size: 0.72rem;
color: #991b1b;
background: #fee2e2;
border: 1px solid #fecaca;
padding: 0.15rem 0.45rem;
border-radius: 999px;
}
.maintenance-inline {
font-size: 0.72rem;
color: #92400e;
background: #fef3c7;
border: 1px solid #fde68a;
padding: 0.15rem 0.45rem;
border-radius: 999px;
}
.row-url,
.row-type {
margin: 0;
color: #94a3b8;
}
.row-url {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.78rem;
}
.row-type {
font-size: 0.72rem;
}
.row-metrics {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.8rem;
align-items: center;
}
.row-metrics .stat-label {
font-size: 0.64rem;
color: #94a3b8;
}
.row-metrics .stat-value {
color: #e2e8f0;
font-weight: 700;
}
.row-sparkline {
min-width: 95px;
}
.row-side {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.2rem;
}
.row-actions {
display: flex;
gap: 0.35rem;
}
.resource-card {
background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
border-radius: 14px;
padding: 1rem 1.1rem;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
transition: transform 0.2s, box-shadow 0.2s;
cursor: pointer;
border: 1px solid #e5e7eb;
}
.resource-card.compact {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.resource-card:hover {
transform: translateY(-2px);
box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}
.resource-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.5rem;
}
.resource-name {
font-size: 1.05rem;
font-weight: 700;
margin: 0 0 0.2rem 0;
}
.trend-chip {
display: inline-block;
margin-left: 0.3rem;
font-size: 0.72rem;
font-weight: 800;
}
.trend-better {
color: #34d399;
}
.trend-worse {
color: #f87171;
}
.trend-flat {
color: #94a3b8;
}
.resource-url {
color: #64748b;
font-size: 0.8rem;
word-break: break-all;
}
.load-more-btn {
width: 100%;
border: 1px dashed #94a3b8;
background: #f8fafc;
color: #334155;
border-radius: 10px;
padding: 0.65rem;
font-weight: 700;
cursor: pointer;
}
.load-more-btn:hover {
background: #f1f5f9;
}
.resource-type {
margin: 0.15rem 0 0;
color: #475569;
font-size: 0.78rem;
}
.status-badge {
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
}
.status-up {
background: #dcfce7;
color: #166534;
}
.status-down {
background: #fee2e2;
color: #991b1b;
}
.status-unknown {
background: #e2e8f0;
color: #334155;
}
.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-top: 1rem;
}
.stat {
text-align: center;
}
.stat-value {
font-size: 1.2rem;
font-weight: 700;
color: #e2e8f0;
margin: 0;
}
.stat-value.small {
font-size: 1.05rem;
}
.stat-label {
font-size: 0.75rem;
color: #94a3b8;
text-transform: uppercase;
margin: 0;
}
.resource-meta {
display: grid;
grid-template-columns: repeat(3, 1fr);
align-items: center;
gap: 0.75rem;
}
.sparkline {
width: 100%;
height: 52px;
}
.last-check {
margin: 0;
font-size: 0.75rem;
color: #94a3b8;
}
.group-section {
margin-bottom: 2rem;
background: rgba(255, 255, 255, 0.7);
border: 1px solid #e2e8f0;
border-radius: 14px;
padding: 1rem;
}
.group-header {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: white;
border-radius: 10px;
cursor: pointer;
transition: background 0.2s;
border: 1px solid #e2e8f0;
margin-bottom: 1rem;
}
.group-header:hover {
background: #f9f9f9;
}
.group-header h3 {
font-size: 1.1rem;
margin: 0;
color: #333;
}
.group-name {
margin: 0;
flex: 1;
}
.group-toggle {
font-size: 0.9rem;
color: #667eea;
min-width: 15px;
}
.group-stats {
display: flex;
gap: 1.5rem;
margin-left: auto;
font-size: 0.85rem;
}
.group-stat {
background: #f8fafc;
border: 1px solid #e2e8f0;
padding: 0.4rem 0.8rem;
border-radius: 999px;
color: #475569;
font-weight: 500;
}
.edit-input {
padding: 0.5rem;
border: 1px solid #667eea;
border-radius: 6px;
font-size: 1.05rem;
width: 100%;
margin-bottom: 0.5rem;
}
.card-edit-form {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid #eee;
}
.edit-field {
margin-bottom: 0.5rem;
}
.edit-field label {
display: block;
font-size: 0.75rem;
color: #666;
margin-bottom: 0.25rem;
font-weight: 600;
}
.edit-field input {
width: 100%;
padding: 0.4rem 0.6rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 0.9rem;
}
.card-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
justify-content: flex-end;
}
.btn-icon {
background: #0b1325;
border: 1px solid #334155;
color: #e2e8f0;
min-width: 34px;
min-height: 30px;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
padding: 0.25rem 0.5rem;
opacity: 1;
transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn-icon:hover {
transform: translateY(-1px);
background: #111f34;
border-color: #60a5fa;
}
.btn-icon:focus-visible {
outline: 2px solid #60a5fa;
outline-offset: 2px;
}
.btn-icon.action-edit {
color: #93c5fd;
}
.btn-icon.action-maint {
color: #fbbf24;
}
.btn-icon.action-delete {
color: #fca5a5;
border-color: #7f1d1d;
background: #3f1d1d;
}
.btn-icon.action-delete:hover {
background: #7f1d1d;
border-color: #ef4444;
color: #fee2e2;
}
.btn-sm {
padding: 0.4rem 0.8rem;
font-size: 0.8rem;
}
.btn {
padding: 0.75rem 1.5rem;
border: 1px solid transparent;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-primary {
background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
color: white;
}
.btn-primary:hover {
filter: brightness(0.95);
}
.btn-secondary {
background: #ffffff;
border-color: #dbe2ea;
color: #0f172a;
}
.btn-secondary:hover {
background: #f8fafc;
}
.btn-danger {
background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
color: #ffffff;
}
.btn-ghost {
display: block;
width: 100%;
text-align: left;
padding: 0.6rem 0.8rem;
background: #ffffff;
color: #0f172a;
border: 0;
font-weight: 500;
border-radius: 0;
}
.btn-ghost:hover {
background: #f1f5f9;
}
.btn-danger {
color: white;
}
.btn-danger:hover {
filter: brightness(0.95);
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.42);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: #ffffff;
border-radius: 16px;
border: 1px solid #e2e8f0;
padding: 2rem;
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
}
.modal h2 {
margin-top: 0;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.tag-filter-input:focus {
outline: none;
border-color: #0ea5a2;
box-shadow: 0 0 0 3px rgba(14, 165, 162, 0.18);
}
.form-actions {
display: flex;
gap: 1rem;
justify-content: flex-end;
margin-top: 2rem;
}
.detail-section {
background: rgba(15, 23, 42, 0.94);
border: 1px solid #334155;
border-radius: 14px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
color: #e2e8f0;
}
.detail-section h2 {
margin-top: 0;
color: #f8fafc;
}
.detail-header-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
.detail-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
justify-content: flex-end;
}
.resource-url-detail {
color: #94a3b8;
margin: 0;
}
.maintenance-badge {
background: #fff7db;
color: #8a6a00;
border: 1px solid #f9db88;
}
.stats-grid-4 {
grid-template-columns: repeat(4, 1fr);
}
.detail-stats-grid {
margin-top: 2rem;
}
.section-controls {
display: flex;
gap: 1rem;
align-items: center;
margin-bottom: 1rem;
flex-wrap: wrap;
}
.filter-control {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.filter-control label {
font-size: 0.9rem;
color: #cbd5e1;
}
.filter-control select {
background: #111827;
color: #e2e8f0;
border: 1px solid #334155;
border-radius: 6px;
padding: 0.3rem 0.5rem;
}
.controls-pagination {
margin-left: auto;
display: flex;
gap: 0.5rem;
}
.table-wrapper {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th {
padding: 0.75rem;
text-align: left;
border-bottom: 2px solid #334155;
color: #e2e8f0;
background: #111827;
font-size: 0.86rem;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.data-table td {
padding: 0.75rem;
border-bottom: 1px solid #1f2937;
color: #e2e8f0;
}
.data-table tbody tr:hover {
background: #1e293b;
}
.text-right {
text-align: right !important;
}
.muted-cell {
color: #94a3b8;
}
.w-25 {
width: 25%;
}
.w-15 {
width: 15%;
}
.w-35 {
width: 35%;
}
.incident-reason-cell {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.incident-reason-toggle {
cursor: pointer;
color: #93c5fd;
flex: 1;
}
.expand-indicator {
margin-left: 0.5rem;
font-size: 0.85rem;
color: #94a3b8;
}
.btn-compact {
padding: 0.3rem 0.6rem;
font-size: 0.85rem;
}
.expanded-row {
background: #0b1325;
}
.expanded-cell {
white-space: pre-wrap;
word-break: break-word;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
font-size: 0.9rem;
color: #e2e8f0;
}
.section-title-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}
.empty-copy {
color: #94a3b8;
text-align: center;
padding: 2rem;
}
.chart-container {
margin-top: 1rem;
height: 300px;
background: #0b1325;
border: 1px solid #334155;
border-radius: 12px;
padding: 0.5rem;
}
.incident-badge {
display: inline-block;
padding: 0.5rem 1rem;
background: #fff3cd;
color: #856404;
border-radius: 6px;
font-weight: 600;
margin-bottom: 1rem;
}
.back-button {
display: inline-block;
margin-bottom: 1rem;
padding: 0.5rem 1rem;
background: #1e293b;
color: #f8fafc;
text-decoration: none;
border-radius: 6px;
border: 1px solid #334155;
transition: background 0.2s;
}
.back-button:hover {
background: #334155;
}
.empty-state {
text-align: center;
padding: 3rem;
color: #666;
}
.empty-state h3 {
color: #333;
margin-bottom: 0.5rem;
}
/* Mobile Responsive Styles */
@media (max-width: 1024px) {
.dashboard-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.container {
padding: 1.5rem;
}
}
@media (max-width: 768px) {
.navbar {
padding: 0.75rem 1rem;
}
.navbar h1 {
font-size: 1.25rem;
}
.navbar-links {
flex-wrap: wrap;
gap: 0.5rem;
}
.nav-link {
padding: 0.35rem 0.65rem;
font-size: 0.9rem;
}
.navbar-inner {
flex-direction: column;
align-items: flex-start;
}
.navbar-left {
width: 100%;
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
.container {
padding: 1rem;
}
.dashboard-toolbar {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.dashboard-actions {
width: 100%;
flex-direction: column;
gap: 0.5rem;
}
.dashboard-actions button,
.dashboard-actions select,
.tag-filter-input,
.actions-menu-wrapper {
width: 100%;
}
.actions-menu {
left: 0;
right: auto;
}
.dashboard-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 0.75rem;
}
.cc-metrics-grid {
grid-template-columns: repeat(2, 1fr);
}
.cc-layout {
grid-template-columns: 1fr;
}
.cc-rail {
position: static;
}
.resource-list-shell {
max-height: none;
overflow: visible;
}
.resource-list-count,
.resource-list-header {
position: static;
}
.resource-row {
grid-template-columns: 1fr;
gap: 0.7rem;
}
.resource-list-header {
display: none;
}
.row-checkbox {
display: none;
}
.row-metrics {
grid-template-columns: repeat(3, 1fr);
}
.row-side {
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr) !important;
gap: 0.75rem;
}
.resource-card {
padding: 0.875rem;
}
.detail-header-row {
flex-direction: column;
}
.detail-actions {
width: 100%;
justify-content: flex-start;
}
.stats-grid-4 {
grid-template-columns: repeat(2, 1fr);
}
.filter-control {
width: 100%;
justify-content: space-between;
}
.controls-pagination {
margin-left: 0;
width: 100%;
}
.controls-pagination .btn {
flex: 1;
}
.resource-meta {
grid-template-columns: 1fr;
gap: 0.5rem;
}
.resource-meta > div {
text-align: left !important;
}
.chart-container {
height: 300px !important;
}
.detail-section {
padding: 1rem !important;
}
.form-row {
flex-direction: column;
gap: 0rem;
}
.form-group {
width: 100%;
}
.modal {
width: 95%;
max-width: none;
margin: 1rem;
padding: 1.5rem;
}
.group-header {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.group-stats {
width: 100%;
justify-content: space-between;
}
.card-actions {
flex-direction: row;
justify-content: flex-end;
gap: 0.5rem;
}
table {
font-size: 0.85rem;
}
th, td {
padding: 0.5rem !important;
}
}
@media (max-width: 480px) {
.navbar h1 {
font-size: 1.1rem;
}
.stat-value {
font-size: 1.5rem;
}
.stat-label {
font-size: 0.75rem;
}
.stats-grid {
grid-template-columns: 1fr !important;
}
.modal h2 {
font-size: 1.25rem;
}
.btn {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
.stats-grid-4 {
grid-template-columns: 1fr;
}
.row-metrics {
grid-template-columns: 1fr 1fr;
}
}
/* ── Bulk action bar ── */
.bulk-action-bar {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: #0f172a;
border: 1px solid #334155;
border-radius: 8px;
margin-bottom: 0.5rem;
flex-wrap: wrap;
}
.bulk-count {
font-size: 0.85rem;
color: #94a3b8;
margin-right: 0.5rem;
flex-shrink: 0;
}
/* ── Row checkbox ── */
.row-checkbox {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
}
.row-checkbox input[type="checkbox"],
.header-select-all input[type="checkbox"] {
width: 15px;
height: 15px;
accent-color: #14b8a6;
cursor: pointer;
}
.header-select-all {
display: flex;
align-items: center;
cursor: pointer;
}
.resource-row-selected {
border-color: #14b8a6 !important;
background: rgba(20, 184, 166, 0.06) !important;
}
/* ── Status sparkline bars ── */
.status-spark-bars {
display: flex;
gap: 2px;
align-items: stretch;
height: 40px;
width: 100%;
}
.spark-bar {
flex: 1;
min-width: 3px;
border-radius: 1px;
transition: opacity 0.15s;
}
.spark-bar:hover { opacity: 0.65; }
.spark-bar-up { background: #14b8a6; }
.spark-bar-down { background: #ef4444; }
.spark-bar-unknown { background: #475569; }
/* ── Chart time-range buttons ── */
.chart-range-btns {
display: flex;
gap: 0.3rem;
}
.chart-range-btn {
background: #0f172a;
border: 1px solid #334155;
color: #94a3b8;
border-radius: 5px;
padding: 0.25rem 0.6rem;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.15s;
}
.chart-range-btn:hover {
border-color: #14b8a6;
color: #14b8a6;
}
.chart-range-btn.active {
background: #14b8a6;
border-color: #14b8a6;
color: #0f172a;
font-weight: 600;
}
/* ── Check row expansion ── */
.check-row-expandable {
cursor: pointer;
}
.check-row-expandable:hover {
background: rgba(20, 184, 166, 0.05);
}
.detail-json {
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 0.78rem;
color: #94a3b8;
background: #0a0f1a;
border-radius: 6px;
padding: 0.75rem 1rem;
overflow-x: auto;
white-space: pre;
margin: 0;
line-height: 1.5;
}
/* ── Section title row ── */
.section-title-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
}
.section-title-row h2 {
margin: 0;
}