/* ============================================
   Restaurante Ipanema
   Tema: Laranja & Branco — 290 Digital
   ============================================ */

:root {
  --bg-main:       #fff8f5;
  --bg-card:       #ffffff;
  --bg-input:      #f3f4f6;
  --bg-sidebar:    #ff6b00;
  --primary:       #ff6b00;
  --primary-hover: #e05e00;
  --primary-light: #fff1e6;
  --primary-pale:  #fff8f5;

  /* mantém nomes antigos para compatibilidade com HTML existente */
  --bg-dark:       #fff8f5;
  --verde:         #ff6b00;
  --verde-hover:   #e05e00;
  --laranja:       #ff6b00;
  --laranja-hover: #e05e00;

  --branco:        #ffffff;
  --texto:         #1f2937;
  --texto-leve:    #6b7280;
  --cinza-claro:   #f3f4f6;
  --cinza-medio:   #9ca3af;
  --cinza-escuro:  #374151;
  --vermelho:      #ef4444;
  --azul:          #3b82f6;
  --verde-ok:      #22c55e;

  --sombra:        0 4px 24px rgba(0,0,0,0.08);
  --sombra-card:   0 2px 12px rgba(0,0,0,0.06);
  --radius:        10px;
  --radius-sm:     6px;
  --transicao:     all 0.2s ease;
  --font-base:     'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--texto);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: var(--transicao); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

/* Utilitários */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-verde { color: var(--verde-ok); }
.text-laranja { color: var(--primary); }
.text-cinza { color: var(--texto-leve); }
.text-vermelho { color: var(--vermelho); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.flex { display: flex; }

/* ============================================
   Layout com sidebar
   ============================================ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: 4px 0 16px rgba(255,107,0,0.2);
}

.sidebar-logo {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.sidebar-logo h1 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.sidebar-logo p {
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,0.85);
  font-size: .9rem;
  transition: var(--transicao);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.ativo {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-left-color: #fff;
}

.sidebar-nav .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: .8rem;
  color: rgba(255,255,255,0.7);
}

.main-content {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: #fff;
  padding: .875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar h2 { font-size: 1.1rem; font-weight: 700; color: var(--texto); }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.topbar-user { font-size: .85rem; color: var(--texto-leve); }

.page-body { padding: 1.5rem; flex: 1; }

/* ============================================
   Cards e painéis
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--sombra-card);
  border: 1px solid #e5e7eb;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f3f4f6;
}

.card-header h3 { font-size: 1rem; font-weight: 600; color: var(--texto); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--sombra-card);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-info { min-width: 0; }
.stat-valor { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--texto-leve); margin-top: 2px; }

/* ============================================
   Botões
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transicao);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-secondary {
  background: var(--cinza-claro);
  color: var(--cinza-escuro);
  border: 1px solid #d1d5db;
}
.btn-secondary:hover { background: #e5e7eb; }

.btn-danger { background: var(--vermelho); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-success { background: var(--verde-ok); color: #fff; }
.btn-success:hover { background: #16a34a; }

.btn-sm { padding: .35rem .75rem; font-size: .82rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================
   Formulários
   ============================================ */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--cinza-escuro); margin-bottom: .35rem; }

.form-control {
  width: 100%;
  padding: .6rem .875rem;
  background: var(--bg-input);
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--texto);
  transition: var(--transicao);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================
   Tabelas
   ============================================ */
.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

thead th {
  background: #f9fafb;
  padding: .7rem 1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--texto-leve);
  border-bottom: 2px solid #e5e7eb;
}

