/* asm-theme.css — Shared theme for ASM Logistics pages */

/* =========================
   Theme tokens
========================= */
:root{
  --bg:#0b0f17;
  --panel:#0f172a;
  --card:#111827;

  --text:#e5e7eb;
  --muted:#9ca3af;
  --muted2:#6b7280;
  --line:rgba(200,205,210,.18);
  --line2:rgba(200,205,210,.26);

  --orange:#f97316;
  --orangeHover:#ea580c;
  --blue:#3b82f6;
  --green:#22c55e;
  --yellow:#fbbf24;
  --red:#ef4444;

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 12px;

  /* Background dim over map */
  --dimA: rgba(11,15,23,.78);
  --dimB: rgba(11,15,23,.90);
  --dimA_mobile: rgba(11,15,23,.82);
  --dimB_mobile: rgba(11,15,23,.92);

  /* Map images */
  --mapDesktop: url("https://www.viewsignage.com/wp-content/uploads/2026/03/map-background.jpg");
  --mapMobile: url("https://www.viewsignage.com/wp-content/uploads/2026/03/map-background-mobile.jpg");
}

/* =========================
   Light mode (ready for toggle later)
   We’ll add a button + JS in step 2.
========================= */
body.light{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --card:#ffffff;

  --text:#0b0f17;
  --muted:#4b5563;
  --muted2:#6b7280;

  --line:rgba(15,23,42,.14);
  --line2:rgba(15,23,42,.22);

  --shadow: 0 18px 60px rgba(0,0,0,.12);

  /* reduce dimming in light mode */
  --dimA: rgba(245,247,251,.35);
  --dimB: rgba(245,247,251,.55);
  --dimA_mobile: rgba(245,247,251,.40);
  --dimB_mobile: rgba(245,247,251,.60);
}

/* =========================
   Base / Layout
========================= */
*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;

  background:
    linear-gradient(var(--dimA), var(--dimB)),
    radial-gradient(1200px 700px at 22% 10%, rgba(34,197,94,.10), transparent 58%),
    radial-gradient(900px 600px at 88% 24%, rgba(210,215,220,.14), transparent 62%),
    var(--mapDesktop),
    var(--bg);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--text);
  min-height:100vh;
  padding: 16px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

@media (max-width: 768px){
  body{
    background:
      linear-gradient(var(--dimA_mobile), var(--dimB_mobile)),
      radial-gradient(1200px 700px at 22% 10%, rgba(34,197,94,.10), transparent 58%),
      radial-gradient(900px 600px at 88% 24%, rgba(210,215,220,.14), transparent 62%),
      var(--mapMobile),
      var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.wrap{ width:min(980px, 100%); }

/* =========================
   Topbar / Brand / Status
========================= */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 6px 0 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  user-select:none;
}
.brand img{ width:34px; height:34px; border-radius:10px; }
.brand .name{ font-weight:800; letter-spacing:.2px; }
.brand .sub{ font-size:12px; color: var(--muted); margin-top:2px; }

.status,
.statuspill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(17,24,39,.45);
  border:1px solid var(--line);
  color: var(--muted);
  font-size:12px;
  white-space: nowrap;
}
body.light .status,
body.light .statuspill{
  background: rgba(255,255,255,.60);
}

.status .dot,
.statuspill .dot{
  width:8px; height:8px; border-radius:999px; background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

@media (max-width: 860px){
  .status, .statuspill{ display:none; }
}

/* =========================
   Card / Header / Titles
========================= */
.card{
  background: linear-gradient(180deg, rgba(58,62,71,.92), rgba(15,23,42,.82));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
body.light .card{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
}

.header{
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

h1,h2{
  margin:0;
  font-size: 18px;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.badge{
  width:50px;
  height:35px;
  background: url("https://www.viewsignage.com/wp-content/uploads/2026/03/truck.png") center / contain no-repeat;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: transparent;
  overflow:hidden;
  flex: 0 0 auto;
}

.small{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
}

/* =========================
   Section title / Blocks (Intake + Driver)
========================= */
.section-title,
.kicker{
  font-size: 11px;
  color: var(--muted2);
  letter-spacing:.14em;
  text-transform: uppercase;
  margin: 16px 0 10px;
}

.block{
  border:1px solid var(--line);
  background: rgba(2,6,23,.22);
  border-radius: var(--radius2);
  padding: 12px;
  margin-bottom: 12px;
}
body.light .block{
  background: rgba(255,255,255,.60);
}

.hidden{ display:none !important; }
.muted{ color: var(--muted); }

/* =========================
   Forms
========================= */
label{ font-size: 12px; color: var(--muted); }

input, select, textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(200,205,210,.22);
  background: rgba(17,24,39,.55);
  color: var(--text);
  outline: none;
}
body.light input, body.light select, body.light textarea{
  background: rgba(255,255,255,.78);
  border-color: rgba(15,23,42,.18);
}

input::placeholder, textarea::placeholder{ color: rgba(156,163,175,.75); }

input:focus, select:focus, textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.error{
  border-color: rgba(249,115,22,.75) !important;
  box-shadow: 0 0 0 4px rgba(249,115,22,.14) !important;
}

/* =========================
   Buttons (shared)
========================= */
.btn{
  border:1px solid var(--line);
  background: rgba(31,41,55,.55);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  letter-spacing:.15px;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
  user-select:none;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
body.light .btn{
  background: rgba(255,255,255,.70);
}
.btn:hover{
  transform: translateY(-1px);
  border-color: var(--line2);
  background: rgba(31,41,55,.78);
}
body.light .btn:hover{
  background: rgba(255,255,255,.88);
}
.btn:active{ transform: translateY(0px); }

.btn.primary{
  background: var(--orange);
  border-color: var(--orange);
  color: #0b0f17;
}
.btn.primary:hover{
  background: var(--orangeHover);
  border-color: var(--orangeHover);
}

.btn.blue{
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.34);
}
.btn.blue:hover{
  background: rgba(59,130,246,.22);
  border-color: rgba(59,130,246,.52);
}

.btn:disabled, .btn.disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

/* =========================
   Footer (shared)
========================= */
.privacy{
  font-size:10px;
  padding:10px 0 20px;
  color: var(--muted);
  line-height: 1.35;
  max-width: 980px;
}
.privacy a{ color: var(--orange); text-decoration:none; }
.privacy a:hover{ text-decoration:underline; }