:root {
  /* Identidade visual Pátio Esportes — tom verde, paleta discreta */
  --brand: #3f846a;
  --brand-dark: #2d6350;
  --brand-light: #e9f2ee;
  --brand-charcoal: #2b2f2e;
  --brand-gold: #b9975b;
  /* mantidos por compatibilidade, não usados como cor principal */
  --brand-orange: #b9975b;
  --brand-orange-dark: #9c7c46;
  --brand-yellow: #e9f2ee;
  --brand-black: #2b2f2e;
}

body {
  background-color: #f4f6fb;
}

body.has-bottom-nav {
  padding-bottom: 70px;
  background-image:
    linear-gradient(rgba(244, 246, 251, 0.93), rgba(244, 246, 251, 0.93)),
    url('../img/patio-foto.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.login-page {
  margin: 0;
}

body.login-page main {
  padding: 0 !important;
}

.app-navbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.brand-logo {
  height: 24px;
  width: auto;
  /* logo original é preto; inverte para branco para ler bem no fundo azul */
  filter: brightness(0) invert(1);
}

.brand-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 0.7rem;
  padding-left: 0.7rem;
}

/* Botões e links na cor de marca */
.btn-primary {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}
.btn-outline-primary {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.btn-outline-primary:hover {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
a {
  color: var(--brand);
}
.text-primary {
  color: var(--brand) !important;
}
.form-check-input:checked {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}
::selection {
  background: var(--brand-yellow);
}

.card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.stat-card {
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #fff;
}

.stat-card-neutral {
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
  color: inherit;
}

.stat-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-space {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  z-index: 1030;
}

.bottom-nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.62rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav a i {
  font-size: 1.1rem;
}

.bottom-nav-add i {
  font-size: 2.4rem !important;
  color: var(--brand);
  margin-top: -18px;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--brand-dark), var(--brand));
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.login-card {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
  border-radius: 18px;
}

.reserva-row:hover {
  background-color: #f1f5f9;
}

@media (max-width: 991.98px) {
  main { padding-bottom: 90px !important; }
}
