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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Ubuntu", Roboto, sans-serif;
  background: #18181b;
  color: #a8b0a3;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  background: #18181b;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header h1 {
  color: #a8b0a3;
  margin: 0;
  flex-grow: 1;
}

.header-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.status-card {
  background: #2d2d32;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.status-card h3 {
  margin-bottom: 10px;
  color: #a8b0a3;
}

.status-value {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.status-good {
  color: #27ae60;
}
.status-warning {
  color: #f39c12;
}
.status-bad {
  color: #e74c3c;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-container {
  background: #2b2b30;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-container canvas {
  height: 300px !important;
}

.events-container {
  background: #2b2b30;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.events-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.event-item {
  padding: 10px;
  border-left: 4px solid #e74c3c;
  background: #2b2b30;
  margin-bottom: 10px;
  border-radius: 5px;
}

.event-time {
  font-weight: bold;
  color: #a8b0a3;
}

.event-duration {
  color: #e74c3c;
  font-size: 0.9em;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #a8b0a3;
}

.last-update {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9em;
  margin-top: 20px;
}

.refresh-btn {
  background: #a8b0a3;
  color: #18181b;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.refresh-btn:hover {
  background: #18181b;
  color: #a8b0a3;
}

.nav-links {
  display: flex;
  gap: 15px;

  a {
    color: #a8b0a3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;

    &:hover {
      color: #27ae60;
    }
  }
}

.filter-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
