/* Reset de estilos universal */
* {
  padding: 0;
  margin: 0;
  color: #fff;
  box-sizing: border-box; /* Adicionado para layout robusto */
}

/* Estilos gerais do corpo da página */
body {
  background: #141414;
  color: white;
  margin: 0;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Evita o scroll do conteúdo principal quando o menu está aberto */
body.no-scroll {
  overflow: hidden;
}

/* --- Cabeçalho --- */
header {
  background-color: #1b1b1b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  border-radius: 0px 0px 12px 12px;
  position: sticky; 
  top: 0;
  z-index: 1000;
  font-family: "Permanent Marker";
  font-size: 25px;
}

.nav-bar {
  display: flex; 
  justify-content: space-around; 
  padding: 1.5rem 6rem;
  transition: padding 0.3s ease-in-out; 
}

/* Estilo ao rolar */
header.scrolled .nav-bar {
  padding: 0.5rem 6rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-ft {
  border-radius: 50px;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-list li {
  margin: 0 20px;
}

.nav-link {
  text-decoration: none;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
  font-family: "Permanent Marker";
  transition: 0.3s;
}

.log-out {
  text-decoration: none;
  font-size: 1.5rem;
  color: #FF2C2C;
  font-weight: 600;
  font-family: "Amatic SC", cursive;
  transition: 0.3s;
}

.nav-link:hover {
  color: #f06aa6;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-icons span,
.header-icons a {
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: 1;
}

.header-icons .cart-icon,
.header-icons .login-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icons .cart-icon a,
.header-icons .login-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-menu-icon {
  display: none;
}

.mobile-menu-icon button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 0;
  width: 44px; /* Área de toque mínima */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu-icon button:active {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-icon .icon {
  width: 28px;
  height: 28px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-icon .icon.rotate {
  transform: rotate(90deg);
}

.cart-icon-img, .user-icon-img {
    width: 25px;
    height: 25px;
    display: block;
}

/* --- Animação Pulse (Carrinho) --- */
@keyframes pulse-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}
.cart-icon.pulse {
  animation: pulse-animation 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 4px;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Menu Board (Main Content) --- */
.menu-board {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 25px 40px;
}

.brand {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  font-size: 44px;
  background: linear-gradient(135deg, #5CC4F0, #60A3E8, #9177EC, #C788EF, #E573C6, #FA749C); /* Gradiente de cores */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
  margin-bottom: 25px;
  background-size: 200% auto; /* Aumenta o tamanho do gradiente para permitir a animação */
  animation: gradient-shift 4s ease infinite; /* Aplica a animação */
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 0%; /* Posição inicial (canto superior esquerdo) */
  }
  50% {
    background-position: 100% 100%; /* Posição intermédia (canto inferior direito) */
  }
  100% {
    background-position: 0% 0%; /* Volta à posição inicial para um loop suave */
  }
}

.category {
  font-family: 'Amatic SC', cursive;
  font-size: 36px;
  font-weight: 700;
  color: #f06aa6;
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: #202020;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 0 0 1px #111;
  gap: 20px;
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.item:hover {
  background: #242424;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 0 1px #151515;
}

.item-name {
  font-weight: 700;
  font-size: 17px;
  font-family: cursive;
  color: #FAE8B4;
}

.item-desc {
  font-size: 14px;
  color: #80775C;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.price {
  font-family: cursive;
  font-size: 17px;
  color: #B4A064;
}

.btn-pedir {
  background: #f06aa6;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Amatic SC', cursive;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-height: 44px; /* Área de toque mínima */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}

.btn-pedir:active {
  transform: scale(0.95);
  background: #d44e8a;
}

.btn-pedir:hover {
  background: #d44e8a;
}

/* Botão Chamar Staff (index)*/
#openStaffCallBtn,
.btn-staff-call {
  background: linear-gradient(135deg, #5CC4F0, #60A3E8);
  color: #071428;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Amatic SC', cursive;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 6px 18px rgba(89,160,230,0.12);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#openStaffCallBtn:hover,
.btn-staff-call:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 10px 26px rgba(89,160,230,0.16);
}

#openStaffCallBtn:active,
.btn-staff-call:active {
  transform: scale(0.97);
}

#openStaffCallBtn:focus,
.btn-staff-call:focus {
  outline: 3px solid rgba(96,163,255,0.14);
  outline-offset: 2px;
}

/* --- Footer --- */
.site-footer {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 14px 20px;
  background: #1b1b1b;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  color: #ddd;
  font-family: 'Amatic SC', cursive;
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
    font-size: 24px;
    color: #f06aa6;
}

.footer-links span {
    font-size: 18px;
}

/* --- Login/Registo Container --- */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: #1b1b1b;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  color: white;
}

.login-container h2 {
    font-family: 'Permanent Marker', cursive;
    color: #f06aa6;
    margin-bottom: 20px;
    text-align: center;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-container label {
    font-size: 16px;
    margin-top: 8px;
}

.login-container input {
    padding: 12px 14px;
    border: 2px solid #333;
    background: #222;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.login-container input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    accent-color: #f06aa6;
}

.login-container input:focus {
    outline: none;
    border-color: #f06aa6;
}

.login-container button {
    background-color: #f06aa6;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Amatic SC', cursive;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.login-container button:active {
    transform: scale(0.98);
}

.login-container button:hover {
    background-color: #d44e8a;
}

.login-container .register-text {
    margin-top: 15px;
    text-align: center;
    color: #ccc;
}

.login-container .register-text a {
    color: #f06aa6;
    text-decoration: none;
    font-weight: 700;
}

/* --- Carrinho e Admin --- */

.cart-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #1b1b1b;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.cart-container h2 {
  font-family: 'Permanent Marker', cursive;
  color: #f06aa6;
  margin-bottom: 20px;
  text-align: center;
  font-size: 32px;
}

.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed #333;
  gap: 15px;
}

.item-details {
  flex: 1;
  min-width: 0; /* Permite que o texto quebre */
}

.cart-item .item-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 5px;
}

.cart-item .item-desc {
  font-size: 14px;
  color: #aaa;
}

.item-price {
  font-family: 'Permanent Marker', cursive;
  font-size: 20px;
  color: #f06aa6;
  font-weight: 700;
  flex-shrink: 0;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.item-quantity-editor {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.quantity-change {
  background: #333;
  color: white;
  border: 1px solid #555;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
}

.quantity-change:hover {
  background: #444;
}

.quantity-input {
  width: 50px;
  height: 32px;
  text-align: center;
  background: #222;
  border: 1px solid #555;
  color: white;
  border-radius: 6px;
  font-size: 16px;
  appearance: textfield;
  -moz-appearance: textfield; /* Firefox */
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-item-btn {
  font-size: 14px;
  padding: 6px 12px;
  text-decoration: none;
  color: #f87171;
  border: 1px solid #f87171;
  background: transparent;
  border-radius: 6px;
  transition: background 0.2s;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
}

.remove-item-btn:hover {
  background: rgba(248, 113, 113, 0.1);
  color: white;
}

.call-staff-section {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background: #222;
  border-radius: 8px;
  border: 1px dashed #555;
}

.call-staff-section p {
  margin-bottom: 10px;
  color: #ccc;
}

.cart-summary {
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  font-size: 28px;
  color: #f06aa6;
  padding: 20px 0;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  margin: 20px 0;
}

.btn-call-staff {
  background: #fbbf24;
  color: #1b1b1b;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Amatic SC', cursive;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-call-staff:hover { background: #f59e0b; }
.btn-call-staff:active { transform: scale(0.97); }

.checkout-button {
  background: #f06aa6;
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: 'Amatic SC', cursive;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-height: 52px;
  width: 100%;
  max-width: 400px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.checkout-button:hover {
  background: #d44e8a;
}

.checkout-button:active {
  transform: scale(0.97);
  background: #d44e8a;
}

.admin-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.admin-container h2 {
    font-family: 'Permanent Marker', cursive;
    color: #f06aa6;
    margin-bottom: 20px;
    text-align: center;
}

.admin-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-container th, .admin-container td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}

.admin-container th {
    background: #222;
    color: #f06aa6;
    font-family: 'Amatic SC', cursive;
    font-size: 20px;
}

.action-link {
    color: #f06aa6;
    text-decoration: none;
}

.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #1b1b1b;
}

.status-online { background-color: #4ade80; } 
.status-offline { background-color: #f87171; }
.status-tag.status-online { background-color: #4ade80; } /* Online/Ativo */
.status-tag.status-offline { background-color: #f87171; } /* Offline/Inativo */


/* --- Modal de Ingredientes (Index) --- */

.modal-overlay { 
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.9); 
  z-index: 2000; 
  justify-content: center; 
  align-items: center; 
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-box { 
  background: #1b1b1b; 
  padding: 25px 20px; 
  border: 2px solid #f06aa6; 
  max-width: 400px; 
  width: 100%; 
  border-radius: 12px; 
  color:white;
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.ing-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 15px 0; 
  border-bottom: 1px solid #333; 
  min-height: 44px; /* Área de toque mínima */
}

.ing-row label {
  font-size: 16px;
  flex: 1;
  padding-right: 15px;
}

.ing-row input { 
  width: 24px; 
  height: 24px; 
  accent-color: #f06aa6;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-btns { 
  margin-top: 25px; 
  display: flex; 
  gap: 12px; 
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cancel { 
  background: #444; 
  color: white; 
  border: none; 
  padding: 12px 24px; 
  border-radius: 8px; 
  font-family: 'Amatic SC', cursive; 
  font-size: 20px; 
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  flex: 1;
  min-width: 120px;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.modal-quantity-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid #333;
}

.modal-quantity-selector label {
  font-family: 'Amatic SC', cursive;
  font-size: 24px;
  font-weight: 700;
  color: #f06aa6;
}

.btn-cancel:active {
  transform: scale(0.95);
  background: #555;
}


@media screen and (max-width: 480px) {
  .modal-box {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .ing-row {
    padding: 12px 0;
  }
  .modal-btns {
    flex-direction: column;
  }
  .btn-cancel, 
  .checkout-button {
    width: 100%;
  }
}


/* Header - estilos específicos para links e textos dinâmicos (index) */

.header-greeting {
  color:#f06aa6; 
  font-family:'Amatic SC', cursive; 
  font-size:18px;
}

.header-role-link {
  font-weight:bold;
  text-decoration:none;
}

.header-role-link--admin {
  color:red;
}

.header-role-link--staff {
  color:cyan;
}

.header-logout-link {
  font-size:14px; 
  color:#FF2C2C;
  text-decoration:none;
}

.cart-count {
  color:#fff;  
  font-weight:bold; 
  margin-left:-5px;
}

/* Mobile menu separador de secção */
.mobile-menu-separator {
  border-top: 1px solid #333; 
  margin-top: 10px; 
  padding-top: 10px;
}


/* Estado de item inativo / offline */

.item--inactive {
  opacity: 0.5;
}

.item-offline-label {
  color:red; 
  font-size:12px; 
  border:1px solid red;
  padding: 1px 4px;
  margin-left: 6px;
}

/* --- Menu Mobile - Base --- */
/* Overlay escuro de fundo */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Escondido por default */
.mobile-menu {
  display: none;
  /* Posicionamento Fixo, sobrepõe tudo */
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 320px;
  height: 100vh; /* Ocupa todo o viewport height */
  background: linear-gradient(180deg, #1b1b1b 0%, #141414 100%);
  z-index: 1500; /* Alto z-index para sobrepor o header (1000) */
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out, visibility 0.3s;
  padding: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: scroll; /* Scroll sempre ativo quando menu está aberto */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
}

/* Estado Aberto (Substitui o display:block da media query) */
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  display: block; /* Garante que é visível */
}

/* Header do menu mobile com botão fechar */
.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 2px solid #333;
  background: #1b1b1b;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 60px; /* Altura mínima para área de toque */
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 44px; /* Área de toque mínima recomendada */
  height: 44px;
  -webkit-tap-highlight-color: transparent; /* Remove highlight no mobile */
  touch-action: manipulation; /* Melhora resposta ao toque */
}

.mobile-menu-close:active {
  transform: scale(0.95);
  background: rgba(240, 106, 166, 0.2);
}

.mobile-menu-close:hover {
  background: rgba(240, 106, 166, 0.1);
}

.mobile-menu-close img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  pointer-events: none; /* Evita problemas de clique */
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-bottom: 80px; /* Espaço extra no final para scroll confortável */
  min-height: calc(100vh - 60px); /* Garante que o conteúdo seja scrollável */
}

.mobile-menu li {
  display: block;
  padding: 0;
  border-bottom: 1px solid #2a2a2a;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
}

.mobile-menu.open li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open li:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.open li:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu.open li:nth-child(9) { transition-delay: 0.5s; }
.mobile-menu.open li:nth-child(10) { transition-delay: 0.55s; }
.mobile-menu.open li:nth-child(11) { transition-delay: 0.6s; }
.mobile-menu.open li:nth-child(12) { transition-delay: 0.65s; }

.mobile-menu li:hover {
  background: rgba(240, 106, 166, 0.05);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu .nav-link {
  display: block;
  font-size: 1.6rem;
  padding: 20px 20px;
  color: #fff;
  text-decoration: none;
  font-family: 'Amatic SC', cursive;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
  min-height: 56px; /* Altura mínima para área de toque confortável */
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: rgba(240, 106, 166, 0.2);
  touch-action: manipulation;
}

.mobile-menu .nav-link:active {
  background: rgba(240, 106, 166, 0.1);
  padding-left: 25px;
}

.mobile-menu .nav-link:hover {
  color: #f06aa6;
  padding-left: 25px;
}

.mobile-menu .nav-link--role {
  background-color: rgba(240, 106, 166, 0.1);
  color: #f06aa6;
}

.mobile-menu .nav-link--role:hover {
  background-color: rgba(240, 106, 166, 0.2);
  color: #fff;
}

.mobile-menu .log-out {
  display: block;
  font-size: 1.6rem;
  padding: 20px 20px;
  color: #FF2C2C;
  text-decoration: none;
  font-family: 'Amatic SC', cursive;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
  min-height: 56px; /* Altura mínima para área de toque confortável */
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: rgba(240, 106, 166, 0.2);
  touch-action: manipulation;
}

.mobile-menu li[style*="border-top"] {
  border-top: 2px solid #333 !important;
  margin-top: 10px;
  padding-top: 0;
}

/* Scrollbar personalizada para o menu mobile */
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: #1b1b1b;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: #f06aa6;
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: #d44e8a;
}

/* --- Media Query para Mobile --- */
@media screen and (max-width: 1150px) {
  .nav-list {
    display: none;
  }

  .nav-bar {
    padding: 1rem 1.5rem;
    justify-content: space-between;
  }
  
  header.scrolled .nav-bar {
    padding: 0.5rem 1.5rem;
  }

  .mobile-menu-icon {
    display: block;
  }

  /* Otimização do menu mobile para telas pequenas */
  .mobile-menu {
    width: 92%;
    max-width: none; /* Remove limite máximo em mobile */
  }

  .mobile-menu-header {
    padding: 16px 18px;
    min-height: 56px;
  }

  .mobile-menu-close {
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .mobile-menu-close img {
    width: 32px;
    height: 32px;
  }

  .mobile-menu .nav-link {
    font-size: 1.8rem;
    padding: 22px 18px;
    min-height: 60px; /* Área de toque maior em mobile */
  }

  .mobile-menu li {
    border-bottom: 1px solid #2a2a2a;
  }

  /* Overlay mais escuro em mobile para melhor contraste */
  .mobile-menu-overlay {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
  }

  /* Scroll suave em mobile */
  html {
    scroll-behavior: smooth;
  }

  /* PRIORITY MOBILE: Containers usam mais espaço no ecrã */
  .menu-board {
    max-width: 95%; 
    margin: 20px auto;
    padding: 15px;
  }

  .cart-container {
    max-width: 95%; 
    margin: 20px auto;
    padding: 20px 15px;
  }

  /* Otimização de itens do menu para mobile */
  .item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 16px;
    gap: 8px 16px;
    margin: 15px 15px 15px 15px;
  }

  .item > div:first-child {
    width: auto;
  }

  .actions {
    width: auto;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .item-name {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .item-desc {
    font-size: 15px;
    line-height: 1.4;
  }

  .price {
    font-size: 22px;
    text-align: right;
    display: block;
    width: 100%;
  }

  .btn-pedir {
    padding: 12px 24px;
    font-size: 20px;
    min-height: 48px;
    width: 100%;
  }

  .category {
    font-size: 32px;
    margin: 25px 0 12px;
  }

  .brand {
    font-size: 36px;
    margin-bottom: 25px;
  }

  /* Otimização do carrinho para mobile */
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    gap: 10px;
  }

  .cart-item .item-price {
    align-self: flex-end;
    font-size: 22px;
  }

  .item-actions {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #333;
    margin-top: 10px;
  }


  .cart-container h2 {
    font-size: 28px;
  }

  .cart-summary {
    font-size: 24px;
    padding: 18px 0;
  }

  .checkout-button {
    padding: 16px 24px;
    font-size: 24px;
    min-height: 56px;
  }

  /* Header melhorado para mobile */
  .header-icons {
    gap: 8px;
  }

  .header-icons span {
    font-size: 13px;
  }

  .header-icons a {
    font-size: 12px;
  }

  .cart-icon-img, .user-icon-img {
    width: 28px;
    height: 28px;
  }

  .logo-ft {
    width: 36px;
    height: 36px;
  }

  /* **OTIMIZAÇÃO DE LOGIN/REGISTO MOBILE** */
  .login-container {
    max-width: 95%; /* Ocupar quase toda a largura no ecrã mobile */
    margin: 40px auto; /* Reduzir margem superior/inferior */
    padding: 25px 20px; /* Reduzir o padding horizontal para caber mais */
  }

  .login-container input[type="text"],
  .login-container input[type="password"],
  .login-container input[type="email"], 
  .login-container input[type="tel"] {
    height: 52px; /* Garantir que o campo é fácil de tocar */
    font-size: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }

  .login-container button {
    min-height: 52px;
    font-size: 20px;
    padding: 14px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .login-container button:active {
    transform: scale(0.98);
  }

  .login-container label {
    font-size: 17px;
    margin-top: 12px;
  }

  .login-container h2 {
    font-size: 32px;
  }

  /* Otimização do Toast para mobile */
  .toast {
    font-size: 20px;
    padding: 12px 20px;
    min-width: auto;
    width: calc(100% - 30px);
    max-width: 400px;
    bottom: 15px;
  }
  .toast.show {
    bottom: 25px;
  }
}

/* Otimização para telas muito pequenas (smartphones pequenos) */
@media screen and (max-width: 480px) {
  .mobile-menu {
    width: 95%;
  }

  .mobile-menu-header {
    padding: 14px 16px;
  }

  .mobile-menu .nav-link {
    font-size: 1.7rem;
    padding: 20px 16px;
  }

  .nav-bar {
    padding: 1rem 1rem;
  }

  header.scrolled .nav-bar {
    padding: 0.5rem 1rem;
  }

  .menu-board {
    padding: 12px;
    margin: 15px auto;
  }

  .brand {
    font-size: 32px;
  }

  .category {
    font-size: 28px;
  }

  .item-name {
    font-size: 18px;
  }

  .item-desc {
    font-size: 14px;
  }

  .price {
    font-size: 20px;
  }

  .btn-pedir {
    font-size: 18px;
    padding: 10px 20px;
    min-height: 44px;
  }

  .cart-container {
    padding: 15px 12px;
  }

  .cart-container h2 {
    font-size: 24px;
  }

  .cart-item .item-name {
    font-size: 17px;
  }

  .cart-item .item-price {
    font-size: 20px;
  }

  .cart-summary {
    font-size: 22px;
  }

  .checkout-button {
    font-size: 22px;
    padding: 14px 20px;
  }

  .header-icons span {
    font-size: 12px;
  }

  .header-icons a {
    font-size: 11px;
  }
}

/* Melhorias visuais para staff_orders */
.staff-panel { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.staff-area { background: transparent; border: none; padding: 0; border-radius: 0; }
.tabs { display:flex; gap:8px; margin-bottom:12px; }
.tab-btn { background: #222; color: #ddd; border: 1px solid #2b2b2b; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight:700; }
.tab-btn.active { background: linear-gradient(90deg, #f06aa6, #d44e8a); color: #071013; box-shadow: 0 8px 18px rgba(240,106,166,0.12); }
.pending-badge-inline { background:#ff6b6b; color:#111; padding:2px 8px; border-radius:999px; margin-left:8px; font-weight:700; font-size:12px; }
.staff-area-title { color: #f87171; font-family: 'Permanent Marker', cursive; margin-bottom: 12px; font-size: 18px; }
.staff-calls-grid { display:flex; flex-direction:column; gap:12px; }
.staff-call-card { background:#1b1b1b; border:1px solid #2e2e2e; padding:14px; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,0.45); display:flex; flex-direction:column; gap:8px; }
.staff-call-header { font-weight:700; color:#FAE8B4; }
.staff-call-time { color:#aaa; font-size:13px; }
.btn-attend { background:#4ade80; color:#071013; border:none; padding:8px 10px; border-radius:8px; cursor:pointer; align-self:flex-end; }

.pending-area { padding: 6px 0; }
.pending-badge { display:inline-block; background:#ff6b6b; color:#111; font-weight:700; padding:4px 10px; border-radius:999px; margin-left:10px; font-size:14px; vertical-align:middle; }
.new-badge { display:inline-block; background:#10b981; color:#071013; font-size:12px; padding:2px 8px; border-radius:999px; margin-left:8px; font-weight:700; }

.orders-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap:16px; }
.order-card { background:#1b1b1b; border:1px solid #2e2e2e; padding:14px; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,0.45); display:flex; flex-direction:column; gap:8px; }
.order-header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.table-num { font-weight:700; color:#FAE8B4; }
.order-time { color:#aaa; font-size:13px; }
.order-items { list-style:none; color:#ddd; margin:6px 0 0 0; padding-left:0; }
.order-items li { padding:6px 0; border-bottom:1px dashed #2b2b2b; font-size:14px; }
.item-qty { color:#f06aa6; font-weight:700; margin-right:8px; }
.order-footer { display:flex; justify-content:space-between; align-items:center; margin-top:8px; padding-top:8px; border-top:1px solid #2b2b2b; }
.order-total { color:#f06aa6; font-weight:700; }
.btn-confirm { 
  background: linear-gradient(90deg, #f97316, #f59e0b);
  color: #071013;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(245,158,11,0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn-confirm:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(245,158,11,0.14); filter: brightness(0.98); }
.btn-confirm:active { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(245,158,11,0.10); }
.btn-confirm[disabled] { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.2); }

/* Pequeno ajuste responsivo para botões dentro dos cartões */
@media screen and (max-width: 700px) {
  .btn-confirm { width: 100%; padding: 12px 16px; font-size: 16px; }
}

.order-new { animation: highlightPulse 2s ease-in-out infinite; border-color: rgba(240,106,166,0.22); }
@keyframes highlightPulse { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }

.staff-area { position: sticky; top: 96px; align-self: start; }

.flash-message { position: fixed; right: 20px; top: 80px; z-index: 9999; padding: 12px 18px; border-radius: 10px; display:flex; gap:12px; align-items:center; box-shadow:0 6px 20px rgba(0,0,0,0.5); }
.flash-message.success { background: linear-gradient(90deg, #4ade80, #22c55e); color: #071013; }
.flash-message .flash-text { font-weight:700; }
.flash-close { background: transparent; border: none; color: inherit; font-size: 18px; cursor: pointer; }

@media screen and (max-width: 900px) {
  .staff-panel { grid-template-columns: 1fr; }
  .staff-area { order: 2; position: relative; top: auto; }
  .pending-area { order: 1; }
  .flash-message { left: 16px; right: 16px; }
}

/* Modal de confirmação estilizado */
.confirm-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99999; justify-content: center; align-items: center; padding: 20px; }
.confirm-modal-overlay.visible { display: flex; }
.confirm-modal-box { background: #1b1b1b; border: 1px solid #2e2e2e; padding: 20px; border-radius: 12px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); text-align: center; }
.confirm-modal-title { font-family: 'Permanent Marker', cursive; font-size: 20px; color: #f06aa6; margin-bottom: 8px; }
.confirm-modal-body { color: #ddd; margin-bottom: 18px; font-size: 15px; }
.confirm-modal-buttons { display:flex; gap:12px; justify-content:center; }
.confirm-btn { background: linear-gradient(90deg,#f97316,#f59e0b); color:#071013; border:none; padding:10px 16px; border-radius:10px; font-weight:800; cursor:pointer; }
.confirm-btn:hover { filter:brightness(0.98); transform:translateY(-2px); }
.cancel-btn { background:#333; color:#fff; border:none; padding:10px 14px; border-radius:10px; cursor:pointer; }

@media screen and (max-width: 480px) {
  .confirm-modal-box { padding: 16px; }
  .confirm-modal-buttons { flex-direction: column-reverse; }
  .confirm-btn, .cancel-btn { width: 100%; }
}

/* --- Tabelas Responsivas (Card View) --- */
@media screen and (max-width: 768px) {
  .admin-container table, 
  .admin-container thead, 
  .admin-container tbody, 
  .admin-container th, 
  .admin-container td, 
  .admin-container tr {
    display: block;
  }

  .admin-container thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .admin-container tr {
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #222;
    padding: 10px;
  }

  .admin-container td {
    border: none;
    border-bottom: 1px solid #333;
    position: relative;
    padding-left: 50%;
    text-align: right;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .admin-container td:last-child {
    border-bottom: none;
  }

  .admin-container td:before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: #f06aa6;
    content: attr(data-label);
  }
}

/* --- Toast Notification --- */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #1b1b1b;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  padding: 16px 24px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-family: 'Amatic SC', cursive;
  font-size: 24px;
  border: 2px solid #f06aa6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* --- Banner Sumo do Dia --- */
.daily-special-banner {
  background: linear-gradient(90deg, #d44e8a, #f06aa6);
  color: white;
  text-align: center;
  padding: 12px 20px;
  margin: 30px auto 20px;
  max-width: 600px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.daily-special-banner p {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
  margin: 0;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .daily-special-banner {
    border-radius: 8px;
    max-width: 95%;
    font-size: 24px;
    margin-top: 20px;
  }
}

/* --- Dashboard Grid (Admin/Config) --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dashboard-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  border-color: #f06aa6;
  box-shadow: 0 5px 15px rgba(240, 106, 166, 0.2);
}

.dashboard-card h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
  color: #f06aa6;
  margin-bottom: 10px;
}

.dashboard-card p {
  font-size: 14px;
  color: #aaa;
  flex-grow: 1;
}

.dashboard-card .go-arrow {
  align-self: flex-end;
  font-size: 24px;
  color: #f06aa6;
}

/* --- Admin Form Styles --- */
.btn-back {
  background: #333;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border: 1px solid #555;
  transition: background 0.2s;
}
.btn-back:hover { background: #444; }

.form-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
}

.form-card input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 15px;
  background: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 6px;
  font-size: 16px;
}

.form-card button {
  background: #f06aa6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Amatic SC', cursive;
  font-size: 20px;
}

.form-card button:hover { background: #d44e8a; }

/* --- Staff Orders Layout --- */
.staff-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

.staff-area {
  background: linear-gradient(180deg, rgba(34,34,34,0.6), rgba(25,25,25,0.6));
  border: 1px solid #2b2b2b;
  padding: 16px;
  border-radius: 12px;
}

.staff-area-title {
  color: #f87171;
  font-family: 'Permanent Marker', cursive;
  margin-bottom: 12px;
  font-size: 20px;
}

.staff-calls-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-call-card {
  background: #171717;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.staff-call-header { font-weight: 700; color: #fff; }
.staff-call-time { color: #aaa; font-size: 13px; }
.btn-attend { background: #4ade80; color: #111; border: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }

.pending-area { padding: 6px 0; }
.muted { text-align: center; color: #aaa; font-size: 18px; margin-top: 20px; }

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.order-card {
  background: #1b1b1b;
  border: 1px solid #2e2e2e;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.table-num { font-weight:700; color:#FAE8B4; }
.order-time { color:#aaa; font-size:13px; }

.order-items { list-style: none; color:#ddd; margin: 6px 0 0 0; padding-left: 0; }
.order-items li { padding: 6px 0; border-bottom: 1px dashed #2b2b2b; font-size: 14px; }
.item-qty { color:#f06aa6; font-weight:700; margin-right:8px; }

.order-footer { display:flex; justify-content:space-between; align-items:center; margin-top:8px; padding-top:8px; border-top:1px solid #2b2b2b; }
.order-total { color:#f06aa6; font-weight:700; }
.btn-confirm { background:#f06aa6; color:white; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; }

@media screen and (max-width: 900px) {
  .staff-panel { grid-template-columns: 1fr; }
  .staff-area { order: 2; }
  .pending-area { order: 1; }
}

/* --- Staff Orders Styles --- */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.order-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.table-num {
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  color: #f06aa6;
}

.order-time {
  font-size: 14px;
  color: #aaa;
}

.order-items {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.order-items li {
  margin-bottom: 8px;
  border-bottom: 1px dashed #333;
  padding-bottom: 8px;
}

.item-qty {
  font-weight: bold;
  color: #f06aa6;
  margin-right: 5px;
}

.item-custom {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.btn-confirm {
  width: 100%;
  background: #f06aa6;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Amatic SC', cursive;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.btn-confirm:hover { background: #d44e8a; }

/* --- Kitchen Orders Styles --- */
.kitchen-card {
  background: #222;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.kitchen-card.prep {
  border-color: #fbbf24;
  background: #2a2515;
}

.kitchen-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.kitchen-table-num {
  font-family: 'Permanent Marker', cursive;
  font-size: 28px;
  color: #fff;
}

.status-badge { 
  padding: 4px 8px; 
  border-radius: 4px; 
  font-weight: bold; 
  font-size: 12px; 
  text-transform: uppercase;
}

.status-pendente { background: #f06aa6; color: white; }
.status-prep { background: #fbbf24; color: black; }

.kitchen-order-items {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex: 1;
}

.kitchen-order-items li {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.4;
}

.kitchen-item-qty {
  font-weight: bold;
  color: #f06aa6;
  margin-right: 8px;
  font-size: 20px;
}

.kitchen-item-custom {
  display: block;
  font-size: 14px;
  color: #aaa;
  margin-top: 4px;
  font-style: italic;
}

.btn-action {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-family: 'Amatic SC', cursive;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.btn-start { background: #333; border: 1px solid #555; }
.btn-start:hover { background: #444; }

.btn-finish { background: #4ade80; color: #064e3b; }
.btn-finish:hover { background: #22c55e; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }

.filter-btn {
  padding: 8px 16px;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Amatic SC', cursive;
  font-size: 22px;
  font-weight: bold;
  border: 1px solid #555;
  transition: background 0.2s;
}

.filter-btn:hover { background: #444; }
.filter-btn.active { background: #f06aa6; border-color: #f06aa6; }

/* Badge com contagem de itens por estado */
.state-badge {
  display:inline-block;
  background:#222;
  color:#f06aa6;
  border:1px solid #2b2b2b;
  padding:4px 8px;
  border-radius:999px;
  font-weight:700;
  margin-left:8px;
  font-size:13px;
}

/* --- Admin Section Styles --- */
.section-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.section-title { 
  font-family: 'Amatic SC', cursive; 
  font-size: 32px; 
  color: #f06aa6; 
  margin: 0;
}

/* --- Admin Users Styles --- */
.role-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
  background: #333;
}

.status-active { color: #4ade80; font-weight: bold; }
.status-inactive { color: #f87171; font-weight: bold; }

.action-btn {
  background: #f06aa6; 
  color: white; 
  border: none; 
  padding: 6px 12px; 
  cursor: pointer; 
  border-radius: 4px;
  font-family: 'Amatic SC', cursive;
  font-weight: bold;
  font-size: 18px;
}

.action-btn:hover { background: #d44e8a; }

.admin-container select {
  padding: 6px;
  border-radius: 4px;
  background: #333;
  color: white;
  border: 1px solid #555;
}

/* --- Admin Products Styles --- */
.config-section { margin-bottom: 50px; }

.btn-add {
  background: #f06aa6;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-add:hover { background: #d44e8a; }

@media (max-width: 600px) {
  .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
  }
  .btn-add { width: 100%; text-align: center; }
}

/* --- Staff Calls (Notificações) --- */
.staff-calls-container {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 12px;
  border: 1px dashed #f87171;
  display: none; /* Escondido por defeito se não houver chamados */
}

.staff-calls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.staff-call-card {
  background: #222;
  border: 2px solid #f87171;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  overflow: hidden;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.staff-call-header {
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  color: #f87171;
  margin-bottom: 5px;
}

.staff-call-time {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

.btn-attend {
  width: 100%;
  background: #f87171;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-family: 'Amatic SC', cursive;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-attend:hover {
  background: #ef4444;
}

/* --- Mensagens Flash (global) --- */
.flash-message {
  position: fixed;
  top: 90px;
  right: 20px;
  background: linear-gradient(135deg, #d4ffde, #bff2c9);
  color: #064;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-weight: 700;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: flashSlideIn 280ms ease;
}
.flash-message.success { color: #064; background: linear-gradient(135deg,#c6f6d5,#9ae6b4); }
.flash-message.error { color: #720; background: linear-gradient(135deg,#ffd6d6,#ffb3b3); }
.flash-close { background: transparent; border: none; font-size: 18px; line-height: 1; cursor: pointer; color: rgba(5,5,5,0.6); padding: 4px; border-radius: 6px; }
@keyframes flashSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* --- Juntar Mesas Page Styles --- */
.table-card { display:flex; justify-content:space-between; align-items:center; padding:10px; border:1px solid #333; border-radius:8px; margin-bottom:8px; background:#080808; transition: background .2s; }
.table-card.selected { background:#1a1a1a; }
.table-card input[type="checkbox"] { margin-right:10px; }
.tables-list { max-height:420px; overflow:auto; padding:8px; }
.target-select { display:flex; gap:8px; align-items:center; }
.btn-small { background:#444; color:#fff; padding:4px 8px; border:none; border-radius:4px; cursor:pointer; }
.btn-small:hover { background:#555; }

@media (max-width: 768px) {
    /* Juntar Mesas specific */
    .menu-board > div[style*="max-width:1000px"] { flex-direction:column; }
    /* Tornando a regra 'aside' mais específica para não afetar outras páginas */
    .menu-board > div[style*="max-width:1000px"] > aside { width:100% !important; }
    .tables-list { max-height:300px; }
}

@media (max-width: 480px) {
    /* Juntar Mesas specific */
    .target-select { flex-direction:column; align-items:flex-start; }
    .target-select label { margin-bottom:4px; }
}