:root {
  color-scheme: light dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  background-color: #181a1f;
  color: #f5f5f5;
}

body {
  margin: 0;
}

#root {
  min-height: 100vh;
}

.login-container,
.dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.login-container h1,
.dashboard h1 {
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.login-form input,
.dashboard button {
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #2a2d36;
  background-color: #1f2229;
  color: inherit;
}

.dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.dashboard__actions {
  display: flex;
  gap: 0.75rem;
}

.servers {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.service-card {
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid transparent;
  background: linear-gradient(145deg, rgba(32,35,42,0.9), rgba(24,26,31,0.9));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.service-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin: 0;
}

.service-card .status {
  font-weight: 600;
}

.service-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.service-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.service-card dd {
  margin: 0;
  font-size: 0.95rem;
}

.status-ok {
  border-color: #24b26b;
  box-shadow: 0 0 25px rgba(36, 178, 107, 0.2);
}

.status-fail {
  border-color: #ff5a5f;
  box-shadow: 0 0 25px rgba(255, 90, 95, 0.2);
}

.status-unknown {
  border-color: #646cff;
  box-shadow: 0 0 25px rgba(100, 108, 255, 0.2);
}

.error {
  color: #ff5a5f;
}

@media (max-width: 600px) {
  .dashboard__header {
    flex-direction: column;
  }

  .dashboard__actions {
    width: 100%;
    justify-content: space-between;
  }
}
