* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: linear-gradient(-45deg, #0c0c0c, #1a1a2e, #16213e, #0f172a); background-size: 400% 400%; animation: gradient 6s ease infinite; color: white; min-height: 100vh; 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: 40px; position: relative; animation: fadeIn 1s ease-in; } .header h1 { font-size: 3rem; font-weight: 700; background: linear-gradient(135deg, #00d4aa, #4f46e5, #06b6d4); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; text-shadow: 0 0 30px rgba(0, 212, 170, 0.3); } .header p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; } .overall-status { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; margin-bottom: 20px; transition: all 0.3s ease; backdrop-filter: blur(20px); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); } .status-healthy { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); } .status-degraded { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); } .status-unhealthy { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); } .status-indicator { width: 12px; height: 12px; border-radius: 50%; animation: pulse 2s infinite; background: white; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } .last-updated { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-top: 10px; } .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; margin-bottom: 40px; } .health-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 25px; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); animation: float 3s ease-in-out infinite; } .health-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #00d4aa, #4f46e5, #06b6d4); opacity: 0.8; } .health-card:hover { transform: translateY(-5px); box-shadow: 0 0 30px rgba(102, 126, 234, 0.5); } .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } .card-title { font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; gap: 10px; } .card-status { padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; } .status-online { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); } .status-offline { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); } .status-warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); } .metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } .metric { background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); } .metric-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 5px; } .metric-value { font-size: 1.5rem; font-weight: 700; color: #00d4aa; } .metric-unit { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); font-weight: 400; } .progress-bar { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; margin-top: 8px; } .progress-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s 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); } .stats-card { grid-column: 1 / -1; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .loading { display: flex; justify-content: center; align-items: center; height: 200px; font-size: 1.2rem; color: rgba(255, 255, 255, 0.7); } .spinner { width: 40px; height: 40px; border: 4px solid rgba(255, 255, 255, 0.1); border-top: 4px solid #00d4aa; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 15px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .error-message { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; padding: 20px; border-radius: 12px; text-align: center; margin: 20px 0; } .auto-refresh { position: fixed; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px; padding: 10px 20px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; z-index: 1000; } .refresh-indicator { width: 8px; height: 8px; background: #00d4aa; border-radius: 50%; animation: pulse 2s infinite; } .recommendations { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 12px; padding: 20px; margin-top: 20px; } .recommendation-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #f59e0b; } .recommendation-item:last-child { margin-bottom: 0; } /* Animations & Effects */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } } /* Mobile */ @media (max-width: 768px) { .header h1 { font-size: 2rem; } .dashboard-grid { grid-template-columns: 1fr; } .container { padding: 15px; } .auto-refresh { position: relative; top: auto; right: auto; margin-bottom: 20px; justify-self: center; } .main-content { margin-left: 0 !important; width: 100% !important; padding-left: 1rem; padding-right: 1rem; } .grid-mobile-safe { grid-template-columns: 1fr !important; } .text-mobile-safe { font-size: 0.875rem; word-break: break-word; } } @media (max-width: 767px) { .view-container { min-height: calc(100vh - 200px); overflow-y: auto; } .main-content { padding-bottom: 80px; } }