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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 20px;
}

@media (max-width: 768px) {
  .container {
    max-width: 400px;
    padding: 20px;
  }
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.logo p {
  color: #666;
  font-size: 0.9rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ff8c42;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #5a6268;
  box-shadow: 0 10px 20px rgba(108, 117, 125, 0.3);
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.loading {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff8c42;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.links {
  text-align: center;
  margin-top: 20px;
}

.links a {
  color: #ff8c42;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #ff6b35;
}

.dashboard {
  max-width: 800px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e1e5e9;
}

.dashboard-content {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
}

.dashboard-content h3 {
  color: #333;
  margin-bottom: 15px;
}

.dashboard-content p {
  color: #666;
  margin-bottom: 20px;
}

.logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .container {
    margin: 10px;
    padding: 30px 20px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
}

/* Estilos para pedidos */
.filter-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-group .btn {
  padding: 8px 16px;
  font-size: 14px;
}

.filter-group .btn.active {
  background-color: #e67e22;
  color: white;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.order-item.pending {
  border-left: 4px solid #f39c12;
}

.order-item.ready {
  border-left: 4px solid #27ae60;
  background-color: #f0f8f0;
}

.order-info {
  flex: 1;
}

.order-id {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-phone {
  color: #7f8c8d;
  margin-bottom: 5px;
}

.order-date {
  font-size: 12px;
  color: #95a5a6;
}

.order-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.pending {
  background-color: #f39c12;
  color: white;
}

.status-badge.ready {
  background-color: #27ae60;
  color: white;
}

/* Badge específico ao lado do número do pedido */
.order-id .status-badge {
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Spinner para botões */
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 6px;
}

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

/* Botão desabilitado */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.completed {
  color: #27ae60;
  font-weight: bold;
  font-size: 14px;
}

.empty {
  text-align: center;
  color: #7f8c8d;
  padding: 40px;
  font-style: italic;
}

.error {
  text-align: center;
  color: #e74c3c;
  padding: 20px;
  background-color: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

.loading {
  text-align: center;
  color: #7f8c8d;
  padding: 20px;
}

/* Layout responsivo para dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 20px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dashboard-sidebar,
  .dashboard-main {
    gap: 15px;
  }
}

/* Estilos para cards em telas grandes */
.card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.card h2 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #e67e22;
  padding-bottom: 8px;
}

/* Grid para pedidos em telas grandes */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .orders-grid {
    grid-template-columns: 1fr;
  }
}

/* Melhorar layout dos pedidos */
.order-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.order-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (min-width: 769px) {
  .order-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .order-info {
    flex: 1;
  }
  
  .order-status {
    flex-direction: row;
    align-items: center;
  }
}

/* Header responsivo com menu */
.header {
  margin-bottom: 30px;
}

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

.header-spacer {
  width: 40px; /* Mesma largura do menu para equilibrar */
  height: 40px;
  flex-shrink: 0;
}

.header-menu {
  position: relative;
  flex-shrink: 0;
}

.header-info {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-info h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.header-info p {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin: 0;
}


/* Menu sanduíche */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: rgba(230, 126, 34, 0.1);
}

.menu-toggle:hover .menu-icon span {
  background: #e67e22;
}

.menu-toggle.active {
  background: rgba(230, 126, 34, 0.2);
}

.menu-toggle.active .menu-icon span {
  background: #e67e22;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 20px;
  height: 16px;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: #2c3e50;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  width: 100%;
}

.menu-toggle.active .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown menu */
.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

.menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px;
}

.menu-item:hover {
  background: rgba(230, 126, 34, 0.1);
  color: #e67e22;
}

/* Seções do menu */
.menu-section {
  padding: 8px 0;
}

.menu-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px 4px;
  margin-bottom: 4px;
}

.menu-divider {
  height: 1px;
  background: #e9ecef;
  margin: 8px 0;
}

/* Filtros no menu mobile */
.menu-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
}

.menu-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #2c3e50;
  width: 100%;
  text-align: left;
}

.menu-filter-btn:hover {
  background: rgba(230, 126, 34, 0.1);
  color: #e67e22;
}

.menu-filter-btn.active {
  background: rgba(230, 126, 34, 0.2);
  color: #e67e22;
  font-weight: 600;
}

.menu-filter-btn .filter-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
  min-width: 16px;
  text-align: center;
}

.menu-icon-item {
  font-size: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
  .header-spacer {
    width: 36px; /* Ajustado para mobile */
  }
  
  .header-info h1 {
    font-size: 2rem;
  }
  
  .header-info p {
    font-size: 1rem;
  }
  
  .menu-dropdown {
    min-width: 200px;
    max-width: 280px;
  }
  
  .menu-item {
    padding: 10px 14px;
  }
  
  /* Esconder filtros desktop em mobile */
  .dashboard-sidebar .card:last-child {
    display: none;
  }
  
  /* Ajustar layout mobile */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    gap: 15px;
  }
}

/* Mostrar filtros desktop apenas em telas maiores */
@media (min-width: 769px) {
  .menu-section {
    display: none;
  }
}

/* Footer removido - botão de sair agora é fixo */

/* Melhorar filtros */
.filter-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group .btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.filter-group .btn:hover {
  transform: translateY(-1px);
}

.filter-group .btn.active {
  background-color: #e67e22;
  color: white;
  box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}

/* Badges nos filtros */
.filter-badge {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 6px;
  min-width: 18px;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Badge vazio (0) - mais discreto */
.filter-badge:empty,
.filter-badge[data-count="0"] {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.1);
}

/* Badge com conteúdo - mais destacado */
.filter-badge:not(:empty):not([data-count="0"]) {
  opacity: 1;
  transform: scale(1.05);
}

.filter-group .btn:hover .filter-badge {
  background: rgba(255, 255, 255, 0.3);
}

.filter-group .btn.active .filter-badge {
  background: rgba(255, 255, 255, 0.3);
}

/* Badges específicos por status */
.pending-badge {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.ready-badge {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.filter-group .btn:hover .pending-badge {
  background: rgba(243, 156, 18, 0.3);
}

.filter-group .btn:hover .ready-badge {
  background: rgba(39, 174, 96, 0.3);
}

.filter-group .btn.active .pending-badge,
.filter-group .btn.active .ready-badge {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Melhorias para telas muito grandes */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
    padding: 50px;
  }
  
  .dashboard-layout {
    gap: 40px;
  }
  
  .orders-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
  }
  
  .card {
    padding: 25px;
  }
  
  .order-item {
    padding: 25px;
  }
}

/* Melhorias para telas médias */
@media (min-width: 769px) and (max-width: 1199px) {
  .container {
    max-width: 1000px;
  }
  
  .orders-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Estatísticas removidas - agora usando badges nos filtros */

/* Estilos antigos do botão de sair removidos - agora usando menu sanduíche */
