/* Fleet Hub dashboard - mobile-first, dark-friendly */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #101418;
  color: #e8ecef;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #161c22;
  border-bottom: 1px solid #26303a;
  flex-wrap: wrap;
}

h1 { font-size: 20px; margin: 0; }

.hdr-right { display: flex; align-items: center; gap: 8px; }

.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #1f2a33;
  color: #9fb3c3;
}
.pill.bad { background: #4a2222; color: #ff9b9b; }

input[type="password"] {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #33414d;
  border-radius: 6px;
  background: #0d1117;
  color: #e8ecef;
  font-size: 14px;
}

button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #33414d;
  border-radius: 6px;
  background: #1f2a33;
  color: #e8ecef;
  font-size: 14px;
  cursor: pointer;
}
button:hover { background: #2a3945; }
button.active { background: #2c5f8a; border-color: #3f82b8; }

.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: #131920;
  border-bottom: 1px solid #26303a;
  flex-wrap: wrap;
}

main { padding: 16px; max-width: 1100px; margin: 0 auto; }

.view { display: none; }
.view.active { display: block; }

h2 { font-size: 16px; margin: 0 0 12px; color: #c6d2db; }
.count { color: #7f95a5; font-size: 13px; font-weight: normal; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.card {
  background: #161c22;
  border: 1px solid #26303a;
  border-radius: 8px;
  padding: 12px 14px;
}

.card h3 { margin: 0 0 6px; font-size: 15px; }

.meta { font-size: 13px; color: #9fb3c3; margin: 2px 0; }
.sum { font-size: 13px; color: #c6d2db; margin-top: 6px; word-break: break-word; }

.status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.status.queued { background: #3a3320; color: #e8c96a; }
.status.in_progress { background: #1f3a55; color: #7fc3ff; }
.status.done { background: #1e3a28; color: #7fe0a8; }
.status.failed { background: #4a2222; color: #ff9b9b; }

.stale { color: #e8a05a; }

.caps { margin-top: 8px; font-size: 13px; }
.lbl { color: #7f95a5; margin-right: 6px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #1f2a33;
  border: 1px solid #33414d;
  color: #b8cad8;
}

.empty { color: #7f95a5; font-size: 14px; padding: 20px 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #232c35;
  border: 1px solid #3a4754;
  color: #e8ecef;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
