/* ════════════════════════════════════════
   pages.css — Styles for inner pages:
   Users, Listings, Transactions, Reports
   ════════════════════════════════════════ */

/* ── Page container (swapped in by router) ── */
.page { display: none; }
.page.active { display: block; }

/* ── Page toolbar ── */
.page-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-toolbar .spacer { flex: 1; }

.filter-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border 0.15s;
}

.filter-select:focus { border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: white; }
.btn-ghost   { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn svg     { width: 15px; height: 15px; fill: currentColor; }

/* ── Page search bar (wider, inside toolbar) ── */
.page-search {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
  height: 36px;
  width: 240px;
}

.page-search svg { width: 14px; height: 14px; fill: var(--muted); flex-shrink: 0; }

.page-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  width: 100%;
}

.page-search input::placeholder { color: var(--muted); }

/* ── Full-width card table ── */
.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.page-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.page-card-title { font-size: 13.5px; font-weight: 600; }
.page-count      { font-size: 12px; color: var(--muted); font-family: var(--mono); }

.full-table { width: 100%; border-collapse: collapse; }

.full-table thead th {
  padding: 10px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.full-table thead th:hover { color: var(--text); }

.full-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.13s;
  cursor: pointer;
}

.full-table tbody tr:last-child { border-bottom: none; }
.full-table tbody tr:hover      { background: var(--surface2); }
.full-table td { padding: 12px 18px; font-size: 13px; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.page-btns { display: flex; gap: 4px; }

.page-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.13s;
  display: flex; align-items: center; justify-content: center;
}

.page-btn:hover  { background: var(--surface2); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── User avatar cell ── */
.user-cell-lg { display: flex; align-items: center; gap: 10px; }

.avatar-lg {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

.user-cell-name  { font-size: 13px; font-weight: 500; }
.user-cell-email { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── Role badge ── */
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--mono);
}

.role-seller { background: var(--blue-dim);   color: var(--blue);   }
.role-buyer  { background: var(--green-dim);  color: var(--green);  }
.role-both   { background: var(--accent-dim); color: var(--accent); }

/* ── Listing image placeholder ── */
.listing-thumb {
  width: 36px; height: 36px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--surface3);
}

/* ── Reports severity ── */
.sev-high   { background: var(--red-dim);    color: var(--red);   }
.sev-medium { background: var(--amber-dim);  color: var(--amber); }
.sev-low    { background: var(--blue-dim);   color: var(--blue);  }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state svg   { width: 40px; height: 40px; fill: var(--border); margin-bottom: 12px; }
.empty-state p     { font-size: 13px; }
