:root {
  font-family: Inter, system-ui, sans-serif;
  color: #e5e7eb;
  background: #101522;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 230px;
  padding: 28px 20px;
  background: #171f30;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}

.sidebar h2 {
  color: #67e8b0;
  margin-bottom: 45px;
}

nav {
  display: grid;
  gap: 12px;
}

nav a {
  color: #aab6c9;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
}

nav a:hover {
  background: #263248;
  color: white;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.8;
}

.sidebar-footer span {
  color: #8795aa;
}

main {
  width: calc(100% - 230px);
  margin-left: 230px;
  padding: 35px;
  max-width: 1500px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

h1 {
  font-size: 30px;
  margin: 0;
}

h2 {
  font-size: 19px;
  margin-bottom: 20px;
}

header p {
  color: #8795aa;
}

.status {
  color: #67e8b0;
  font-size: 13px;
}

.dot {
  display: inline-block;
  background: #67e8b0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
}

section {
  margin-bottom: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: #1b2537;
  border: 1px solid #29364b;
  border-radius: 12px;
  padding: 22px;
}

.card span {
  color: #9aa8bb;
  font-size: 13px;
}

.card strong {
  display: block;
  margin-top: 12px;
  font-size: 25px;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.service-card {
  background: #1b2537;
  border: 1px solid #29364b;
  border-radius: 12px;
  padding: 20px;
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  color: #9aa8bb;
  font-size: 13px;
}

.service-card a {
  color: #67e8b0;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
}

.online {
  color: #67e8b0;
}

.offline,
.error {
  color: #fb7185;
}

.system-info p {
  color: #9aa8bb;
}

.system-info strong {
  color: white;
  font-size: 14px;
  display: inline;
}

footer {
  display: flex;
  justify-content: space-between;
  color: #75839a;
  font-size: 12px;
  padding: 20px 0;
}

@media (max-width: 850px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 12px;
  }

  .sidebar h2 {
    margin: 0 0 10px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-footer {
    display: none;
  }

  body {
    display: block;
  }

  main {
    width: 100%;
    margin: 0;
    padding: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  header {
    align-items: flex-start;
    flex-direction: column;
  }
}
