* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7fb;
  color: #172033;
  font-family: Inter, Arial, sans-serif;
}

header {
  background: #ffffff;
  border-bottom: 1px solid #e4e8ef;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 25px;
}

header span {
  color: #687386;
  font-size: 13px;
}

.status {
  font-size: 13px;
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #20a464;
  border-radius: 50%;
  margin-right: 6px;
}

main {
  max-width: 1500px;
  margin: auto;
  padding: 28px 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.card {
  background: white;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  padding: 18px;
}

.card label {
  display: block;
  color: #6d7788;
  font-size: 12px;
  margin-bottom: 8px;
}

.card strong {
  font-size: 24px;
}

.panel {
  background: white;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

select {
  border: 1px solid #d7dce5;
  background: white;
  padding: 7px 10px;
  border-radius: 7px;
}

.chart {
  height: 360px;
  padding: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  background: #fafbfc;
  color: #687386;
  font-weight: 600;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
}

.ip {
  font-family: monospace;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge.download {
  background: #e8f5ee;
  color: #147a45;
}

.badge.upload {
  background: #eef1ff;
  color: #3c4e9c;
}

footer {
  text-align: center;
  padding: 20px;
  color: #7b8492;
  font-size: 12px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    padding: 18px;
  }

  header {
    padding: 18px;
  }
}

@media (max-width: 550px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
