/* hAbIta — tema immobiliare pulito (Bootstrap 5 override) */
:root {
  --habita-sidebar: #1a2f2a;
  --habita-sidebar-text: #e8f0ee;
  --habita-accent: #2d6a5a;
  --habita-accent-hover: #245548;
  --habita-bg: #f4f7f6;
  --habita-card-border: rgba(26, 47, 42, 0.08);
}

body {
  background-color: var(--habita-bg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
}

.habita-sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--habita-sidebar) 0%, #0f1c19 100%);
  color: var(--habita-sidebar-text);
  padding: 1.25rem 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
}

.habita-sidebar .nav-link {
  color: rgba(232, 240, 238, 0.85);
  border-radius: 0.5rem;
  margin: 0.15rem 0.75rem;
  padding: 0.55rem 1rem;
}

.habita-sidebar .nav-link:hover,
.habita-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.habita-brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.habita-main {
  padding: 1.5rem 1.75rem;
}

@media (min-width: 992px) {
  .habita-main {
    padding: 2rem 2.5rem;
  }
}

.habita-card {
  border: 1px solid var(--habita-card-border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(26, 47, 42, 0.06);
}

.btn-habita-primary {
  background-color: var(--habita-accent);
  border-color: var(--habita-accent);
  color: #fff;
}

.btn-habita-primary:hover {
  background-color: var(--habita-accent-hover);
  border-color: var(--habita-accent-hover);
  color: #fff;
}

.habita-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--habita-sidebar);
}

.habita-alert-doc {
  border-left: 4px solid #c9a227;
  background: #fffdf5;
}
