/* ============================================================
   IGUABA JÁ — CSS BASE
   Fonte: Plus Jakarta Sans (display) + Inter (corpo)
   Paleta: laranja #fb8842 | azul #2ea5e4 | escuro #1a2535
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── VARIÁVEIS ─────────────────────────────────────────────── */
:root {
  --laranja:        #fb8842;
  --laranja-hover:  #f0722a;
  --laranja-light:  #fff4ee;
  --azul:           #2ea5e4;
  --azul-hover:     #1a8fd1;
  --azul-light:     #eaf6fd;
  --verde:          #40B69E;
  --vermelho:       #f16c80;
  --escuro:         #1a2535;
  --texto:          #3d4a5c;
  --texto-leve:     #7a8799;
  --borda:          #e8ecf0;
  --fundo:          #f5f7fb;
  --branco:         #ffffff;
  --sombra-sm:      0 2px 8px rgba(26,37,53,0.07);
  --sombra-md:      0 4px 20px rgba(26,37,53,0.10);
  --sombra-lg:      0 8px 40px rgba(26,37,53,0.13);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --fonte-display:  'Plus Jakarta Sans', sans-serif;
  --fonte-corpo:    'DM Sans', sans-serif;
  --transition:     all 0.22s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--fonte-corpo);
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--fonte-corpo); }
input, textarea, select {
  font-family: var(--fonte-corpo);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

/* ── TIPOGRAFIA ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-display);
  color: var(--escuro);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.9rem; }
p  { font-size: 0.95rem; color: var(--texto); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /*padding: 0 20px;*/
  padding: 0 10px;
}
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col-1  { flex: 0 0 calc(8.333% - 10px); }
.col-2  { flex: 0 0 calc(16.666% - 10px); }
.col-3  { flex: 0 0 calc(25% - 15px); }
.col-4  { flex: 0 0 calc(33.333% - 14px); }
.col-5  { flex: 0 0 calc(41.666% - 12px); }
.col-6  { flex: 0 0 calc(50% - 10px); }
.col-7  { flex: 0 0 calc(58.333% - 8px); }
.col-8  { flex: 0 0 calc(66.666% - 6px); }
.col-9  { flex: 0 0 calc(75% - 5px); }
.col-12 { flex: 0 0 100%; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p  { color: var(--texto-leve); font-size: 0.95rem; }

/* ── HEADER ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  box-shadow: var(--sombra-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.header-logo img { height: 38px; width: auto; }
.header-logo span {
  font-family: var(--fonte-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--escuro);
}
.header-logo span em {
  font-style: normal;
  color: var(--laranja);
}

/* Barra de busca do header */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-xl);
  padding: 0 48px 0 16px;
  font-size: 0.88rem;
  background: var(--fundo);
  color: var(--texto);
  transition: var(--transition);
}
.header-search input:focus {
  border-color: var(--azul);
  background: var(--branco);
  box-shadow: 0 0 0 3px rgba(46,165,228,0.12);
}
.header-search input::placeholder { color: var(--texto-leve); }
.header-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.header-search button:hover { background: var(--laranja-hover); }

/* Botão menu mobile — escondido no desktop */
.header-menu-btn { display: none; }

/* Nav do header */
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
}
.header-nav a:hover { background: var(--fundo); color: var(--laranja); }

/* Avatar/usuário logado */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.header-user:hover { background: var(--fundo); }
.header-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--borda);
}
.header-user span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--escuro);
}

/* ── NAVBAR CATEGORIAS (segunda linha) ──────────────────────── */
.navbar {
  background: var(--escuro);
  position: relative;
  z-index: 900;
}
.navbar-inner {
  display: flex;
  align-items: stretch;
  height: 46px;
  gap: 0;
}
.navbar-item {
  position: relative;
}
.navbar-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  transition: var(--transition);
}
.navbar-item > a i { font-size: 0.8rem; }
.navbar-item > a:hover,
.navbar-item:hover > a {
  background: rgba(255,255,255,0.08);
  color: var(--branco);
}
.navbar-item.destaque > a {
  color: var(--laranja);
  font-weight: 600;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--branco);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--sombra-lg);
  min-width: 200px;
  padding: 8px 0;
  border-top: 3px solid var(--laranja);
  z-index: 999;
}
.navbar-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.83rem;
  color: var(--texto);
  font-weight: 400;
}
.dropdown a:hover {
  background: var(--laranja-light);
  color: var(--laranja);
  padding-left: 24px;
}

