:root {
  --sidebar-width: 220px;
}

body {
  background: #f4f5f7;
  font-size: .9rem;
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: #172b4d;
  color: #fff;
}

.sidebar .navbar-brand {
  color: #fff;
  padding: 0;
}

.sidebar .nav-link {
  color: rgba(255,255,255,.65);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 2px;
  font-size: .875rem;
  transition: all .15s;
}

.sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.15);
  font-weight: 500;
}

.sidebar hr {
  border-color: rgba(255,255,255,.12);
  margin: 12px 0;
}

.sidebar .text-muted {
  color: rgba(255,255,255,.45) !important;
  font-size: .75rem;
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.stat-card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-radius: 10px;
  transition: box-shadow .15s;
}

.stat-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6c757d;
  margin-top: 2px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.list-group-item {
  border-left: none;
  border-right: none;
}

.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-radius: 10px;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 600;
  padding: 12px 16px;
}

.border-danger-subtle {
  border-color: #f1aeb5 !important;
}

.bg-danger-subtle {
  background-color: #f8d7da;
}

.text-danger-emphasis {
  color: #b02a37;
}

.chart-wrap {
  position: relative;
  height: 240px;
  width: 100%;
}

.font-monospace {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

@media (max-width: 768px) {
  .sidebar {
    width: 56px;
    overflow: hidden;
  }
  .sidebar .navbar-brand span,
  .sidebar .nav-link span:not(.bi),
  .sidebar hr + div {
    display: none;
  }
  .sidebar .nav-link {
    text-align: center;
    padding: 8px;
  }
  .sidebar .nav-link .bi {
    margin-right: 0 !important;
    font-size: 1.2rem;
  }
}
