328 lines
6.0 KiB
CSS
328 lines
6.0 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
min-height: 100vh;
|
|
padding: 24px;
|
|
color: #2c3e50;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.refresh-btn {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin-bottom: 24px;
|
|
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.refresh-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 24px;
|
|
border-radius: 16px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2.2em;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #7f8c8d;
|
|
font-size: 0.9em;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.section {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 24px;
|
|
border-radius: 16px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 24px;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.section h3 {
|
|
margin-bottom: 20px;
|
|
color: #2c3e50;
|
|
font-size: 1.3em;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.server-status {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.server-card {
|
|
border: 1px solid #e1e8ed;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
background: #f8f9fa;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.server-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: #e1e8ed;
|
|
}
|
|
|
|
.server-card.online {
|
|
border-color: #27ae60;
|
|
background: #f8fff9;
|
|
}
|
|
|
|
.server-card.online::before {
|
|
background: #27ae60;
|
|
}
|
|
|
|
.server-card.offline {
|
|
border-color: #e74c3c;
|
|
background: #fff8f8;
|
|
}
|
|
|
|
.server-card.offline::before {
|
|
background: #e74c3c;
|
|
}
|
|
|
|
.server-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.server-card h4 {
|
|
color: #2c3e50;
|
|
margin: 0;
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.server-url {
|
|
color: #3498db;
|
|
font-size: 0.8em;
|
|
font-weight: 500;
|
|
font-family: monospace;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.server-info {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
font-size: 0.8em;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.info-separator {
|
|
color: #e1e8ed;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.status-icon {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.status-text {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.info-label {
|
|
color: #7f8c8d;
|
|
font-weight: 500;
|
|
font-size: 0.75em;
|
|
}
|
|
|
|
.info-value {
|
|
color: #2c3e50;
|
|
font-weight: 600;
|
|
font-size: 0.75em;
|
|
}
|
|
|
|
.info-value:has(span[style*="color: #e74c3c"]) {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.info-value:has(span[style*="color: #f39c12"]) {
|
|
color: #f39c12;
|
|
}
|
|
|
|
.info-value:has(span[style*="color: #27ae60"]) {
|
|
color: #27ae60;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.status-online { background-color: #27ae60; }
|
|
.status-offline { background-color: #e74c3c; }
|
|
|
|
.task-list {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.task-item {
|
|
border: 1px solid #e1e8ed;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
margin: 8px 0;
|
|
background: #f8f9fa;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.task-item:hover {
|
|
background: #ffffff;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.task-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.task-name {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.task-status {
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.8em;
|
|
font-weight: 600;
|
|
color: white;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.status-pending { background: #f39c12; }
|
|
.status-running { background: #3498db; }
|
|
.status-completed { background: #27ae60; }
|
|
.status-failed { background: #e74c3c; }
|
|
|
|
.task-meta {
|
|
color: #7f8c8d;
|
|
font-size: 0.85em;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.task-meta > div {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.task-result {
|
|
color: #27ae60;
|
|
font-size: 0.85em;
|
|
margin-top: 8px;
|
|
padding: 8px;
|
|
background: #f0fff4;
|
|
border-radius: 6px;
|
|
border-left: 3px solid #27ae60;
|
|
}
|
|
|
|
.task-error {
|
|
color: #e74c3c;
|
|
font-size: 0.85em;
|
|
margin-top: 8px;
|
|
padding: 8px;
|
|
background: #fff5f5;
|
|
border-radius: 6px;
|
|
border-left: 3px solid #e74c3c;
|
|
}
|
|
|
|
.error-message {
|
|
color: #e74c3c;
|
|
font-size: 0.85em;
|
|
margin-top: 8px;
|
|
padding: 8px;
|
|
background: #fff5f5;
|
|
border-radius: 6px;
|
|
border-left: 3px solid #e74c3c;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body { padding: 16px; }
|
|
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
|
.server-status { grid-template-columns: 1fr; }
|
|
.server-info { grid-template-columns: 1fr; }
|
|
}
|