/* ═══════════════════════════════════════════════
   GIGI GELADINHO GOURMET — Sistema de Estoque
   Paleta: Verde menta, Azul marinho, Amarelo dourado, Coral
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Pacifico&display=swap');

/* ─── VARIÁVEIS ─────────────────────────────── */
:root {
  --verde:      #5BB894;
  --verde-dark: #3D9070;
  --verde-light:#EBF7F2;
  --azul:       #1B3A6B;
  --azul-light: #EEF2F9;
  --amarelo:    #F5C518;
  --amarelo-light: #FEF9E7;
  --coral:      #E87070;
  --coral-light:#FDEAEA;
  --roxo:       #8B6FC4;
  --roxo-light: #F0EBF8;
  --teal:       #2DB8C8;
  --teal-light: #E8F8FA;
  --bg:         #F4F7F6;
  --surface:    #FFFFFF;
  --border:     #E2E8E4;
  --text:       #1A2E25;
  --text-muted: #6B8077;
  --sidebar-w:  240px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
  --radius:     14px;
  --radius-sm:  8px;
}

/* ─── RESET / BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── SIDEBAR ───────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--azul);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 4px;
  border: 2px solid var(--verde);
}

.sidebar-brand {
  font-family: 'Pacifico', cursive;
  color: var(--amarelo);
  font-size: 0.95rem;
  line-height: 1.2;
}

.sidebar-menu {
  list-style: none;
  padding: 16px 0;
  flex: 1;
}

.sidebar-menu li { margin: 2px 8px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-item.active {
  background: var(--verde);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91,184,148,0.35);
}

.nav-icon { font-size: 1.1rem; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.data-atual {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

/* ─── MAIN ──────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 32px;
  min-height: 100vh;
}

/* ─── PAGES ─────────────────────────────────── */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PAGE HEADER ───────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--azul);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── CARDS GRID ────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid transparent;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-green  { border-left-color: var(--verde);  background: linear-gradient(135deg, #fff, var(--verde-light)); }
.card-yellow { border-left-color: var(--amarelo); background: linear-gradient(135deg, #fff, var(--amarelo-light)); }
.card-blue   { border-left-color: var(--azul);   background: linear-gradient(135deg, #fff, var(--azul-light)); }
.card-red    { border-left-color: var(--coral);  background: linear-gradient(135deg, #fff, var(--coral-light)); }
.card-teal   { border-left-color: var(--teal);   background: linear-gradient(135deg, #fff, var(--teal-light)); }
.card-purple { border-left-color: var(--roxo);   background: linear-gradient(135deg, #fff, var(--roxo-light)); }

.card-icon { font-size: 2rem; }

.card-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* ─── CHARTS ────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.chart-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 16px;
}

.chart-card-wide { grid-column: 1 / -1; }

.chart-container { position: relative; height: 260px; }
.chart-tall { height: 340px; }

/* ─── BOTÕES ─────────────────────────────────── */
.btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--azul);
  color: #fff;
}
.btn-primary:hover { background: #254d8a; box-shadow: 0 4px 12px rgba(27,58,107,0.3); }

.btn-success {
  background: var(--verde);
  color: #fff;
}
.btn-success:hover { background: var(--verde-dark); box-shadow: 0 4px 12px rgba(91,184,148,0.35); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--verde); color: var(--verde); }

.btn-danger {
  background: var(--coral);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-edit {
  background: var(--azul-light);
  color: var(--azul);
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

/* ─── INPUTS ─────────────────────────────────── */
.input-date, .input-select, .input-field {
  padding: 9px 13px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s;
}

.input-date:focus, .input-select:focus, .input-field:focus {
  border-color: var(--verde);
}

/* ─── TABLE ──────────────────────────────────── */
.table-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.table-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--azul);
  padding: 18px 22px 0;
}

.table-responsive { overflow-x: auto; }

.data-table, .lancamento-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th, .lancamento-table th {
  background: var(--azul);
  color: rgba(255,255,255,0.9);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td, .lancamento-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:hover td, .lancamento-table tr:hover td {
  background: var(--verde-light);
}

.lancamento-table .col-sabor { min-width: 160px; font-weight: 700; }
.lancamento-table .col-num { width: 95px; }
.lancamento-table .col-money { width: 100px; }
.lancamento-table .calc { background: rgba(91,184,148,0.08); font-weight: 800; color: var(--verde-dark); }

.lancamento-table input[type="number"] {
  width: 75px;
  padding: 6px 8px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.lancamento-table input[type="number"]:focus {
  border-color: var(--verde);
  outline: none;
  background: var(--verde-light);
}

.total-row td {
  background: var(--azul-light) !important;
  font-weight: 800;
  color: var(--azul);
  border-top: 2px solid var(--azul);
}

.sabor-categoria {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cat-fruta { background: var(--verde-light); color: var(--verde-dark); }
.cat-doce_especial { background: var(--amarelo-light); color: #a07000; }
.cat-zero_lactose { background: var(--azul-light); color: var(--azul); }

/* ─── LANCAMENTO INFO ───────────────────────── */
.lancamento-info { margin-bottom: 16px; }

.info-badge {
  background: var(--amarelo-light);
  border: 1px solid var(--amarelo);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #7a6000;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── ESTOQUE GRID ──────────────────────────── */
.estoque-filtros {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--surface);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.filtro-btn:hover, .filtro-btn.active {
  border-color: var(--verde);
  background: var(--verde);
  color: #fff;
}

.estoque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.estoque-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.estoque-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Botão de edição — aparece no hover do card */
.estoque-card .btn-editar-estoque {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(27,58,107,0.08);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  color: var(--azul);
}
.estoque-card:hover .btn-editar-estoque {
  opacity: 1;
}
.estoque-card .btn-editar-estoque:hover {
  background: var(--azul);
  color: #fff;
}

/* Aviso dentro do modal de ajuste */
.ajuste-sabor-info {
  background: var(--azul-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 700;
}

.resumo-card {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
}
.resumo-titulo {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.resumo-valor {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--azul);
}
  color: var(--azul);
  font-size: 1rem;
  text-align: center;
}
.ajuste-aviso {
  background: rgba(245,197,24,0.12);
  border-left: 3px solid var(--amarelo);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #7a6000;
  margin: 12px 0 16px;
  line-height: 1.5;
}
.btn-full { width: 100%; justify-content: center; }
.baixo { border-top-color: var(--coral); }
.estoque-card.medio { border-top-color: var(--amarelo); }
.estoque-card.alto  { border-top-color: var(--verde); }

.estoque-nome {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--azul);
  margin-bottom: 8px;
  line-height: 1.3;
}

.estoque-qty {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.estoque-qty.baixo { color: var(--coral); }
.estoque-qty.medio { color: var(--amarelo); }
.estoque-qty.alto  { color: var(--verde); }

.estoque-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}

.estoque-data {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── RELATÓRIOS ────────────────────────────── */
.rel-totais {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* ─── GASTOS ─────────────────────────────────── */
.gastos-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* ─── MODAL ──────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal.open { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--azul); }

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover { background: var(--coral-light); color: var(--coral); }

.modal-body { padding: 20px 22px; }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.83rem;
  margin-bottom: 5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-field { width: 100%; }

/* ─── HISTÓRICO MODAL ───────────────────────── */
.historico-lista {
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.historico-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.historico-item:hover { border-color: var(--verde); background: var(--verde-light); }

.historico-data { font-weight: 800; color: var(--azul); }
.historico-info { font-size: 0.82rem; color: var(--text-muted); }

/* ─── TOAST ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--azul);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast.success { background: var(--verde); }
.toast.error   { background: var(--coral); }
.toast.info    { background: var(--azul); }
.toast.warning { background: #B7791F; }

/* ─── BARRA DE CARREGAMENTO ──────────────────── */
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--azul);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.loading .loading-bar {
  opacity: 1;
  width: 60%;
  animation: loadingBarMove 1.1s ease-in-out infinite;
}
@keyframes loadingBarMove {
  0%   { width: 0%; left: 0; }
  50%  { width: 60%; left: 20%; }
  100% { width: 0%; left: 100%; }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─── MOBILE SIDEBAR TOGGLE ─────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 150;
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .charts-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-240px);
    width: 240px;
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-toggle { display: block; }

  .main-content {
    margin-left: 0;
    padding: 70px 16px 20px;
  }

  .page-header { flex-direction: column; align-items: flex-start; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── UTILITIES ─────────────────────────────── */
.text-green  { color: var(--verde); }
.text-red    { color: var(--coral); }
.text-yellow { color: var(--amarelo); }
.text-blue   { color: var(--azul); }
.text-muted  { color: var(--text-muted); }
.text-right  { text-align: right; }
.fw-bold     { font-weight: 800; }

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

.empty-state .emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state p { font-weight: 600; }

/* Badge de status */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-on  { background: var(--verde-light); color: var(--verde-dark); }
.badge-off { background: var(--coral-light); color: var(--coral); }

.badge-novo        { background: #E0F2FE; color: #0369A1; }
.badge-em_producao { background: #FEF9E7; color: #B7791F; }
.badge-entregue    { background: var(--verde-light); color: var(--verde-dark); }
.badge-cancelado   { background: var(--coral-light); color: var(--coral); }

/* ─── MODAL ALTERAR SENHA (acima do overlay de login) ── */
#modal-alterar-senha { z-index: 10001; }

/* ─── LOGIN OVERLAY ──────────────────────────── */
#login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--azul) 0%, #2D5A8E 55%, var(--verde-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: loginFadeIn 0.3s ease;
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  border: 4px solid var(--verde);
  background: #fff;
  padding: 6px;
}

.login-titulo {
  font-family: 'Pacifico', cursive;
  color: var(--azul);
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.login-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-erro {
  background: var(--coral-light);
  color: var(--coral);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* oculta scroll do body enquanto login overlay está visível */
body:has(#login-overlay:not([style*="display: none"])) { overflow: hidden; }

/* ─── ALERTAS DE ESTOQUE ─────────────────────── */
.dash-alertas-wrap { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.4rem; }

.dash-alerta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}
.dash-alerta-critico { background: #FDEAEA; border-left: 4px solid var(--coral); color: #7B2020; }
.dash-alerta-aviso   { background: #FEF9E7; border-left: 4px solid var(--amarelo); color: #7B5E00; }
.dash-alerta-icon    { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }

.alerta-sabor {
  display: inline-block;
  background: rgba(0,0,0,0.07);
  border-radius: 4px;
  padding: 0.05rem 0.45rem;
  margin: 0.15rem 0.2rem 0 0;
  font-weight: 600;
  font-size: 0.83rem;
}
.alerta-sabor em { font-style: normal; opacity: 0.75; }

/* ─── FLUXO DE CAIXA ─────────────────────────── */
.fluxo-filtros {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.fluxo-filtro-grupo { display: flex; flex-direction: column; gap: 0.3rem; }
.fluxo-filtro-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fluxo-filtro-sep { font-size: 0.85rem; color: var(--text-muted); padding-bottom: 0.4rem; }

.fluxo-paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.pag-btn {
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pag-btn:disabled { opacity: 0.35; cursor: default; }
.pag-btn:not(:disabled):hover { opacity: 0.82; }
.pag-info { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }


.fluxo-tipo {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.tipo-entrada { background: var(--verde-light); color: var(--verde-dark); }
.tipo-saida   { background: var(--coral-light); color: var(--coral); }

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--azul-light);
  color: var(--azul);
}
.badge-vendas      { background: #EBF7F2; color: #3D9070; }
.badge-nubank      { background: #F0EBF8; color: #6B21A8; }
.badge-mercadopago { background: #E0F2FE; color: #0369A1; }
.badge-combustivel { background: #FEF3C7; color: #B45309; }
.badge-supermercado{ background: #ECFDF5; color: #065F46; }
.badge-energia     { background: #FEF9E7; color: #B7791F; }
.badge-agua        { background: #E0F7FA; color: #00695C; }
.badge-internet    { background: #EDE9FE; color: #4C1D95; }
.badge-producao    { background: #FDEAEA; color: #C53030; }
.badge-outros      { background: #F3F4F6; color: #4B5563; }

/* ─── RODAPÉ LOGIN ───────────────────────────── */
.login-footer {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.login-footer a {
  color: var(--verde-dark);
  text-decoration: none;
  font-weight: 600;
}
.login-footer a:hover { text-decoration: underline; }

/* ─── RODAPÉ ─────────────────────────────────── */
.app-footer {
  margin-top: 3rem;
  padding: 1.2rem 0 0.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.app-footer a {
  color: var(--verde-dark);
  text-decoration: none;
  font-weight: 600;
}
.app-footer a:hover { text-decoration: underline; }

/* ─── PEDIDO CLIENTE ─────────────────────────── */
#modal-pedido, #modal-politica { z-index: 10000; padding: 20px 28px; }

.login-divider {
  text-align: center;
  margin: 1rem 0 0.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.login-divider::before, .login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.login-divider::before { left: 0; }
.login-divider::after  { right: 0; }

.btn-pedido {
  background: var(--verde);
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-pedido:hover { opacity: 0.88; }

/* Botão pedido principal — destaque máximo */
.btn-pedido-main {
  font-size: 1.3rem !important;
  padding: 1.15rem 1.5rem !important;
  border-radius: 12px !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(91, 184, 148, 0.45);
  animation: pulseVerde 2.8s ease-in-out infinite;
}
@keyframes pulseVerde {
  0%,100% { box-shadow: 0 4px 18px rgba(91,184,148,0.45); }
  50%      { box-shadow: 0 6px 28px rgba(91,184,148,0.75); }
}

/* Toggle de login admin */
.login-admin-toggle-wrap {
  text-align: center;
  margin-top: 0.8rem;
}
.btn-admin-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.btn-admin-toggle:hover {
  background: var(--bg);
  color: var(--text);
}

/* Painel de login admin — oculto por padrão, expande com animação */
.login-admin-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease, padding-top 0.35s ease;
  margin-top: 0;
  padding-top: 0;
}
.login-admin-panel.open {
  max-height: 400px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-whatsapp:hover { opacity: 0.88; }

.sabor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
}
.sabor-item-info { display: flex; flex-direction: column; }
.sabor-item-nome { font-weight: 700; color: var(--azul); font-size: 0.95rem; }
.sabor-item-preco { font-size: 0.82rem; color: var(--verde-dark); font-weight: 600; }
.sabor-item-ctrl { display: flex; align-items: center; gap: 0.5rem; }
.sabor-item-ctrl button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--azul);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.sabor-item-ctrl button:hover { background: var(--verde-dark); }
.sabor-item-ctrl .qtd-display {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--text);
}

/* ─── SIDEBAR USER ───────────────────────────── */
.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
}

.sidebar-username {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-logout {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.22);
  color: white;
}
