.mapa-lotes {
  width: 100%;
  height: 100%;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mapa-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  filter: brightness(0.8) contrast(1.2);
}

.mapa-imagem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.mapa-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 30px;
}

.quadras-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.quadra {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(10px);
}

.quadra-titulo {
  color: #3498db;
  font-size: 1.2rem;
  margin: 0 0 15px 0;
  text-align: center;
  font-weight: 600;
}

.lotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  gap: 8px;
}

.lote {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.lote:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lote.disponivel {
  background: #2ecc71;
  color: white;
}

.lote.reserva {
  background: #f39c12;
  color: white;
}

.lote.processamento {
  background: #3498db;
  color: white;
}

.lote.destacado {
  animation: highlight 1s ease-in-out 3;
  border-color: #fff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes highlight {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.lote-numero {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.mapa-configurador {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0e27;
  color: white;
}

.config-header {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-bottom: 2px solid #2ecc71;
}

.config-header h2 {
  margin: 0 0 15px 0;
  color: #2ecc71;
}

.config-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 300px;
}

.lote-atual {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3498db;
  min-width: 100px;
}

.progress-bar {
  flex: 1;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #3498db);
  transition: width 0.3s ease;
}

.progress-text {
  font-weight: bold;
  color: #bdc3c7;
}

.config-buttons {
  display: flex;
  gap: 10px;
}

.config-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.config-buttons button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.config-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.config-buttons .btn-primary {
  background: #2ecc71;
  color: white;
}

.config-buttons .btn-danger {
  background: #e74c3c;
  color: white;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 8px;
}

.zoom-controls button {
  width: 30px;
  height: 30px;
  border: none;
  background: #3498db;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.mapa-area {
  flex: 1;
  overflow: auto;
  position: relative;
  cursor: crosshair;
  background: #1a1f3a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mapa-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.lote-marker {
  position: absolute;
  transform-origin: center;
  pointer-events: none;
}

.marker-dot {
  width: 12px;
  height: 12px;
  background: #2ecc71;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
  animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.config-instrucoes {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.config-instrucoes h3 {
  margin: 0 0 10px 0;
  color: #3498db;
}

.config-instrucoes ol {
  margin: 0;
  padding-left: 20px;
}

.config-instrucoes li {
  margin: 5px 0;
}

.dica {
  margin: 10px 0 0 0;
  color: #f39c12;
  font-style: italic;
}
/* Versão compacta para header - CARDS MAIORES */
.estatisticas-compact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.estatisticas-compact .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  border: 3px solid transparent;
  min-width: 140px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  flex-shrink: 1;
}

.estatisticas-compact .stat-item.total {
  border-color: #1a5c8a;
  background: rgba(26, 92, 138, 0.15);
}

/* CORES ESCURAS UNIFICADAS - CARDS DO HEADER */
.estatisticas-compact .stat-item.disponivel {
  border-color: #0d5a24;
  background: rgba(13, 90, 36, 0.25);
}

.estatisticas-compact .stat-item.reservada {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.25);
}

.estatisticas-compact .stat-item.processamento {
  border-color: #003d7a;
  background: rgba(0, 61, 122, 0.25);
}

.estatisticas-compact .stat-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.estatisticas-compact .stat-label {
  font-size: 0.9rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.estatisticas-compact .stat-percent {
  font-size: 1.3rem;
  color: #0d5a24;
  font-weight: 800;
  margin-top: 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Legenda inline no header - COMPACTADA */
.legenda-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  flex-shrink: 0;
}

.legenda-inline .legenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.legenda-inline .legenda-cor {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* CORES ESCURAS - UNIFICADAS COM O MAPA */
.legenda-cor.disponivel { background: #0d5a24; }
.legenda-cor.reservada { background: #b91c1c; }
.legenda-cor.processamento { background: #003d7a; }
.legenda-cor.bloqueada { background: #374151; }

.mudancas-recentes {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  animation: slideIn 0.5s ease;
}

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

.mudancas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mudanca-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #f39c12;
}

.mudanca-lote {
  font-weight: 600;
  font-size: 1.1rem;
  color: #3498db;
  margin-bottom: 8px;
}

.mudanca-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.mudanca-info .status {
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}

/* CORES ESCURAS - UNIFICADAS */
.status.disponível, .status.disponivel {
  background: #0d5a24;
  color: white;
}

.status.reservada {
  background: #b91c1c;
  color: white;
}

.status.processamento {
  background: #003d7a;
  color: white;
}

.status.vendida {
  background: #991b1b;
  color: white;
}

.status.bloqueada {
  background: #374151;
  color: white;
}

.arrow {
  font-size: 1.2rem;
  color: #bdc3c7;
}
.dashboard {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

/* ======== HEADER OTIMIZADO - COMPACTO E RESPONSIVO ======== */
.header {
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 20px;
  border-bottom: 2px solid #0d5a24;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.header-left {
  flex-shrink: 0;
  min-width: 0;
}

.header-left h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.status-indicator.connected .status-dot {
  background-color: #0d5a24;
}

.status-indicator.disconnected .status-dot {
  background-color: #b91c1c;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.last-update {
  color: #bdc3c7;
  font-size: 0.7rem;
  white-space: nowrap;
}

.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 0;
  min-height: 0;
}

.mapa-container-full {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
}

/* ======== RESPONSIVIDADE DO HEADER ======== */
@media (max-width: 1600px) {
  .header-left h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 1366px) {
  .header {
    padding: 8px 15px;
  }

  .header-content {
    gap: 10px;
  }

  .header-left h1 {
    font-size: 1.6rem;
  }

  .status-indicator {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

@media (max-width: 1024px) {
  .header-left h1 {
    font-size: 1.4rem;
  }

  .last-update {
    font-size: 0.65rem;
  }
}
