body {
  font-family: Arial, sans-serif;
  background: #fffaf0;
  margin: 0;
  padding: 0;
}
header {
  background: #e63946;
  color: white;
  padding: 3rem 1rem 4rem 1rem;
  position: relative;
  text-align: center;
  margin-left: 0.5rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo-section {
  text-align: center;
}

.logo-section h1 {
  font-size: 3rem;
  font-weight: 900;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-section p {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0 0 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.admin-section {
  position: absolute;
  top: 3.5rem;
  right: 1rem;
}

.btn-cozinha {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cozinha:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  header {
    text-align: center;
  }
  .admin-section {
    position: static;
    margin-top: 1rem;
  }
  .btn-cozinha {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  .header-right {
    position: static;
    margin-top: 1rem;
    align-items: center;
  }
  .header-right nav {
    position: static;
    justify-content: center;
    top: auto;
    left: auto;
    transform: none;
  }
}

.header-left {
  text-align: center;
}

.header-left h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-left p {
  font-size: 2rem;
  font-weight: normal;
  margin: 0.5rem 0 0 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.header-right {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header-right .filtros {
  margin: 0;
  color: white;
  text-align: right;
}

.header-right .filtros h3 {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  color: white;
}

.header-right .filtros-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-right .filtros-container select {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  color: black;
}

.header-right .filtros-container .btn {
  padding: 5px 10px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.header-right .filtros-container .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.header-right nav {
  display: none !important;
}

.header-right .filtros {
  display: block !important;
}

/* Estilo para o painel fixo de botões Caixa e Sair */
.painel-fixo {
  position: fixed !important;
  top: 8px !important;
  right: 8px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  padding: 8px 16px !important;
  border-radius: 25px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  z-index: 9999 !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  width: fit-content !important;
  min-width: fit-content !important;
}

.painel-fixo .btn-caixa,
.painel-fixo .btn-sair {
  background: rgba(0, 123, 255, 0.8) !important;
  color: white !important;
  border: 1px solid rgba(0, 123, 255, 0.9) !important;
  padding: 8px 18px !important;
  border-radius: 25px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.painel-fixo .btn-caixa:hover,
.painel-fixo .btn-sair:hover {
  background: #0056b3 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

.painel-fixo.hidden {
  display: none !important;
}

#btnCaixa.hidden {
  display: none !important;
}

/* Responsividade para o painel fixo */
@media (max-width: 768px) {
  .painel-fixo {
    top: 8px !important;
    right: 8px !important;
    padding: 6px 10px !important;
    gap: 6px !important;
  }

  .painel-fixo .btn-caixa,
  .painel-fixo .btn-sair {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
    gap: 3px !important;
  }
}

/* Botão Centralizado para Abrir Caixa */
.botao-centralizado {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -20px;
  margin: -5.375rem 0 5px 0;
  padding: 10px;
  width: 100%;
  background: transparent;
  position: relative;
}

#btn-abrir-caixa {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 12px 12px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin: 0 auto;
}

#btn-abrir-caixa:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-dashboard-central {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 12px 12px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin: 0 auto;
}

.btn-dashboard-central:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-sair-central {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 12px 12px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin: 0 auto;
}

.btn-sair-central:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-logout {
  color: white;
  text-decoration: none;
}

/* Responsividade para o botão centralizado */
@media (max-width: 768px) {
  .botao-centralizado {
    flex-direction: column;
    gap: -5px;
  }

  #btn-abrir-caixa,
  .btn-sair-central {
    padding: 10px 10px;
    font-size: 0.9rem;
  }
}
footer {
  background: #e63946;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
main.cardapio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  gap: 1rem;
}
.prato {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 220px;
  text-align: center;
}
.prato h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
button {
  background: #e63946;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #c5303b;
}

.formulario {
  background: white;
  max-width: 400px;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.formulario input, .formulario select {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.status-pedido {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}
.status-pedido ul {
  list-style: none;
  padding-left: 0;
}
.status-pedido li {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  cursor: pointer;
}

input, select {
  display: block;
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.acompanhamentos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.opcao-box {
  background: #f5f5f5;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.opcao-box input {
  display: none;
}
.opcao-box input:checked + span {
  font-weight: bold;
  color: #fff;
}
.opcao-box:has(input:checked) {
  background: #e63946;
  color: white;
  border-color: #e63946;
}

.mensagem.carregando::after {
  content: ' ⏳';
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Estilos para a nova estrutura da página de entrega */
.card {
  background: white;
  max-width: 500px;
  margin: 1rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.btn-primario {
  background: #e63946;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
  width: 100%;
}

.btn-primario:hover {
  background: #c5303b;
}

.secao-ativa {
  display: block;
  animation: fadeIn 0.5s ease;
}

.secao-oculta {
  display: none;
}

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

.resumo-pedido {
  margin: 1.5rem 0;
}

.item-destaque {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #e63946;
}

.item-destaque h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.dados-cliente {
  background: #f1f8ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.dados-cliente h3 {
  margin: 0 0 1rem 0;
  color: #1a56db;
}

.dados-cliente p {
  margin: 0.5rem 0;
  color: #374151;
}

.linha-status {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.linha-status h3 {
  margin: 0 0 1.5rem 0;
  text-align: center;
  color: #111827;
}

.etapas-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.etapas-status::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #d1d5db;
  z-index: 1;
}

.etapa {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0.5rem;
}

.etapa.ativo {
  color: #059669;
}

.etapa.ativo .icone-etapa {
  background: #059669;
  transform: scale(1.1);
}

.icone-etapa {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.etapa span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.mensagem-status {
  text-align: center;
  font-size: 1.1rem;
  color: #059669;
  font-weight: 500;
  margin-top: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

/* Animações suaves para transições */
.formulario input, .formulario select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.formulario input:focus, .formulario select:focus {
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
  outline: none;
}

/* Responsividade */
@media (max-width: 600px) {
  .card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .etapas-status {
    flex-direction: column;
    gap: 1rem;
  }
  
  .etapas-status::before {
    display: none;
  }
  
  .etapa {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .icone-etapa {
    margin-bottom: 0;
  }
}

/* Estilos para o layout de colunas da cozinha */
.pedidos-container {
  margin: 20px 0;
}

.pedidos-columns {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
}

.pedido-column {
  flex: 1;
  min-width: 280px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pedido-column h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.1rem;
  text-align: center;
  border-bottom: 2px solid #e63946;
  padding-bottom: 8px;
}

.pedidos-list {
  min-height: 200px;
}

.pedido-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 6px solid #e63946;
}

.pedido-card h3 {
  margin: 0 0 10px 0;
  color: #d32f2f;
  font-size: 1.1rem;
}

.pedido-card p {
  margin: 5px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Highlight client names in kitchen panel */
.cliente-info p strong:first-child + * {
  font-weight: bold;
  font-size: 1rem;
  color: #d32f2f;
  background: #ffebee;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 4px;
}

.pedido-card .status {
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.status.Aceito { background: #fff3cd; color: #856404; }
.status.Em_preparo, .status.Em_preparo { background: #cce5ff; color: #004085; }
.status.Saiu_para_entrega, .status.Saiu_para_entrega { background: #d1ecf1; color: #0c5460; }
.status.Finalizado, .status.finalizado { background: #d4edda; color: #155724; }

.botoes-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}

.botoes-status button {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background-color 0.2s;
}

.botoes-status button:hover {
  opacity: 0.9;
}

.btn-imprimir {
  width: 100%;
  padding: 8px;
  background: #666;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
}

.btn-imprimir:hover {
  background: #555;
}

.empty-column {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 4px;
  margin: 10px 0;
}

.loading {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .pedidos-columns {
    flex-direction: column;
    gap: 15px;
  }

  .pedido-column {
    min-width: auto;
  }

  .botoes-status {
    flex-direction: column;
  }

  .botoes-status button {
    width: 100%;
  }
}

/* Estilos para o dashboard de resumo */
.dashboard {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
}

.dashboard .card {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  padding: 10px;
  text-align: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard .card h3 {
  font-size: 0.9rem;
  margin: 0 0 5px 0;
  color: #333;
}

.dashboard .card .value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d32f2f;
}

/* Categorias Navigation */
.categorias-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: white;
  border-bottom: 2px solid #e63946;
  flex-wrap: wrap;
}

.categoria-btn {
  background: #fffaf0;
  border: 2px solid #e63946;
  color: #e63946;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.categoria-btn:hover {
  background: #e63946;
  color: white;
}

.categoria-btn.active {
  background: #e63946;
  color: white;
}

@media (max-width: 600px) {
  .categorias-nav {
    gap: 8px;
    padding: 10px;
  }
  
  .categoria-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}
