* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(-45deg, #0c0c0c, #1a1a2e, #16213e, #0f172a); background-size: 400% 400%; animation: gradient 6s ease infinite; min-height: 100vh; color: #eee; overflow-x: hidden; } @keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .container { max-width: 1400px; margin: 0 auto; padding: 20px; } .header { text-align: center; margin-bottom: 30px; color: #fff; } .header h1 { font-size: 2.5rem; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.6); } .header p { font-size: 1.2rem; opacity: 0.85; } .auto-refresh { position: fixed; top: 20px; right: 20px; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 12px 20px; border-radius: 25px; color: white; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); } .auto-refresh:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); } .refresh-indicator { display: inline-block; width: 8px; height: 8px; background: #10b981; border-radius: 50%; margin-right: 8px; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } } .overall-status { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 20px; border-radius: 15px; margin-bottom: 30px; text-align: center; font-size: 1.3rem; font-weight: 600; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); color: #fff; } .status-healthy { background: linear-gradient(135deg, #10b981, #059669) !important; color: white; } .status-degraded { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: white; } .status-unhealthy { background: linear-gradient(135deg, #ef4444, #dc2626) !important; color: white; } .health-score { display: inline-block; margin-left: 15px; padding: 8px 16px; background: rgba(255,255,255,0.1); border-radius: 20px; font-size: 1rem; color: #fff; } .last-updated { text-align: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 20px; } .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; margin-bottom: 30px; } .health-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 15px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; color: #fff; } .health-card:hover { transform: translateY(-5px); box-shadow: 0 12px 48px rgba(0,0,0,0.25); } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid rgba(255,255,255,0.1); } .card-title { font-size: 1.3rem; font-weight: 700; color: #fff; } .card-status { padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; } .status-online { background: #dcfce7; color: #166534; } .status-offline { background: #fecaca; color: #991b1b; } .status-degraded { background: #fef3c7; color: #92400e; } .metric-grid, .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } .metric { text-align: center; } .metric-label { font-size: 0.85rem; color: #a0aec0; margin-bottom: 6px; font-weight: 500; } .metric-value { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; } .metric-unit { font-size: 1rem; color: #cbd5e0; font-weight: 400; } .progress-bar { width: 100%; height: 8px; background: #2d3748; border-radius: 4px; margin-top: 8px; overflow: hidden; } .progress-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; } .progress-healthy { background: linear-gradient(90deg, #10b981, #059669); } .progress-warning { background: linear-gradient(90deg, #f59e0b, #d97706); } .progress-danger { background: linear-gradient(90deg, #ef4444, #dc2626); } .error-message { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px; margin-top: 15px; color: #991b1b; font-size: 0.9rem; } .recommendations { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 16px; color: #fff; } .recommendation-item { margin-bottom: 8px; font-size: 0.9rem; line-height: 1.4; } .loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: #a0aec0; } .spinner { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid #ffffff; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 12px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .alert-section { margin-top: 30px; } .alert-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 15px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); color: #fff; } .alert-item { padding: 16px; border-radius: 10px; margin-bottom: 12px; border-left: 4px solid; } .alert-critical { background: #4b0000; border-left-color: #ef4444; color: #ffb3b3; } .alert-warning { background: #4b3b00; border-left-color: #f59e0b; color: #ffe7a3; } .alert-info { background: #00184b; border-left-color: #3b82f6; color: #cfe1ff; } .alert-title { font-weight: 600; margin-bottom: 4px; } .alert-message { font-size: 0.9rem; opacity: 0.9; } .chart-container { margin-top: 20px; height: 200px; background: rgba(255,255,255,0.03); border-radius: 8px; padding: 16px; display: flex; align-items: center; justify-content: center; color: #a0aec0; } .wide-card { grid-column: 1 / -1; } @media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } .metric-grid, .stats-grid { grid-template-columns: 1fr; } .header h1 { font-size: 2rem; } .auto-refresh { position: relative; top: auto; right: auto; margin-bottom: 20px; display: inline-block; } } .tabs { display: flex; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 4px; margin-bottom: 20px; } .tab { flex: 1; padding: 12px 20px; text-align: center; border-radius: 8px; cursor: pointer; color: rgba(255,255,255,0.6); transition: all 0.3s ease; } .tab.active { background: rgba(255,255,255,0.1); color: white; } .tab:hover { background: rgba(255,255,255,0.08); color: white; } .tab-content { display: none; } .tab-content.active { display: block; }