/* Level Status Component Styles */

.level-status-container {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 100;
  pointer-events: none;
}

.level-status-card {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.level-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.level-status-title {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.level-status-card .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}

.level-status-card .pill-green {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.level-status-card .pill-red {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.pill-dot.red {
  background: #ef4444;
}

.level-status-gauge {
  position: relative;
  width: 100%;
  height: 80px;
  margin-top: 4px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge-active {
  transition: stroke-dashoffset 0.8s ease-out;
}

.gauge-needle {
  transform-origin: 100px 80px;
  transition: transform 0.8s ease-out;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.gauge-label-left {
  margin-left: 4px;
}

.gauge-label-right {
  margin-right: 4px;
}

@media (max-width: 640px) {
  .level-status-container {
    top: 12px;
    left: 12px;
  }

  .level-status-card {
    padding: 12px 14px;
    min-width: 180px;
  }

  .level-status-gauge {
    height: 70px;
  }
}