/* Dropdown com colunas (mega menu) */
.dropdown-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--branco);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--sombra-lg);
  padding: 20px 24px;
  border-top: 3px solid var(--laranja);
  z-index: 999;
  min-width: 580px;
}
.navbar-item:hover .dropdown-mega { display: flex; gap: 30px; flex-wrap: wrap; }
.dropdown-mega-col { min-width: 160px; }
.dropdown-mega-col h6 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--laranja);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--borda);
}
.dropdown-mega-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.82rem;
  color: var(--texto);
}
.dropdown-mega-col a:hover { color: var(--laranja); padding-left: 4px; }

/* ── BOTÕES ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  font-family: var(--fonte-display);
  white-space: nowrap;
}
.btn-primary { background: var(--laranja); color: var(--branco); }
.btn-primary:hover { background: var(--laranja-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(251,136,66,0.35); }
.btn-secondary { background: var(--azul); color: var(--branco); }
.btn-secondary:hover { background: var(--azul-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,165,228,0.35); }
.btn-outline { background: transparent; color: var(--laranja); border: 1.5px solid var(--laranja); }
.btn-outline:hover { background: var(--laranja); color: var(--branco); }
.btn-outline-azul { background: transparent; color: var(--azul); border: 1.5px solid var(--azul); }
.btn-outline-azul:hover { background: var(--azul); color: var(--branco); }
.btn-ghost { background: transparent; color: var(--texto); }
.btn-ghost:hover { background: var(--fundo); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--branco);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--borda);
}
.card:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-2px);
}
.card-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.card-body { padding: 16px 18px; }
.card-title {
  font-family: var(--fonte-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--escuro);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-subtitle {
  font-size: 0.78rem;
  color: var(--texto-leve);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 8px;
}
.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fundo);
}

/* Card empresa (usado na busca/vitrine) */
.card-empresa .card-img-wrap {
  position: relative;
  height: 140px;
  background: var(--escuro);
  overflow: hidden;
}
.card-empresa .card-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.card-empresa .card-avatar {
  position: absolute;
  bottom: -20px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--branco);
  object-fit: cover;
  background: var(--branco);
  box-shadow: var(--sombra-sm);
}
.card-empresa .card-body { padding-top: 28px; }
.card-empresa .badge-aberto {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: #e8fdf4;
  color: var(--verde);
}
.card-empresa .badge-fechado {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: #fdeaea;
  color: var(--vermelho);
}

