/* 100 Problemas - Tema visual */
:root {
  --azul-escuro: #0b2545;
  --azul-medio: #13315c;
  --dourado: #f5a623;
  --cinza-claro: #f4f6f9;
  --texto-suave: #5c6b7a;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--cinza-claro);
  color: #1c2b3a;
}

a { text-decoration: none; }

.app-navbar {
  background-color: var(--azul-escuro);
}
.navbar-brand-logo {
  background: #fff;
  padding: .35rem .75rem;
  border-radius: .6rem;
  line-height: 0;
}
.footer-logo {
  background: #fff;
  padding: .4rem .8rem;
  border-radius: .6rem;
  display: inline-block;
}
.banner-promocional img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(11,37,69,.15);
}
.app-navbar .nav-link {
  font-weight: 500;
  color: rgba(255,255,255,.85) !important;
}
.app-navbar .nav-link:hover { color: #fff !important; }

.app-footer {
  background-color: var(--azul-escuro);
}
.app-footer a { color: rgba(255,255,255,.75); }
.app-footer a:hover { color: var(--dourado); }

.btn-primary {
  background-color: var(--azul-escuro);
  border-color: var(--azul-escuro);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--azul-medio);
  border-color: var(--azul-medio);
}

.btn-warning {
  background-color: var(--dourado);
  border-color: var(--dourado);
  color: #1c2b3a;
}
.btn-warning:hover { color: #1c2b3a; filter: brightness(0.95); }

.text-dourado { color: var(--dourado); }
.bg-azul { background-color: var(--azul-escuro); }

.hero-section {
  background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-medio) 100%);
  color: #fff;
  padding: 4.5rem 0 6rem;
}
.hero-section h1 { font-weight: 800; }
.hero-busca-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(11,37,69,.25);
  color: #1c2b3a;
}

.card-categoria {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(11,37,69,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card-categoria:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11,37,69,.15);
}
.card-categoria .icone {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(11,37,69,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--azul-escuro);
}

.secao-titulo { font-weight: 700; color: var(--azul-escuro); }

.card-beneficio {
  border: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11,37,69,.06);
}

.step-numero {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--dourado);
  color: #1c2b3a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.badge-status { font-size: .8rem; padding: .45em .75em; }

.card-dashboard {
  border: none;
  border-radius: .9rem;
  box-shadow: 0 6px 18px rgba(11,37,69,.08);
}

.sidebar-painel {
  background: #fff;
  border-radius: .9rem;
  box-shadow: 0 6px 18px rgba(11,37,69,.06);
}
.sidebar-painel .nav-link {
  color: #1c2b3a;
  border-radius: .6rem;
  padding: .6rem .9rem;
  font-weight: 500;
}
.sidebar-painel .nav-link.active,
.sidebar-painel .nav-link:hover {
  background: var(--azul-escuro);
  color: #fff;
}

.card-alerta-piscante {
  border: 2px solid #dc3545 !important;
  animation: piscarAlerta 1.6s ease-in-out infinite;
}
@keyframes piscarAlerta {
  0%, 100% { box-shadow: 0 6px 18px rgba(220,53,69,.12); }
  50% { box-shadow: 0 6px 26px rgba(220,53,69,.55); }
}

/* estado de espera calmo ("aguarde bem") - distinto do alerta piscante, que e "acao urgente necessaria" */
.card-buscando {
  background: var(--cinza-claro);
  border-radius: .9rem;
  animation: pulsarBuscando 2.4s ease-in-out infinite;
}
@keyframes pulsarBuscando {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}

.form-label { font-weight: 500; }

footer.app-footer h5, footer.app-footer h6 { color: #fff; }

/* ---------------------------------------------------------------------
   Paineis com cara de app (cliente/prestador): tema claro, fontes
   menores, navegacao inferior fixa no mobile (estilo app nativo).
   --------------------------------------------------------------------- */
body.body-painel {
  font-size: .92rem;
}
body.body-painel .secao-titulo,
body.body-painel h1 {
  font-size: 1.3rem;
}
body.body-painel h5 { font-size: 1rem; }
body.body-painel h6 { font-size: .85rem; }
body.body-painel .fs-4 { font-size: 1.15rem !important; }
body.body-painel .fs-5 { font-size: 1.05rem !important; }

.bottom-nav-app {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid rgba(11,37,69,.08);
  box-shadow: 0 -2px 12px rgba(11,37,69,.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 1030;
}
.bottom-nav-app .nav-item-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .45rem .25rem .35rem;
  color: var(--texto-suave);
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-decoration: none;
  border: none;
  background: none;
}
.bottom-nav-app .nav-item-app i { font-size: 1.2rem; }
.bottom-nav-app .nav-item-app.active { color: var(--azul-escuro); }

@media (max-width: 991.98px) {
  body.body-painel { padding-bottom: 62px; }
}

/* Calendario da agenda do prestador */
.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .35rem;
}
.calendario-cabecalho {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--texto-suave);
  text-transform: uppercase;
  padding-bottom: .35rem;
}
.calendario-dia {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: .6rem;
  background: var(--cinza-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.calendario-dia.vazio { background: transparent; }
.calendario-dia.hoje {
  border: 2px solid var(--azul-escuro);
  font-weight: 700;
}
.calendario-dia.tem-evento {
  background: rgba(245,166,35,.15);
  font-weight: 600;
}
.calendario-dia.tem-evento:hover { background: rgba(245,166,35,.3); }
.calendario-dia .badge-eventos {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--dourado);
  color: #1c2b3a;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