tbody tr { border-bottom: 1px solid #f3f4f6; transition: background .15s; }
tbody tr:hover { background: #fafafa; }
tbody td { padding: .75rem 1rem; color: var(--texto); vertical-align: middle; }
tbody tr:last-child { border-bottom: none; }

/* ============================================
   Badges / Tags
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-neutral { background: #f3f4f6; color: #374151; }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ============================================
   Modais
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--texto); }

.modal-close {
  background: none; border: none;
  color: var(--texto-leve); font-size: 1.2rem;
  cursor: pointer; padding: .25rem; border-radius: 4px;
  transition: var(--transicao);
}
.modal-close:hover { background: #f3f4f6; color: var(--texto); }

.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #e5e7eb; display: flex; gap: .75rem; justify-content: flex-end; }

/* ============================================
   Alertas e toasts
   ============================================ */
.alert {
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info     { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

#toast-container {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 360px;
}

.toast {
  background: #1f2937;
  color: #fff;
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: slideIn .25s ease;
  border-left: 4px solid var(--primary);
}
.toast.sucesso { border-left-color: var(--verde-ok); }
.toast.erro    { border-left-color: var(--vermelho); }
.toast.aviso   { border-left-color: #f59e0b; }

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

/* ============================================
   Tela de Login
   ============================================ */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 50%, #ffb347 100%);
  padding: 1rem;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(255,107,0,0.3);
}

.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo h1 { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.login-logo p  { color: var(--texto-leve); font-size: .9rem; margin-top: .25rem; }

.login-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--texto); margin-bottom: 1.5rem; text-align: center; }

/* ============================================
   Catálogo (área do cliente/pedido)
   ============================================ */
.catalogo-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}

.catalogo-header h1 { font-size: 1.2rem; font-weight: 800; color: #fff; }

.catalogo-categorias {
  background: #fff;
  border-bottom: 2px solid var(--primary-light);
  padding: .5rem 1rem;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  position: sticky;
  top: 60px;
  z-index: 90;
}

.cat-btn {
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--texto-leve);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transicao);
}
.cat-btn.ativo, .cat-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.produto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.produto-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: var(--transicao);
}
.produto-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.produto-img {
  width: 100%; height: 180px;
  object-fit: cover;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}

.produto-info { padding: 1rem; }
.produto-nome { font-weight: 700; color: var(--texto); margin-bottom: .25rem; }
.produto-desc { font-size: .82rem; color: var(--texto-leve); margin-bottom: .75rem; line-height: 1.4; }
.produto-preco { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

/* ============================================
   Carrinho flutuante
   ============================================ */
.carrinho-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: var(--transicao);
  z-index: 200;
}
.carrinho-fab:hover { background: var(--primary-hover); transform: scale(1.05); }

/* ============================================
   Painel lateral do pedido (carrinho)
   ============================================ */
.carrinho-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 380;
  display: none;
  backdrop-filter: blur(2px);
}
.carrinho-overlay.visivel { display: block; }

.carrinho-painel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100dvh;
  background: #fff;
  z-index: 390;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,0.18);
}
.carrinho-painel.aberto { transform: translateX(0); }

.carrinho-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 60px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
}
.carrinho-header h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.btn-fechar-modal {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  width: 34px; height: 34px;
  min-width: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.18s;
  flex-shrink: 0;
}
.btn-fechar-modal:hover { background: rgba(255,255,255,0.35); }

.btn-fechar-carrinho {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.85); font-size: 1.2rem; padding: 0.25rem;
  line-height: 1;
}
.btn-fechar-carrinho:hover { color: #fff; }
.carrinho-mobile-voltar {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem;
}
.carrinho-mobile-voltar:hover { color: #fff; }

.carrinho-itens {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
}

.carrinho-vazio {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--texto-leve);
}
.carrinho-vazio .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.carrinho-vazio p { font-size: 0.9rem; line-height: 1.55; }

.carrinho-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: flex-start;
}
.carrinho-item-foto {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f3f4f6;
}
.carrinho-item-info { flex: 1; min-width: 0; }
.carrinho-item-nome {
  font-weight: 600; font-size: 0.88rem;
  color: var(--texto); margin-bottom: 0.18rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.carrinho-item-preco { font-size: 0.78rem; color: var(--texto-leve); margin-bottom: 0.35rem; }
.carrinho-item-controles { display: flex; align-items: center; gap: 0.4rem; }

.qty-btn {
  width: 26px; height: 26px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-valor { font-weight: 700; font-size: 0.88rem; min-width: 1.4rem; text-align: center; }

.btn-remover-item {
  background: none; border: none;
  color: #d1d5db; cursor: pointer;
  font-size: 0.85rem; padding: 0.2rem;
  flex-shrink: 0; transition: color 0.15s;
}
.btn-remover-item:hover { color: #ef4444; }

.carrinho-footer { padding: 0.75rem 1rem 1rem; border-top: 1px solid #e5e7eb; flex-shrink: 0; }
.carrinho-totais { margin-bottom: 0.75rem; }
.carrinho-linha {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--texto-leve); margin-bottom: 0.25rem;
}
.carrinho-total-final {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 800; color: var(--texto);
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}
.carrinho-desconto {
  font-size: 0.78rem; color: var(--primary);
  background: rgba(255,107,0,0.08);
  border-radius: 6px; padding: 0.3rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   Inputs de busca e filtros
   ============================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: .5rem .875rem;
  transition: var(--transicao);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,0.12); }
.search-bar input { border: none; outline: none; font-size: .9rem; color: var(--texto); background: transparent; flex: 1; }
.search-bar .icon { color: var(--texto-leve); }

/* ============================================
   Spinners e loading
   ============================================ */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 1rem;
  color: var(--texto-leve);
}

/* ============================================
   Responsivo
   ============================================ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.aberta { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .produto-grid { grid-template-columns: 1fr 1fr; }
}

/* Produtos no admin — imagem placeholder laranja */
.produto-foto-placeholder {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Paginação */
.pagination {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.pagination button {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--texto);
  cursor: pointer;
  font-size: .875rem;
  transition: var(--transicao);
}
.pagination button:hover, .pagination button.ativo {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination button:disabled { opacity: .4; cursor: not-allowed; }


/* ============================================
   Admin — aliases e classes específicas
   ============================================ */

/* Layout principal admin */
.layout-admin { display: flex; min-height: 100vh; }
.admin-content { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* Sidebar links (admin usa .sidebar-link ao invés de .sidebar-nav a) */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,0.85);
  font-size: .9rem;
  transition: var(--transicao);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-link:hover,
.sidebar-link.ativo {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-left-color: #fff;
}
.sidebar-secao {
  padding: .9rem 1.25rem .35rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.55);
}

/* Header admin */
.header-usuario {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}
.btn-sair {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .35rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transicao);
  font-family: var(--font-base);
}
.btn-sair:hover { background: rgba(255,255,255,0.32); }

/* Page header */
.page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 1.5rem;
}