/* ── BADGES / TAGS ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-laranja  { background: var(--laranja-light); color: var(--laranja); }
.badge-azul     { background: var(--azul-light);    color: var(--azul); }
.badge-verde    { background: #e8fdf4; color: var(--verde); }
.badge-vermelho { background: #fdeaea; color: var(--vermelho); }
.badge-escuro   { background: var(--escuro); color: var(--branco); }

/* ── ESTRELAS ───────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: #f9b700; font-size: 0.8rem; }
.stars-count { font-size: 0.78rem; color: var(--texto-leve); margin-left: 4px; }

/* ── FORMULÁRIOS ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--escuro);
  margin-bottom: 6px;
}
.form-label span { color: var(--vermelho); }
.form-control {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 0.88rem;
  color: var(--texto);
  background: var(--branco);
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(46,165,228,0.12);
}
.form-control::placeholder { color: var(--texto-leve); }
.form-control.error { border-color: var(--vermelho); }
textarea.form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237a8799' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 0.75rem; color: var(--texto-leve); margin-top: 4px; }
.form-error { font-size: 0.75rem; color: var(--vermelho); margin-top: 4px; }

/* ── ALERTAS / MENSAGENS ────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: #e8fdf4; color: #1a7a55; border-left: 3px solid var(--verde); }
.alert-error   { background: #fdeaea; color: #a0293b; border-left: 3px solid var(--vermelho); }
.alert-info    { background: var(--azul-light); color: #155a80; border-left: 3px solid var(--azul); }
.alert-warning { background: #fff8e6; color: #7a5a00; border-left: 3px solid #f9b700; }

/* ── PAGINAÇÃO ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto);
  background: var(--branco);
  border: 1.5px solid var(--borda);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--laranja); color: var(--laranja); }
.pagination .active { background: var(--laranja); color: var(--branco); border-color: var(--laranja); }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--texto-leve);
  padding: 14px 0;
}
.breadcrumb a:hover { color: var(--laranja); }
.breadcrumb .sep { color: var(--borda); }
.breadcrumb .current { color: var(--texto); font-weight: 500; }

/* ── SIDEBAR BOX ────────────────────────────────────────────── */
.sidebar-box {
  background: var(--branco);
  border-radius: var(--radius-md);
  border: 1px solid var(--borda);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-box-title {
  background: var(--escuro);
  color: var(--branco);
  padding: 13px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-box-title i { color: var(--laranja); }
.sidebar-box-body { padding: 16px 18px; }

/* ── LISTA DE CONTATOS ──────────────────────────────────────── */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.contact-list li i {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--fundo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laranja);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.contact-list li a { color: var(--azul); font-weight: 500; }
.contact-list li a:hover { color: var(--azul-hover); }

/* ── REDES SOCIAIS ──────────────────────────────────────────── */
.social-links { display: flex; gap: 8px; margin-top: 12px; }
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--fundo);
  color: var(--texto);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid var(--borda);
}
.social-links a:hover { background: var(--laranja); color: var(--branco); border-color: var(--laranja); }

/* ── HORÁRIOS ───────────────────────────────────────────────── */
.horario-list { display: flex; flex-direction: column; gap: 6px; }
.horario-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  padding: 5px 0;
  border-bottom: 1px dashed var(--borda);
}
.horario-list li:last-child { border-bottom: none; }
.horario-list li .dia { color: var(--texto); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.horario-list li .hora { color: var(--texto-leve); }
.horario-list li.hoje .dia { color: var(--verde); font-weight: 700; }
.horario-list li.hoje .hora { color: var(--verde); font-weight: 600; }
.horario-list li.hoje-fechado .dia { color: var(--vermelho); font-weight: 700; }
.horario-list li.hoje-fechado .hora { color: var(--vermelho); }

/* ── TABS ───────────────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--borda);
  margin-bottom: 24px;
}
.tabs-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto-leve);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tabs-nav a:hover { color: var(--laranja); }
.tabs-nav a.active { color: var(--laranja); border-bottom-color: var(--laranja); background: var(--laranja-light); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── AVALIAÇÕES ─────────────────────────────────────────────── */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--borda);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.review-autor { font-weight: 600; font-size: 0.9rem; color: var(--escuro); }
.review-data  { font-size: 0.75rem; color: var(--texto-leve); }
.review-texto { font-size: 0.87rem; color: var(--texto); margin-top: 6px; }
.review-resposta {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--fundo);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--laranja);
}
.review-resposta .resp-empresa { font-size: 0.8rem; font-weight: 600; color: var(--laranja); margin-bottom: 4px; }
.review-resposta p { font-size: 0.85rem; color: var(--texto); }

