* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  background: linear-gradient(135deg, #f0f3f1, #112b51);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}


.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  color: #0b0101;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #161515;
  font-weight: 100;
}

input[type="text"],
input[type="date"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #556cd6;
}

#result {
  margin-top: 20px;
  text-align: left;
}

.status-item {
  display: flex;
  align-items: center;
  margin: 12px 0;
  font-size: 16px;
}

.status-item span {
  margin-left: 10px;
}

.check {
  color: green;
  font-size: 18px;
}

.cross {
  color: red;
  font-size: 18px;
}

.dashboard-container {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-card {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 580px;
  width: 100%;
  transition: transform 0.3s ease;
  border: 2px solid #64b5f6;
}


.dashboard-card:hover {
  transform: translateY(-4px);
}


.dashboard-card h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1e3c72;
  font-size: 26px;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.action-row span {
  font-size: 20px;
  font-weight: 500;
  color: #263238;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-row button {
  padding: 6px 12px;
  background-color: #1e88e5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
  width: auto;
  min-width: 40px;
  height: 32px;
}

.action-row button:hover {
  background-color: #1565c0;
}


.main-title {
  font-size: 36px;
  font-weight: 900;
  color: #f5f5f5;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.916);
}


.health-check-card {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  border: 2px solid #90a4ae;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 8px 20px rgba(144, 164, 174, 0.3);
  transition: transform 0.3s ease;
}



.health-check-card:hover {
  transform: scale(1.02);
}


.check, .cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.check {
  background-color: #22c55e; /* Green */
}

.cross {
  background-color: #ef4444; /* Red */
}

.charts-page .charts-input-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 900px;
}

.charts-page .charts-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.charts-page .chart-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.charts-page .custom-legend {
  margin-top: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.charts-page .custom-legend span {
  font-size: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.charts-page .legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.charts-page .legend-color.healthy {
  background-color: #32CD32;
}

.charts-page .legend-color.unhealthy {
  background-color: #f97316;
}

.charts-page .legend-color.product {
  background-color: #667eea;
}

.charts-page .legend-color.alarms {
  background-color: #667eea;
}

.charts-page .legend-color.events {
  background-color: #667eea;
}

.json-container {
  position: relative;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 5px;
  font-family: monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 300px; /* Limit height */
  overflow-y: auto;  /* Enable vertical scroll */
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #667eea;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: #667eea;
}
















