:root {
  --laranja: #F5A623;
  --laranja-escuro: #E8941A;
  --laranja-claro: #FFF3DC;
  --preto: #1a1a1a;
  --branco: #ffffff;
  --cinza-claro: #f8f9fa;
  --cinza: #e9ecef;
  --cinza-texto: #6c757d;
  --verde: #28a745;
  --vermelho: #dc3545;
  --azul: #007bff;
  --sidebar-width: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f5f5f5;
  color: var(--preto);
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ===== SIDEBAR ===== */
#sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--laranja);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  overflow: hidden;
}

.sidebar-logo {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.sidebar-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--preto);
  line-height: 1.2;
}

.sidebar-logo-text span {
  font-size: 10px;
  color: rgba(0,0,0,0.6);
}

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

.nav-section {
  padding: 8px 16px 4px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(0,0,0,0.5);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px;
  margin: 2px 8px;
  color: rgba(0,0,0,0.75);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.nav-item:hover {
  background: rgba(0,0,0,0.08);
  color: var(--preto);
}

.nav-item.active {
  background: var(--preto);
  color: var(--branco);
}

.nav-item.active i { color: var(--laranja); }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }

/* ===== MAIN CONTENT ===== */
#main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: calc(100vw - var(--sidebar-width));
  max-width: calc(100vw - var(--sidebar-width));
  overflow: hidden;
  background: #f5f5f5;
}

.topbar {
  background: var(--branco);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cinza);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.topbar-title { font-size: 16px; font-weight: 600; color: var(--preto); }
.topbar-date { font-size: 13px; color: var(--cinza-texto); }

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  width: 100%;
}

/* ===== CARDS ===== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.card {
  background: var(--branco);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid var(--cinza);
}

.card-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--preto);
  line-height: 1;
  margin-bottom: 4px;
}

.card-value.green { color: var(--verde); }
.card-value.red { color: var(--vermelho); }
.card-value.orange { color: var(--laranja-escuro); }

.card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cinza-texto);
}

.card-icon {
  float: right;
  font-size: 22px;
  color: var(--cinza);
  margin-top: -4px;
}

/* ===== CHARTS ===== */
.charts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--branco);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid var(--cinza);
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--preto);
}

.chart-title i { color: var(--laranja-escuro); }

/* ===== TABLES ===== */
.table-card {
  background: var(--branco);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid var(--cinza);
  margin-bottom: 16px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.table-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--preto);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cinza-texto);
  border-bottom: 2px solid var(--cinza);
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--cinza);
  color: var(--preto);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cinza-claro); }

/* ===== BADGES / STATUS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pendente { background: #fff3cd; color: #856404; }
.badge-preparando { background: #cff4fc; color: #055160; }
.badge-pronto { background: #d1e7dd; color: #0a3622; }
.badge-entregue { background: #e2e3e5; color: #41464b; }
.badge-cancelado { background: #f8d7da; color: #842029; }
.badge-a-receber { background: #fff3cd; color: #856404; }
.badge-pago { background: #d1e7dd; color: #0a3622; }
.badge-alerta { background: #f8d7da; color: #842029; }
.badge-ok { background: #d1e7dd; color: #0a3622; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--laranja); color: var(--preto); }
.btn-primary:hover { background: var(--laranja-escuro); }
.btn-success { background: var(--verde); color: white; }
.btn-danger { background: var(--vermelho); color: white; }
.btn-secondary { background: var(--cinza); color: var(--preto); }
.btn-dark { background: var(--preto); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--cinza-texto); color: var(--cinza-texto); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px 10px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; gap: 12px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cinza-texto);
  margin-bottom: 5px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--cinza);
  border-radius: 8px;
  font-size: 14px;
  color: var(--preto);
  background: var(--branco);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

textarea { resize: vertical; min-height: 80px; }

.search-box {
  position: relative;
  flex: 1;
}

.search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cinza-texto);
  font-size: 13px;
}

.search-box input { padding-left: 32px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--branco);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-sm { max-width: 480px; }
.modal-md { max-width: 600px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cinza);
  position: sticky;
  top: 0;
  background: var(--branco);
  z-index: 1;
}

.modal-title { font-size: 18px; font-weight: 700; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--cinza);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover { background: #dee2e6; }

.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--cinza);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--branco);
}

/* ===== WIZARD STEPS ===== */
.steps-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--cinza);
}

