:root {
  --bg-app: #f3f4f6;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --primary: #2563eb;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}
.sidebar .brand { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.sidebar nav { display: grid; gap: 0.75rem; }
.sidebar a { color: var(--text-main); text-decoration: none; }
.app-main { flex: 1; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.page-content { padding: 1.5rem; }
.card, .auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}
.auth-card {
  max-width: 420px;
  margin: 4rem auto;
}
.auth-form { display: grid; gap: 1rem; }
.auth-form label { display: grid; gap: 0.5rem; }
.auth-form input, button {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
button {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
}
.dashboard-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.page-head,
.property-detail-head,
.form-actions,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.list-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.status-chip { padding: 0.45rem 0.8rem; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  text-decoration: none;
}
.button-link.secondary { background: #e5e7eb; color: var(--text-main); }
.muted { color: var(--text-muted); }
.stack-form { display: grid; gap: 1rem; }
.stack-form label { display: grid; gap: 0.45rem; }
.stack-form textarea,
.stack-form input { font: inherit; padding: 0.8rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); }
.empty-state { margin-top: 1rem; }
.flash-stack { padding: 1rem 1.5rem 0; }
.flash { background: #fee2e2; color: #991b1b; padding: 0.75rem 1rem; border-radius: 12px; }
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