/* ── LOADER ─────────────────────────────────────────────────── */
.loader-wrap {
  position: fixed;
  inset: 0;
  background: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader {
  width: 38px;
  height: 38px;
  border: 3px solid var(--borda);
  border-top-color: var(--laranja);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── WHATSAPP FLUTUANTE ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.whatsapp-float-label {
  background: #25D366;
  color: var(--branco);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--sombra-sm);
  white-space: nowrap;
}
.whatsapp-float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float-btn:hover { transform: scale(1.08); }
.whatsapp-float-btn img { width: 30px; height: 30px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--escuro);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
  margin-top: 0px;/*60px;*/
}
.footer-brand img { height: 34px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.83rem; max-width: 240px; line-height: 1.6; }
.footer-title {
  font-family: var(--fonte-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--branco);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--laranja); padding-left: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer-bottom a:hover { color: var(--laranja); }

/* ── DASHBOARD ──────────────────────────────────────────────── */
.dash-layout {
  display: flex;
  min-height: calc(100vh - 114px);
}
.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--branco);
  border-right: 1px solid var(--borda);
  padding: 24px 0;
}
.dash-sidebar-user {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 12px;
}
.dash-sidebar-user img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid var(--laranja-light);
}
.dash-sidebar-user h5 { font-size: 0.9rem; color: var(--escuro); margin-bottom: 2px; }
.dash-sidebar-user small { font-size: 0.75rem; color: var(--texto-leve); }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dash-nav a i { width: 18px; text-align: center; font-size: 0.9rem; color: var(--texto-leve); }
.dash-nav a:hover { background: var(--fundo); color: var(--laranja); }
.dash-nav a:hover i { color: var(--laranja); }
.dash-nav a.active { background: var(--laranja-light); color: var(--laranja); border-left-color: var(--laranja); font-weight: 600; }
.dash-nav a.active i { color: var(--laranja); }
.dash-content { flex: 1; padding: 28px; background: var(--fundo); }
.dash-header { margin-bottom: 24px; }
.dash-header h2 { font-size: 1.3rem; margin-bottom: 4px; }
.dash-header p  { font-size: 0.85rem; color: var(--texto-leve); }

/* Métricas do dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--borda);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-card .metric-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.metric-card .metric-value {
  font-family: var(--fonte-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--escuro);
  line-height: 1;
}
.metric-card .metric-label { font-size: 0.78rem; color: var(--texto-leve); font-weight: 500; }
.metric-card .metric-sub   { font-size: 0.72rem; color: var(--verde); font-weight: 500; }

/* ── UTILITÁRIOS ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-laranja { color: var(--laranja); }
.text-azul    { color: var(--azul); }
.text-verde   { color: var(--verde); }
.text-muted   { color: var(--texto-leve); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.d-flex   { display: flex; }
.d-none   { display: none; }
.d-block  { display: block; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.shadow  { box-shadow: var(--sombra-md); }
.bg-white { background: var(--branco); }
.bg-fundo { background: var(--fundo); }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .col-3, .col-4 { flex: 0 0 calc(50% - 10px); }
  .col-8 { flex: 0 0 100%; }
  .col-9 { flex: 0 0 100%; }
  .dash-sidebar { width: 200px; }
}

@media (max-width: 768px) {
  .header-search { display: none; }

  /* Hamburguer aparece no mobile */
  .header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1.5px solid var(--borda);
    border-radius: var(--radius-sm);
    background: var(--branco);
    color: var(--texto);
    font-size: 1rem;
    cursor: pointer;
  }

  /* Navbar desktop some no mobile (o drawer substitui) */
  .navbar { display: none !important; }

  /* Dropdown do usuário some no mobile (o drawer substitui) */
  .user-menu-wrap .user-dropdown { display: none !important; }

  /* Grid ajustes */
  .col-3, .col-4, .col-6 { flex: 0 0 100%; }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--borda); padding: 12px 0; }
  .dash-nav { display: flex; flex-wrap: wrap; padding: 0 10px; }
  .dash-nav a { padding: 8px 12px; border-left: none; border-radius: var(--radius-sm); font-size: 0.8rem; }
  .dash-content { padding: 16px; }
  .footer { padding: 36px 0 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .btn-lg { padding: 11px 20px; font-size: 0.88rem; }
}
