:root {
  --status-bg: rgba(255,255,255,0.04);
  --status-border: rgba(255,255,255,0.12);
  --status-text: #f5f7fb;
  --status-muted: #9ca3af;
  --status-accent: #ff4d6d;
  --status-good: #00f5a0;
  --status-warn: #f6c344;
  --status-bad: #ff6b6b;
}

.statusbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-items: center;
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  padding: 4px 6px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  min-width: 280px;
  max-width: 320px;
}

.status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  color: var(--status-text);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.status-pill .label {
  color: var(--status-muted);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

.status-pill .value {
  font-size: 10px;
  font-weight: 700;
  color: var(--status-text);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.status-pill:hover {
  background: linear-gradient(135deg, rgba(255,77,109,0.1), rgba(0,245,160,0.05));
  border-color: rgba(255,77,109,0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,77,109,0.2);
}

.status-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.status-pill:hover::before {
  left: 100%;
}

.status-pill .trend-up { color: var(--status-good); }
.status-pill .trend-warn { color: var(--status-warn); }
.status-pill .trend-down { color: var(--status-bad); }

.status-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.status-progress .bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.status-progress .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--status-accent), var(--status-good));
  width: 0%;
  transition: width 200ms ease;
}

.status-health {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-health .bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.status-health .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  width: 100%;
  transition: width 200ms ease;
}

.status-warrant .bar span {
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.status-district .value {
  white-space: normal;
  word-break: break-word;
}

/* Mobile Responsive Statusbar */
@media (max-width: 768px) {
  .statusbar {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px 4px;
    border-radius: 8px;
    min-width: 260px;
    max-width: 300px;
  }
  
  .status-pill {
    padding: 2px 4px;
    border-radius: 4px;
  }
  
  .status-pill .label {
    font-size: 8px;
  }
  
  .status-pill .value {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .statusbar {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 2px 3px;
    min-width: 240px;
    max-width: 280px;
  }
  
  .status-pill {
    padding: 2px 3px;
  }
  
  .status-pill .label {
    font-size: 7px;
    letter-spacing: 0.01em;
  }
  
  .status-pill .value {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .statusbar {
    min-width: 220px;
    max-width: 260px;
  }
  
  .status-pill .label {
    font-size: 6px;
  }
  
  .status-pill .value {
    font-size: 7px;
  }
}
