.vvm-admin {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vvm-admin__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.vvm-admin__title {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}

.vvm-admin__title h1 {
  margin: 0;
}

.vvm-admin__now {
  font-size: .85rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.vvm-admin__actions a {
  display: inline-block;
  padding: .5rem 1rem;
  margin-left: .5rem;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

.vvm-admin__banner {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Empty = most severe: solid red plate, white text, strongest visual weight. */
.vvm-admin__banner--empty {
  background: #c0392b;
  border: 2px solid #a93226;
  color: #fff;
}

/* Low = alerts firing now: red but lighter than empty, matches the Low pill. */
.vvm-admin__banner--low {
  background: #f8d7da;
  border: 2px solid #c0392b;
  color: #721c24;
}

.vvm-admin__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.vvm-admin__card {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 6px solid #999;
  border-radius: 4px;
  padding: 1.25rem;
  position: relative;
}

.vvm-admin__card--healthy { border-left-color: #2ecc71; }
.vvm-admin__card--approaching { border-left-color: #f39c12; background: #fffaf0; }
.vvm-admin__card--low { border-left-color: #c0392b; background: #fff5f4; }
.vvm-admin__card--empty { border-left-color: #c0392b; background: #ffecec; }

.vvm-admin__card-title {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
}

.vvm-admin__pill {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.vvm-admin__pill--healthy { background: #d4edda; color: #155724; }
.vvm-admin__pill--approaching { background: #fff3cd; color: #856404; }
.vvm-admin__pill--low { background: #f8d7da; color: #721c24; }
.vvm-admin__pill--empty { background: #c0392b; color: #fff; }
.vvm-admin__pill--inactive { background: #e0e0e0; color: #555; }

.vvm-admin__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1rem;
  margin: .75rem 0;
}

.vvm-admin__metric {
  font-size: .85rem;
  color: #555;
}

.vvm-admin__metric strong {
  display: block;
  font-size: 1.5rem;
  color: #222;
  margin-top: .15rem;
}

.vvm-admin__card--low .vvm-admin__metric--available strong,
.vvm-admin__card--empty .vvm-admin__metric--available strong {
  color: #c0392b;
}

.vvm-admin__sub {
  font-size: .8rem;
  color: #777;
  margin-top: .5rem;
  line-height: 1.5;
}

.vvm-admin__sub-row { display: block; }

.vvm-admin__card-actions {
  margin-top: .75rem;
  font-size: .85rem;
}

.vvm-admin__card-actions a {
  color: #0073aa;
  margin-right: 1rem;
}

.vvm-admin__uploads-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 1rem;
}

.vvm-admin__uploads-table th,
.vvm-admin__uploads-table td {
  text-align: left;
  padding: .5rem .75rem;
  border-bottom: 1px solid #eee;
  font-size: .9rem;
}

.vvm-admin__uploads-table th {
  background: #f7f7f7;
  font-weight: 600;
}

.vvm-admin__footer {
  margin-top: 2rem;
  font-size: .85rem;
  color: #777;
}
