﻿.system-health-check {
  padding-top: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: none;
  margin: 0 auto;
}

.system-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-label {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.info-value {
  font-weight: 500;
  color: var(--color-text-primary);
}

.info-value.online {
  color: var(--health-status-healthy);
}

.info-value.offline {
  color: var(--health-status-unhealthy);
}

.connectivity-check-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.connectivity-check-btn:hover:not(:disabled) {
  background: var(--color-background-secondary);
  border-color: var(--color-text-secondary);
}

.connectivity-check-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .system-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .info-item {
    width: 100%;
    justify-content: space-between;
  }
}
.error-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.health-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.section-header {
  margin: 1rem 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--color-border);
}

.section-header:first-of-type {
  margin-top: 0;
}

.section-header h2 {
  margin: 0 0 0.125rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.section-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

.dependency-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-background-secondary);
  margin-left: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.overall-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.status-icon.loading {
  background-color: #ffc107;
  border: 2px solid #ffca28;
}

.status-icon.healthy {
  background-color: var(--health-status-healthy);
  color: white;
}

.status-icon.unhealthy, .status-icon.error {
  background-color: var(--health-status-unhealthy);
  color: white;
}

.status-icon.degraded {
  background-color: #ffc107;
  color: #212529;
}

.loading-circle {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.check-icon {
  color: white;
  font-size: 18px;
}

.x-icon {
  color: white;
  font-size: 16px;
}

.dependency-info {
  flex: 1;
}

.dependency-name {
  margin: 0 0 0.125rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.dependency-description {
  margin: 0 0 0.25rem 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.dependency-status {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
  display: block;
  max-width: 100%;
  word-wrap: break-word;
  line-height: 1.4;
}

.dependency-status:not(.status-healthy) {
  display: inline;
  color: var(--health-status-unhealthy);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* Simple inline display for healthy status */
.dependency-status.status-healthy {
  display: inline;
  color: var(--health-status-healthy);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* Custom scrollbar styling for dependency status */
.dependency-status::-webkit-scrollbar {
  width: 6px;
}

.dependency-status::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
  border-radius: 3px;
}

.dependency-status::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.dependency-status::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* Firefox scrollbar styling */
.dependency-status {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-background-secondary);
}

.dependency-duration {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-left: 0.5rem;
}

.health-summary {
  text-align: center;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.health-summary p {
  margin: 0.25rem 0;
}

.error-summary {
  color: var(--health-status-unhealthy);
  font-size: 0.9rem;
}

.status-text {
  font-weight: 600;
  color: var(--color-text-primary);
}

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