body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  margin: 0;
  color: #2c3e50;
  font-size: 2.5em;
  font-weight: 300;
}

.header h2 {
  margin: 10px 0 0 0;
  color: #7f8c8d;
  font-weight: 400;
}

.alert {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #f39c12;
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0;
  border-left: 5px solid #f39c12;
}

.alert strong {
  color: #d68910;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.component-card {
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.component-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.component-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.3em;
  text-transform: capitalize;
}

.status-indicator {
  font-size: 2em;
  margin: 10px 0;
}

.status-text {
  font-weight: bold;
  font-size: 1.1em;
  margin: 10px 0;
  text-transform: uppercase;
}

.replica-count {
  color: #666;
  font-size: 0.9em;
}

.status-offline {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border-color: #e53935;
}

.status-starting {
  background: linear-gradient(135deg, #fffde7, #fff9c4);
  border-color: #fb8c00;
}

.status-online {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c8);
  border-color: #43a047;
}

.scale-up-section {
  text-align: center;
  margin: 40px 0;
}

.scale-up-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 18px 40px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.scale-up-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scale-up-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.scale-up-message {
  margin-top: 15px;
  font-weight: bold;
}

.footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
  color: #7f8c8d;
  font-size: 0.9em;
}

.footer-sub {
  margin-top: 10px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.connection-status {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  display: flex;
  gap: 8px;
  align-items: center;
}

.connected {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.disconnected {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

code {
  background: #f8f9fa;
  color: #e83e8c;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9em;
}


