/* =====================================================================
   VALOENT — Shared design system
   Distinct from Valorest's forest-green/cream identity. Valoent is a
   capacity-and-trust exchange, not a listings site: the palette leans
   on ledger navy (precision, contracts) with a brass accent (verified
   status) and a single teal "available" signal, since availability is
   the product's core differentiator.
   ===================================================================== */

:root {
  --ink: #121A2B;         /* primary text */
  --navy: #1B2D4F;        /* brand / primary actions */
  --navy-dark: #101B30;
  --slate: #5B6B85;       /* secondary text */
  --slate-light: #8B96AA;
  --brass: #B4863A;       /* verification / trust accent */
  --brass-light: #EFE2C8;
  --teal: #2F7566;        /* availability / positive status */
  --teal-light: #DCEDE8;
  --amber: #C0812E;       /* pending / attention */
  --amber-light: #F5E6CE;
  --red: #A8412F;         /* dispute / rejected */
  --red-light: #F3DDD7;
  --paper: #F6F4EF;       /* page background */
  --card: #FFFFFF;
  --line: #E1DCCF;
  --radius: 10px;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }

/* ---------- App shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--navy-dark);
  color: #E8EAF0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar .brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  padding: 0 12px 20px;
}

.sidebar .brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--slate-light);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #C6CCDA;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: var(--brass); color: #1B1405; font-weight: 600; }

.sidebar-foot {
  margin-top: auto;
  padding: 12px;
  font-size: 0.78rem;
  color: var(--slate-light);
}

.main {
  padding: 28px 40px 60px;
  max-width: 1100px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill.teal { background: var(--teal-light); color: var(--teal); }
.pill.brass { background: var(--brass-light); color: var(--brass); }
.pill.amber { background: var(--amber-light); color: var(--amber); }
.pill.red { background: var(--red-light); color: var(--red); }

/* ---------- Cards / sections ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.card .sub { color: var(--slate); font-size: 0.88rem; margin-bottom: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 5px;
}

input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--paper);
  margin-bottom: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

button.btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

button.btn:hover { background: var(--navy-dark); }
button.btn.secondary { background: transparent; color: var(--navy); border: 1px solid var(--line); }
button.btn.ghost { background: none; color: var(--slate); border: none; padding: 6px 10px; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; color: var(--slate); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--slate);
}
.empty-state h3 { font-family: var(--font-body); font-size: 1rem; color: var(--ink); margin-bottom: 6px; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }

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

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
