/* ===== Trip Bid Scheduling – minimal, modern CSS ===== */
:root{
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --pending: #f59e0b;
  --awarded: #10b981;
  --rejected: #ef4444;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b1220; --card:#0f172a; --ink:#e5e7eb; --muted:#94a3b8;
    --line:#1f2937; --accent:#60a5fa; --accent-ink:#0b1220;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container{
  max-width: 960px; margin: 24px auto; padding: 0 16px;
}

h1{
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15; margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.subtitle{
  color: var(--muted); margin-bottom: 20px;
}

/* Card/table wrapper gives shadow + rounded corners */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(2,6,23,.08);
  overflow: hidden;
}

/* Table styles */
.table-wrap{ overflow-x:auto; }
table{
  width: 100%; border-collapse: collapse; min-width: 560px;
}
thead th{
  text-align: left; font-weight: 700; font-size: 14px;
  color: var(--muted); background: color-mix(in srgb, var(--card), var(--line) 40%);
  position: sticky; top: 0; z-index: 1;
}
th, td{ padding: 12px 14px; border-bottom: 1px solid var(--line); }
tbody tr:hover{ background: color-mix(in srgb, var(--line), transparent 60%); }

td.nowrap{ white-space: nowrap; }
td.truncate{ max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Zebra striping (optional) */
tbody tr:nth-child(even){ background: color-mix(in srgb, var(--card), var(--line) 10%); }

/* Status badges */
.badge{
  display: inline-flex; align-items:center; gap:.4em;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  letter-spacing: .02em; white-space: nowrap;
  background: var(--line); color: var(--muted);
}
.badge.pending{ background: color-mix(in srgb, var(--pending) 22%, white 78%); color:#7c4a03; }
.badge.awarded{ background: color-mix(in srgb, var(--awarded) 22%, white 78%); color:#064e3b; }
.badge.rejected{ background: color-mix(in srgb, var(--rejected) 20%, white 80%); color:#7f1d1d; }

/* Small utility row for counts/filters */
.toolbar{
  display:flex; justify-content: space-between; align-items:center;
  gap:12px; padding: 12px 14px; border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card), var(--line) 30%), var(--card));
}
.counter{ color: var(--muted); font-size: 14px; }
.button{
  appearance: none; border:1px solid var(--line); background: var(--card);
  padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:600;
}
.button:hover{ border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
