/* RoamVibe Ops — Detached Professional Owner Admin Console (PC + Mobile PWA) */
:root {
  --bg: #f1f5f9;
  --bg-alt: #e2e8f0;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #cbd5e1;
  --primary: #1d4ed8;
  --primary-bg: #eff6ff;
  --verified: #059669;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 26px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #1e293b;
  --surface: #111827;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --primary: #3b82f6;
  --primary-bg: rgba(59, 130, 246, 0.15);
  --verified: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 76px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.ops-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ops-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ops-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  font-size: 1.05rem;
}
.ops-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  letter-spacing: 0.04em;
}
.ops-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ops-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.15s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--primary); }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-dark { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-xs { padding: 5px 10px; font-size: 0.76rem; border-radius: 8px; }

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.input, .select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
.input:focus, .select:focus { outline: none; border-color: var(--primary); }

.login-card {
  max-width: 470px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 0.74rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.kpi-val { font-size: 1.7rem; font-weight: 850; color: var(--primary); margin: 3px 0; }
.kpi-meta { font-size: 0.75rem; color: var(--text-light); }

.alert-strip {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 0.86rem;
  border: 1px solid transparent;
}
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert-warn { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.alert-danger { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
[data-theme="dark"] .alert-info { background: rgba(37,99,235,0.2); color: #bfdbfe; }
[data-theme="dark"] .alert-warn { background: rgba(217,119,6,0.2); color: #fde68a; }
[data-theme="dark"] .alert-danger { background: rgba(220,38,38,0.22); color: #fecaca; }

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.tab-btn.active { background: var(--primary); color: #fff; }
.pane { display: none; }
.pane.active { display: block; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.12rem; font-weight: 850; margin-bottom: 4px; }
.sub { font-size: 0.83rem; color: var(--text-muted); }
.list { display: grid; gap: 10px; }
.row-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}
.row-card.unread { border-left: 4px solid #2563eb; background: var(--primary-bg); }
.empty {
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--primary-bg);
  color: var(--primary);
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #b91c1c; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 650;
}
.checkbox-grid label { display: flex; align-items: center; gap: 6px; text-transform: none; margin: 0; cursor: pointer; }

.code-box {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.76rem;
  overflow-x: auto;
}
.code-box pre { margin-top: 8px; white-space: pre-wrap; line-height: 1.5; color: #93c5fd; }

/* Mobile Native-Style Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 4px;
  grid-template-columns: repeat(6, 1fr);
}
.mob-tab-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  cursor: pointer;
}
.mob-tab-btn span.ico { font-size: 1.15rem; }
.mob-tab-btn.active { color: #60a5fa; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tabs-bar { display: none; }
  .mobile-bottom-nav { display: grid; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
}
