* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 60px 40px;
  max-width: 700px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: #667eea;
  font-weight: 700;
}

.status-frame {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 25px;
  background: #fafafa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.server-status-card {
  padding: 15px 20px;
  border-radius: 10px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  transition: background 0.3s ease;
}

.server-status-card.server-healthy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.server-status-card.server-unhealthy {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.server-status-card.server-unknown {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.server-status-card.server-loading {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.server-status-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.server-status-card .status-icon {
  font-size: 2rem;
}

.server-status-card .server-icon {
  width: 2rem;
  height: 2rem;
}

.server-status-card h2 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}

.server-status-indicator {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.components-section {
  text-align: left;
}

.components-title {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.component-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.component-card {
  padding: 10px 15px;
  border-radius: 8px;
  background: #f8f9fa;
  border-left: 4px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.component-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.component-card.healthy {
  border-left-color: #10b981;
}

.component-card.unhealthy {
  border-left-color: #ef4444;
}

.component-card.unknown {
  border-left-color: #f59e0b;
}

.component-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.component-icon {
  font-size: 1.25rem;
}

.component-icon.database-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.component-details h3 {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
  line-height: 1.2;
}

.component-details p {
  display: none;
}

.component-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}

.status-healthy {
  background: #d1fae5;
  color: #065f46;
}

.status-unhealthy {
  background: #fee2e2;
  color: #991b1b;
}

.status-unknown {
  background: #fef3c7;
  color: #92400e;
}

.status-loading {
  background: #e5e7eb;
  color: #374151;
}

.last-check {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
}

.refresh-btn {
  margin-top: 20px;
  padding: 12px 30px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.refresh-btn:hover {
  background: #5568d3;
}

.refresh-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 40px 25px;
  }

  .server-status-card h2 {
    font-size: 1.5rem;
  }

  .component-grid {
    grid-template-columns: 1fr;
  }
}
