:root {
--primary-color: #2563eb;
--primary-hover: #1d4ed8;
--secondary-color: #64748b;
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--background: #f8fafc;
--surface: #ffffff;
--border: #e2e8f0;
--text-primary: #1e293b;
--text-secondary: #64748b;
--text-muted: #94a3b8;
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
background-color: var(--background);
color: var(--text-primary);
line-height: 1.6;
}
.dashboard {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header {
background: var(--surface);
border-bottom: 1px solid var(--border);
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
max-width: 1400px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.header h1 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}
.header-actions {
display: flex;
align-items: center;
gap: 1rem;
}
.status-indicator {
padding: 0.25rem 0.75rem;
background: var(--success-color);
color: white;
border-radius: 9999px;
font-size: 0.875rem;
font-weight: 500;
}
.status-indicator.disconnected {
background: var(--danger-color);
}
.main-content {
flex: 1;
max-width: 1400px;
margin: 0 auto;
padding: 2rem;
width: 100%;
}
.overview-section,
.charts-section,
.queues-section,
.jobs-section {
margin-bottom: 3rem;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.section-header h2 {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
}
.section-actions {
display: flex;
gap: 1rem;
align-items: center;
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0.5rem;
box-shadow: var(--shadow);
overflow: hidden;
}
.cards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}
.metric-card {
padding: 1.5rem;
}
.card-header {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 1rem;
}
.card-header h3 {
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.card-icon {
font-size: 1.25rem;
}
.card-value {
font-size: 2rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 0.25rem;
}
.card-subtitle {
font-size: 0.875rem;
color: var(--text-muted);
}
.charts-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 1.5rem;
}
.chart-card {
padding: 1.5rem;
}
.chart-container {
position: relative;
height: 300px;
margin-top: 1rem;
}
.period-selector {
padding: 0.25rem 0.5rem;
border: 1px solid var(--border);
border-radius: 0.25rem;
font-size: 0.875rem;
background: var(--surface);
}
.table-container {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th,
.data-table td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
.data-table th {
background: var(--background);
font-weight: 500;
color: var(--text-secondary);
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.data-table tbody tr:hover {
background: var(--background);
}
.loading-row td {
text-align: center;
padding: 2rem;
color: var(--text-muted);
}
.status-badge {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-running { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-dead { background: #f3f4f6; color: #374151; }
.status-badge.active {
background: #d1fae5;
color: #065f46;
border: 1px solid #a7f3d0;
}
.status-badge.paused {
background: #fef3c7;
color: #92400e;
border: 1px solid #fde68a;
}
.priority-badge {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
}
.priority-critical { background: #fee2e2; color: #991b1b; }
.priority-high { background: #fed7aa; color: #c2410c; }
.priority-normal { background: #e0e7ff; color: #3730a3; }
.priority-low { background: #f3f4f6; color: #374151; }
.priority-background { background: #f1f5f9; color: #475569; }
.btn {
display: inline-flex;
align-items: center;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
border-radius: 0.375rem;
border: none;
cursor: pointer;
text-decoration: none;
transition: all 0.2s;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-secondary {
background: var(--background);
color: var(--text-secondary);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--surface);
}
.btn-danger {
background: var(--danger-color);
color: white;
}
.btn-danger:hover {
background: #dc2626;
}
.btn-success {
background: var(--success-color);
color: white;
}
.btn-success:hover {
background: #059669;
}
.btn-warning {
background: var(--warning-color);
color: white;
}
.btn-warning:hover {
background: #d97706;
}
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
}
.search-input,
.filter-select {
padding: 0.5rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
font-size: 0.875rem;
background: var(--surface);
}
.search-input {
width: 200px;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
.modal.active {
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background: var(--surface);
border-radius: 0.5rem;
box-shadow: var(--shadow-lg);
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
font-size: 1.125rem;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-muted);
}
.modal-body {
padding: 1.5rem;
}
.modal-footer {
padding: 1.5rem;
border-top: 1px solid var(--border);
display: flex;
gap: 1rem;
justify-content: flex-end;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
font-size: 0.875rem;
background: var(--surface);
}
.form-group textarea {
resize: vertical;
font-family: 'Courier New', monospace;
}
@media (max-width: 768px) {
.main-content {
padding: 1rem;
}
.header-content {
padding: 1rem;
}
.header-content h1 {
font-size: 1.25rem;
}
.cards-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
}
.charts-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.section-actions {
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
.search-input {
width: 100%;
min-width: 150px;
}
.data-table {
font-size: 0.75rem;
}
.data-table th,
.data-table td {
padding: 0.5rem;
}
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: 'Courier New', monospace; }
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.3s ease-out;
}
.loading {
opacity: 0.6;
pointer-events: none;
}
.spinner {
display: inline-block;
width: 1rem;
height: 1rem;
border: 2px solid var(--border);
border-radius: 50%;
border-top-color: var(--primary-color);
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 1rem 1.5rem;
border-radius: 0.375rem;
color: white;
font-weight: 500;
z-index: 1100;
max-width: 400px;
box-shadow: var(--shadow-lg);
animation: slideIn 0.3s ease-out;
}
.notification-success {
background: var(--success-color);
}
.notification-error {
background: var(--danger-color);
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.archive-section {
margin-bottom: 2rem;
}
.archive-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.archive-section .metric-card {
background: linear-gradient(135deg, var(--surface) 0%, #f1f5f9 100%);
border-left: 4px solid var(--secondary-color);
}
.archive-section .card-icon {
font-size: 1.5rem;
opacity: 0.7;
}
.archive-section .data-table th:last-child,
.archive-section .data-table td:last-child {
text-align: center;
}
.compressed-indicator {
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.compressed-yes {
color: var(--success-color);
}
.compressed-no {
color: var(--text-muted);
}
.size-badge {
background: var(--background);
border: 1px solid var(--border);
border-radius: 0.25rem;
padding: 0.125rem 0.5rem;
font-size: 0.75rem;
color: var(--text-secondary);
}
.reason-badge {
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
text-transform: capitalize;
}
.reason-automatic {
background: #e0f2fe;
color: #0277bd;
}
.reason-manual {
background: #f3e5f5;
color: #7b1fa2;
}
.reason-compliance {
background: #fff3e0;
color: #f57c00;
}
.reason-maintenance {
background: #e8f5e8;
color: #388e3c;
}
.policy-settings {
background: var(--background);
border: 1px solid var(--border);
border-radius: 0.375rem;
padding: 1rem;
margin-top: 0.5rem;
}
.policy-settings label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.875rem;
}
.policy-settings input[type="number"] {
width: 80px;
margin-right: 0.5rem;
padding: 0.25rem 0.5rem;
border: 1px solid var(--border);
border-radius: 0.25rem;
font-size: 0.875rem;
}
.policy-settings input[type="checkbox"] {
margin-right: 0.5rem;
}
.modal-content.large {
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.stat-item {
text-align: center;
padding: 1rem;
background: var(--background);
border-radius: 0.375rem;
border: 1px solid var(--border);
}
.stat-item h4 {
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stat-item span {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}
.recent-operations {
border-top: 1px solid var(--border);
padding-top: 1.5rem;
}
.recent-operations h4 {
margin-bottom: 1rem;
color: var(--text-secondary);
}
.operation-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
margin-bottom: 0.5rem;
background: var(--surface);
}
.operation-info {
flex: 1;
}
.operation-type {
font-weight: 500;
text-transform: capitalize;
}
.operation-details {
font-size: 0.875rem;
color: var(--text-secondary);
margin-top: 0.25rem;
}
.operation-time {
font-size: 0.75rem;
color: var(--text-muted);
}
.pagination-controls {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-top: 1px solid var(--border);
background: var(--background);
}
.pagination-controls button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.restore-btn {
background: var(--success-color);
color: white;
border: none;
padding: 0.25rem 0.75rem;
border-radius: 0.25rem;
font-size: 0.75rem;
cursor: pointer;
transition: background-color 0.2s;
}
.restore-btn:hover {
background: #059669;
}
.view-details-btn {
background: var(--secondary-color);
color: white;
border: none;
padding: 0.25rem 0.75rem;
border-radius: 0.25rem;
font-size: 0.75rem;
cursor: pointer;
margin-left: 0.5rem;
transition: background-color 0.2s;
}
.view-details-btn:hover {
background: #475569;
}
.notifications-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
max-width: 400px;
pointer-events: none;
}
.notification {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0.5rem;
box-shadow: var(--shadow-lg);
margin-bottom: 10px;
opacity: 1;
transition: opacity 0.3s ease;
pointer-events: auto;
}
.notification-info {
border-left: 4px solid var(--primary-color);
}
.notification-success {
border-left: 4px solid var(--success-color);
}
.notification-warning {
border-left: 4px solid var(--warning-color);
}
.notification-error {
border-left: 4px solid var(--danger-color);
}
.notification-content {
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.notification-message {
color: var(--text-primary);
font-size: 0.875rem;
line-height: 1.4;
flex: 1;
margin-right: 1rem;
}
.notification-close {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 1.25rem;
font-weight: bold;
line-height: 1;
padding: 0;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s;
}
.notification-close:hover {
background: var(--border);
color: var(--text-primary);
}
.bulk-progress-notification {
position: fixed;
top: 80px;
right: 20px;
z-index: 1001;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0.5rem;
box-shadow: var(--shadow-lg);
padding: 1rem;
min-width: 300px;
max-width: 400px;
transition: opacity 0.3s ease;
}
.progress-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.operation-type {
font-weight: 600;
color: var(--text-primary);
font-size: 0.875rem;
}
.operation-id {
font-family: 'Courier New', monospace;
font-size: 0.75rem;
color: var(--text-muted);
background: var(--background);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
}
.progress-bar-container {
background: var(--border);
border-radius: 0.5rem;
height: 8px;
overflow: hidden;
margin-bottom: 0.75rem;
}
.progress-bar {
background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
height: 100%;
transition: width 0.3s ease;
border-radius: 0.5rem;
}
.progress-text {
font-size: 0.75rem;
color: var(--text-secondary);
text-align: center;
}
.reason-badge {
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
}
.reason-automatic {
background: #dbeafe;
color: #1e40af;
}
.reason-manual {
background: #f3e8ff;
color: #7c3aed;
}
.reason-compliance {
background: #fef3c7;
color: #d97706;
}
.reason-maintenance {
background: #f3f4f6;
color: #374151;
}
.size-badge {
background: var(--background);
color: var(--text-secondary);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-family: 'Courier New', monospace;
}
.compressed-indicator {
font-size: 0.75rem;
font-weight: 500;
}
.compressed-yes {
color: var(--success-color);
}
.compressed-no {
color: var(--text-muted);
}
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOutRight {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
.notification {
animation: slideInRight 0.3s ease;
}
.notification[style*="opacity: 0"] {
animation: slideOutRight 0.3s ease;
}
.live-update-indicator {
display: inline-block;
width: 8px;
height: 8px;
background: var(--success-color);
border-radius: 50%;
margin-left: 0.5rem;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.5;
transform: scale(1.2);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.stats-updating {
background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}