.step-tab {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: var(--cinza-claro);
  color: var(--cinza-texto);
  cursor: pointer;
  border-right: 1.5px solid var(--cinza);
  transition: all 0.2s;
}

.step-tab:last-child { border-right: none; }
.step-tab.active { background: var(--preto); color: var(--branco); }
.step-tab.done { background: var(--laranja-claro); color: var(--laranja-escuro); }

/* ===== CARDÁPIO GRID ===== */
.cardapio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.cardapio-item {
  border: 1.5px solid var(--cinza);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--branco);
}

.cardapio-item:hover {
  border-color: var(--laranja);
  box-shadow: 0 2px 8px rgba(245,166,35,0.2);
}

.cardapio-item.selected {
  border-color: var(--laranja);
  background: var(--laranja-claro);
}

.cardapio-item-nome { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.cardapio-item-preco { color: var(--verde); font-weight: 700; font-size: 15px; }
.cardapio-item-cat { font-size: 11px; color: var(--cinza-texto); margin-bottom: 6px; }

/* ===== CARRINHO ===== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cinza);
}

.cart-item:last-child { border-bottom: none; }
.cart-item-nome { flex: 1; font-size: 13px; font-weight: 500; }
.cart-item-preco { font-size: 13px; color: var(--cinza-texto); }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--cinza);
  background: var(--branco);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--laranja); color: var(--laranja-escuro); }
.qty-num { font-weight: 700; font-size: 14px; min-width: 20px; text-align: center; }

/* ===== PAGAMENTO RESTANTE ===== */
.restante-box {
  background: #fff3cd;
  border: 1.5px solid #ffc107;
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
}

.restante-box.pago {
  background: #d1e7dd;
  border-color: var(--verde);
}

.restante-label { font-size: 12px; font-weight: 700; color: #856404; text-transform: uppercase; }
.restante-valor { font-size: 24px; font-weight: 800; color: #856404; }
.restante-box.pago .restante-label { color: var(--verde); }
.restante-box.pago .restante-valor { color: var(--verde); }

/* ===== CATEGORIAS TREE ===== */
.categoria-tree {
  border: 1.5px solid var(--cinza);
  border-radius: 10px;
  overflow: hidden;
}

.categoria-tree-item {
  border-bottom: 1px solid var(--cinza);
}

.categoria-tree-item:last-child { border-bottom: none; }

.categoria-tree-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--laranja-claro);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.categoria-tree-header:hover { background: #ffe8b0; }

.subcategoria-list { padding: 4px 0; background: var(--branco); }
.subcategoria-item {
  display: flex;
  align-items: center;
  padding: 8px 32px;
  font-size: 13px;
  border-bottom: 1px solid var(--cinza-claro);
  gap: 8px;
}
.subcategoria-item:last-child { border-bottom: none; }

/* ===== PEDIDO CARDS ===== */
.pedidos-list { display: flex; flex-direction: column; gap: 10px; }

.pedido-card {
  background: var(--branco);
  border: 1.5px solid var(--cinza);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.pedido-card:hover { border-color: var(--laranja); box-shadow: 0 2px 8px rgba(245,166,35,0.15); }
.pedido-card.a-receber { border-left: 4px solid #ffc107; }

.pedido-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pedido-num { font-weight: 700; font-size: 15px; }
.pedido-total { font-weight: 700; font-size: 16px; color: var(--verde); }
.pedido-cliente { font-size: 13px; color: var(--cinza-texto); }
.pedido-restante { font-size: 12px; color: #856404; font-weight: 600; margin-top: 4px; }

/* ===== ESTOQUE ===== */
.estoque-alerta { background: #fff3cd; }
.estoque-critico { background: #f8d7da; }

.estoque-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== FILTROS ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-bar select, .filter-bar input[type="date"] {
  width: auto;
  min-width: 140px;
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.alert-success { background: #d1e7dd; color: #0a3622; border: 1px solid var(--verde); }
.alert-danger { background: #f8d7da; color: #842029; border: 1px solid var(--vermelho); }
.alert-info { background: #cff4fc; color: #055160; border: 1px solid #0dcaf0; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--cinza-texto);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; display: block; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.toast-success { background: var(--verde); color: white; }
.toast-error { background: var(--vermelho); color: white; }
.toast-warning { background: #ffc107; color: var(--preto); }
.toast-info { background: var(--azul); color: white; }

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

/* ===== LOADING ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--cinza-texto);
}

.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--cinza);
  border-top-color: var(--laranja);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  #sidebar.open { transform: translateX(0); }
  #main { margin-left: 0; }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
}

/* ===== LGPD ===== */
.lgpd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.lgpd-sim { background: #d1e7dd; color: #0a3622; }
.lgpd-nao { background: #f8d7da; color: #842029; }

/* ===== FINANCEIRO ===== */
.fin-card {
  background: var(--branco);
  border-radius: 12px;
  padding: 20px;
  border: 1.5px solid var(--cinza);
}

.fin-card-value { font-size: 28px; font-weight: 800; }
.fin-card-label { font-size: 12px; color: var(--cinza-texto); font-weight: 600; text-transform: uppercase; }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cinza);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--cinza-texto);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tab-btn.active { color: var(--laranja-escuro); border-bottom-color: var(--laranja); }
.tab-btn:hover { color: var(--preto); }

/* Confirm dialog */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.confirm-box {
  background: var(--branco);
  border-radius: 12px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.confirm-box h3 { margin-bottom: 8px; font-size: 17px; }
.confirm-box p { color: var(--cinza-texto); font-size: 14px; margin-bottom: 20px; }
.confirm-box .actions { display: flex; gap: 10px; justify-content: center; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cinza); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #adb5bd; }

/* ===== TELA CHEIA ===== */
.table-card { width: 100%; }
.charts-row { width: 100%; }
.pedidos-list { width: 100%; }

/* ===== BANNER LGPD ===== */
#lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8888;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
  flex-wrap: wrap;
}

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

.lgpd-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.lgpd-banner-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lgpd-banner-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--laranja);
}

.lgpd-banner-desc {
  font-size: 12px;
  color: #ccc;
  line-height: 1.5;
}

.lgpd-banner-desc a {
  color: var(--laranja);
  text-decoration: underline;
  cursor: pointer;
}

.lgpd-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.lgpd-btn-aceitar {
  background: var(--laranja);
  color: var(--preto);
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lgpd-btn-aceitar:hover {
  background: var(--laranja-escuro);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,166,35,0.4);
}

.lgpd-btn-recusar {
  background: transparent;
  color: #aaa;
  border: 1.5px solid #444;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.lgpd-btn-recusar:hover {
  border-color: #888;
  color: #fff;
}

/* Modal LGPD política completa */
.lgpd-politica-content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--cinza-texto);
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.lgpd-politica-content h4 {
  color: var(--preto);
  font-size: 14px;
  margin: 16px 0 6px;
}

.lgpd-politica-content p {
  margin-bottom: 10px;
}

.lgpd-politica-content ul {
  margin: 8px 0 10px 20px;
}

.lgpd-politica-content ul li {
  margin-bottom: 4px;
}

/* ===== LOGIN ===== */
#login-screen {
  position: fixed;
  inset: 0;
  background: var(--laranja);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: var(--branco);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  text-align: center;
}

.login-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--laranja);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.login-logo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--laranja);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 20px;
  border: 4px solid var(--laranja-escuro);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--preto);
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--cinza-texto);
  margin-bottom: 32px;
}

.login-field {
  position: relative;
  margin-bottom: 16px;
}

.login-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cinza-texto);
  font-size: 15px;
}

.login-field input {
  padding-left: 42px;
  padding-right: 42px;
  height: 48px;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid var(--cinza);
  transition: border-color 0.2s;
}

.login-field input:focus {
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.login-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--cinza-texto);
  font-size: 15px;
  background: none;
  border: none;
  padding: 4px;
}

.login-eye:hover { color: var(--preto); }

.login-btn {
  width: 100%;
  height: 48px;
  background: var(--laranja);
  color: var(--preto);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.login-btn:hover {
  background: var(--laranja-escuro);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
}

.login-btn:active { transform: translateY(0); }

.login-error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  align-items: center;
  gap: 8px;
}

.login-error.show { display: flex; }

.login-shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.login-footer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--cinza-texto);
}

/* Logout btn no topbar */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--cinza);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--cinza-texto);
  transition: all 0.15s;
}
.logout-btn:hover { border-color: var(--vermelho); color: var(--vermelho); background: #fff5f5; }
