/* FullTimeTaxi — 司機端（手機優先，單欄） */

.driver-body {
  margin: 0;
  min-height: 100dvh;
  background: #0f1115;
  color: #f4f5f7;
  font-family: var(--font-sans, -apple-system, "Helvetica Neue", "Noto Sans HK", sans-serif);
  -webkit-text-size-adjust: 100%;
}

/* ── 登入 ─────────────────────────────────────────────── */
.driver-login {
  max-width: 380px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}
.brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.brand-name { font-weight: 700; font-size: 17px; }
.form-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  color: #9aa1ac;
}
.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid #2a2e36;
  background: #171a20;
  color: #f4f5f7;
  font-size: 16px; /* iOS：少於 16px 會自動放大 */
}
.form-input:focus { outline: 2px solid #c8102e; outline-offset: 1px; }
.input-code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.form-hint { margin: 8px 0 0; font-size: 12px; color: #8b929d; }
.form-hint code {
  background: rgba(200, 16, 46, 0.15);
  color: #ff8a9c;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.16);
  color: #ffb3c0;
  font-size: 13.5px;
}
.driver-foot { margin-top: 22px; text-align: center; font-size: 12px; color: #6f7683; }

/* ── 主畫面 ───────────────────────────────────────────── */
.d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #1c2027;
}
.d-brand { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.d-tag {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #c8102e;
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.d-who { font-size: 12px; color: #8b929d; margin-top: 3px; }
.d-logout {
  border: 1px solid #2a2e36;
  background: transparent;
  color: #9aa1ac;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
}

.d-main { padding: 14px 16px 32px; display: flex; flex-direction: column; gap: 12px; }

.d-card {
  background: #171a20;
  border: 1px solid #1f242c;
  border-radius: 16px;
  padding: 16px;
}
.d-card-title { margin: 0 0 10px; font-size: 13px; color: #9aa1ac; font-weight: 600; }

/* 上線狀態 */
.d-status { text-align: center; }
.d-state { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.d-status.is-online .d-state { color: #38d17a; }
.d-since { font-size: 12.5px; color: #8b929d; margin-top: 2px; min-height: 16px; }

.d-toggle {
  width: 100%;
  margin: 14px 0 0;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: #c8102e;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.d-toggle.is-online { background: #2b3038; color: #e8eaee; }
.d-toggle:disabled { opacity: 0.6; }

.d-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: #7c828d; }
.d-note.is-error { color: #ffb3c0; }
.d-note-warn { color: #ffcf8a; }

/* 工時 */
.d-hours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.d-metric {
  background: #171a20;
  border: 1px solid #1f242c;
  border-radius: 14px;
  padding: 12px 14px;
}
.d-metric-value { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-metric-value.d-warn { color: #ffcf8a; }
.d-metric-label { display: block; margin-top: 3px; font-size: 11.5px; color: #7c828d; }

/* 派單卡 */
.d-offer { border-color: #c8102e; box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.4); }
.d-offer-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff8a9c;
}
.d-offer-title { margin: 6px 0 10px; font-size: 18px; line-height: 1.35; }
.d-offer-body { display: grid; gap: 6px; font-size: 13px; }
.d-offer-body div { display: flex; justify-content: space-between; gap: 12px; }
.d-offer-body span { color: #8b929d; }
.d-offer-body a { color: #6cb6ff; text-decoration: none; }

.d-countdown {
  margin: 12px 0 0;
  font-size: 34px;
  font-weight: 750;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #ffcf8a;
}

.d-offer-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 12px; }
.d-btn {
  padding: 15px;
  border: 0;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
}
.d-btn-accept { background: #38d17a; color: #06210f; }
.d-btn-reject { background: #2b3038; color: #e8eaee; }

/* 行程 */
.d-trips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.d-trips li {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1f242c;
}
.d-trips li:last-child { border-bottom: 0; padding-bottom: 0; }
.d-trip-route { font-size: 13.5px; font-weight: 600; }
.d-trip-meta { font-size: 11.5px; color: #7c828d; }
.d-empty { font-size: 12.5px; color: #6f7683; }

/* 自帶按鈕與品牌標記：司機端不載入 portal.css，所以這裡要自己定義 */
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #c8102e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 650;
  background: #2b3038;
  color: #e8eaee;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: #c8102e; color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 17px 16px; font-size: 17px; border-radius: 14px; }
.btn:disabled { opacity: 0.55; }

/* 有 display 規則的元素仍然要守 [hidden] */
[hidden] { display: none !important; }