/* Card título */
.card-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto);
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Stat card ícone (usa .stat-icone, o CSS tinha .stat-icon) */
.stat-icone {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.stat-card.laranja .stat-valor { color: var(--primary); }
.stat-card.azul    .stat-valor { color: var(--azul); }
.stat-card.laranja { border-left: 3px solid var(--primary); }
.stat-card.azul    { border-left: 3px solid var(--azul); }

/* Tabela admin */
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th {
  text-align: left;
  padding: .65rem 1rem;
  background: var(--cinza-claro);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--texto-leve);
  border-bottom: 2px solid #e5e7eb;
}
.tabela td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.tabela tbody tr:hover { background: var(--bg-main); }
.acoes-tabela { display: flex; align-items: center; gap: .5rem; }

/* Paginação */
.paginacao { display: flex; align-items: center; gap: .35rem; justify-content: center; margin-top: 1rem; }
.paginacao-btn {
  min-width: 34px; height: 34px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--texto);
  transition: var(--transicao);
  font-family: var(--font-base);
}
.paginacao-btn:hover { border-color: var(--primary); color: var(--primary); }
.paginacao-btn.ativo { background: var(--primary); color: #fff; border-color: var(--primary); }
.paginacao-btn:disabled { opacity: .4; cursor: default; }

/* Badge azul e cinza */
.badge-azul    { background: #dbeafe; color: #1d4ed8; }
.badge-cinza   { background: #f3f4f6; color: #374151; }
.badge-verde   { background: #dcfce7; color: #15803d; }
.badge-vermelho{ background: #fee2e2; color: #b91c1c; }
.badge-laranja { background: #fff1e6; color: var(--primary); }

/* Upload de fotos */
.fotos-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.foto-item { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid #e5e7eb; }
.foto-item img { width: 100%; height: 100%; object-fit: cover; }
.foto-item-acoes { position: absolute; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.foto-item:hover .foto-item-acoes { opacity: 1; }
.foto-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
}
.foto-upload-area:hover { border-color: var(--primary); }
.foto-upload-icon { font-size: 2rem; margin-bottom: .5rem; }
.foto-upload-texto { font-size: .85rem; color: var(--texto-leve); }

/* Misc */
.obrigatorio { color: var(--vermelho); }
.senha-temp-box { background: var(--cinza-claro); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-top: .75rem; }
.senha-temp-aviso { font-size: .82rem; color: var(--texto-leve); margin-bottom: .4rem; }
.senha-temp-valor { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.fp-check { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #f3f4f6; }
.cb-produto { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

/* Responsivo admin */
@media (max-width: 768px) {
  .admin-content { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
