body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f4f6;
  color: #111827;
}

.status-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px 40px;
}

.status-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

/* Base */
.status-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin-right: 16px;
}

/* Verde — tudo ok */
.status-summary-icon.pill-ok {
  background-color: #22c55e1a;
  color: #16a34a;
  border: 2px solid #bbf7d0;
}

/* Amarelo — parcialmente operante */
.status-summary-icon.pill-partial {
  background-color: #eab3081a;
  color: #eab308;
  border: 2px solid #facc15;
}

/* Vermelho — tudo fora do ar */
.status-summary-icon.pill-down {
  background-color: #ef44441a;
  color: #ef4444;
  border: 2px solid #fecaca;
}

.status-summary-text {
  flex: 1;
}

.status-summary-text h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.status-summary-text p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.status-summary-pill {
  margin-left: 16px;
}

/* Base pill — apenas layout, sem cor */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* Pill verde — Operational */
.pill-ok {
  background-color: #22c55e1a;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Pill amarela — Partially Operational */
.pill-partial {
  background-color: #eab3081a;
  color: #eab308;
  border: 1px solid #facc15;
}

/* Pill vermelha — Not Operational */
.pill-down {
  background-color: #ef44441a;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.status-list-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
  padding: 16px 24px 20px;
}

.status-list-title {
  margin: 4px 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.service-row {
  padding: 12px 0 16px;
  border-top: 1px solid #e5e7eb;
}

.service-row:first-of-type {
  border-top: none;
}

.service-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.service-name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.status-dot-ok {
  background-color: #22c55e;
}

.service-name-block {
  display: flex;
  flex-direction: column;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.service-url a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
}

.service-url a:hover {
  text-decoration: underline;
}

.service-uptime-summary {
  font-size: 13px;
  color: #111827;
}

.service-uptime-text {
  font-weight: 500;
}

.service-bar-wrapper {
  margin-top: 4px;
}

.service-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.status-day {
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
}

.status-day-ok {
  background-color: #22c55e;
}

.status-day-warn {
  background-color: #eab308;
}

.status-day-down {
  background-color: #ef4444;
}

.status-day-no-data {
  background-color: #e5e7eb;
}

.service-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}

.service-extra-info {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
}

/* Responsivo */
@media (max-width: 640px) {
  .status-summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .status-summary-pill {
    margin-left: 0;
  }

  .service-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .service-extra-info {
    flex-direction: column;
    gap: 2px;
  }
}
.status-tooltip {
  position: fixed;
  z-index: 50;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  padding: 10px 12px;
  font-size: 12px;
  color: #111827;
  border: 1px solid #e5e7eb;
  pointer-events: none;
  min-width: 160px;
}

.status-tooltip.hidden {
  display: none;
}

.status-tooltip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.status-tooltip-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.status-tooltip-title {
  font-weight: 600;
}

.status-tooltip-line {
  color: #4b5563;
}

.status-tooltip-main {
  margin-bottom: 2px;
}

/* Cores por modo */
.tooltip-ok .status-tooltip-icon {
  background-color: #22c55e;
}

.tooltip-down .status-tooltip-icon {
  background-color: #ef4444;
}

.tooltip-no-data .status-tooltip-icon {
  background-color: #9ca3af;
}
.status-dot-ok {
  background-color: #22c55e;
}

.status-dot-down {
  background-color: #ef4444;
}

.status-dot-unknown {
  background-color: #9ca3af;
}
.maintenance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.maintenance-item {
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}

.maintenance-item:first-child {
  border-top: none;
}

.maintenance-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.maintenance-time {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.maintenance-description {
  font-size: 13px;
  color: #374151;
  margin-top: 4px;
}
.main-nav {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.nav-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.nav-link:hover {
  text-decoration: underline;
}

.header {
  text-align: center;
  padding: 20px 0;
}

.header-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}