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

body {
  font-family: Arial, sans-serif;
  background-color: #f7fbfb;
  margin: 0;
  padding: 0;
}

/* ============= Scroll Bar ============= */
body::-webkit-scrollbar {
  background-color: #fff;
  width: 16px;
}

/* background of the scrollbar except button or resizer */
body::-webkit-scrollbar-track {
  background-color: #fff;
}

/* scrollbar itself */
body::-webkit-scrollbar-thumb {
  background-color: #babac0;
  border-radius: 16px;
  border: 4px solid #fff;
}

/* set button(top and bottom of the scrollbar) */
body::-webkit-scrollbar-button {
  display:none;
}
/* ====================================== */

.container {
  width: 70%;
  margin: 0 auto;
  padding: 20px;
  
  max-width: 860px;
}

.box {
  padding: 0.3rem;
}

.section-title{
  color: #000000b1;
  font-size: 1.5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2% 0;
  margin-top: -1%;
}

.header img {
  height: 45px;
}

.header button {
  background-color: #00a37f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.status-banner {
  background-color: #00a37f;
  color: white;
  text-align: center;
  padding: 1.5%;
  border-radius: 5px;
  margin-top: 1%;
}

.loading {
  text-align: center;
  font-size: 18px;
  color: #00a37f;
  margin: 20px 0;
}

.status-card {
  background-color: #fbffffe8;
  border: 1px solid #d9dadb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;

  padding-left: 2%;
  padding-right: 2%;
  padding-top: 1.4%;
  padding-bottom: 1.4%;

  margin-bottom: 0.7%;
  display: flex;
  flex-direction: column;
}

.status-card h2 {
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6A737D;
}

.status-card h2 i {
  margin-left: 5px;
  font-size: 14px;
  color: #6a737d;
}

.services-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#service-filter {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

#service-filter:focus {
  outline: none;
  border-color: #00a37f;
}

.status-card .status-bar {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.brilhante {
  transition: box-shadow 0.5s ease;
}

.brilhante:hover {
  box-shadow: 0 0 5px #ff880028, 0 0 10px #ff880028; /* Efeito de brilho */
}

.status-card .status-bar .service-item {
  height: 2.5dvh;

  width: 0.9dvh;

  margin-right: 1px;

  border-radius: 1px;
}

.status-card .status-bar .service-item:hover {
  opacity: 0.6;
}

.status-card .status-bar div.downtime {
  background-color: #d73a49;
  /* Cor para downtime */
}

.status-card .status-bar div.unknown-status {
  background-color: #0000000c;
  /* Cor para downtime */
}

.status-card .status-bar div.partial {
  background-color: #ffab00;
  /* Cor para parcial */
}

.status-card .status-bar div.operational {
  background-color: #28a745;
  /* Cor para operacional */
}

.status-card .status-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #6a737d;
  font-size: 12px;
}

.status-card .status-info .uptime {
  font-weight: bold;
}

/* Container para os cards */
.servers-status-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(200px, 1fr)
  ); /* Cria até 4 colunas com largura mínima de 200px */
  gap: 20px; /* Espaço entre os cards */
}

/* Card de status do servidor */
.server-status-card {
  background-color: #ffffff;
  border: 1px solid #e1e4e8; 
  border-radius: 10px;
  padding: 1px;
  margin-top: 2%;
  height: 120px; 
  display: flex;
  flex-direction: column; 
  justify-content: space-between; 
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

/* ---------------------------------------------- */
.service-item {
  position: relative;
  display: inline-block;
}

.service-item .details-box {
  display: none;
  position: absolute;

  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  width: 250px; /* Ajusta a largura automaticamente */
  max-width: 150vw; /* Define uma largura máxima relativa à viewport */
  text-align: left; /* Alinhamento do texto */
  opacity: 1;
  white-space: normal; /* Permite a quebra de linha */
  word-wrap: break-word; /* Quebra palavras longas */
}

.service-item:hover .details-box {
  display: block;
}
/* ---------------------------------------------- */

/* Indicador de status */
.status-container {
  position: relative; /* Para permitir o posicionamento do indicador */
  width: 100%; /* Largura total */
  display: flex; /* Flexbox para centralizar */
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
}

.status-text {
  font-weight: bold; /* Texto em negrito */
  font-size: 1.2em; /* Tamanho da fonte maior */
  margin-right: 10px; /* Espaçamento entre o texto e o indicador */
}

.server-status-card .status-indicator {
  height: 15px; /* Altura do indicador */
  width: 15px; /* Largura do indicador */
  border-radius: 50%; /* Indicador redondo */
}

/* Estilo para hostname e last check */
.hostname-text {
  font-weight: 500; /* Peso da fonte médio */
  font-size: 1em; /* Tamanho da fonte padrão */
  margin-top: 10px; /* Espaçamento superior */
}

.last-check-text {
  color: #666; /* Cor cinza para menos destaque */
  font-size: 0.9em; /* Tamanho da fonte um pouco menor */
  margin-top: 5px; /* Espaçamento superior */
}

.incident-title {
  margin: 0;
}

.incident-occurred-title {
  color: #343536;
  font-weight: bold;
  font-size: 1.2rem;
}

.no-incident-occurred-title {
  margin-bottom: 3%;
}

.incident-description {
  font-size: 0.9rem;
  margin-bottom: -2%;
}

.incident-details-container {
  padding-left: 0.8%;
  padding-right: 0.8%;
}

.date-status {
  font-size: 0.8rem;
  margin-top: -1.4%;
  color: #b0b0b0;
}

.hr-status-item {
  width: 0%;
  margin-top: -1.9%;
  margin-bottom: 0.5%;
  background-color: #b0b0b002;
}

/* Resposivo para quando for menor que 430 */
@media (max-width: 770px) {
  .container {
    width: 90%;
  }

  .date-status {
    margin-top: -3.5%;
  }

  .status-card{
    padding: 5%;
  }
}
@media (max-width: 530px) {
  .container {
    width: 100%;
  }
}
