/* ===== VARIÁVEIS CSS ===== */
:root {
  /* Cores da bandeira de Limoeiro-PE: verde, branco e amarelo */
  --primary: #006400;      /* Verde escuro */
  --primary-dark: #004d00; /* Verde mais escuro */
  --secondary: #ffcc00;    /* Amarelo */
  --accent: #ffdd55;       /* Amarelo claro */
  --light: #f5f5f5;        /* Branco/off-white */
  --success: #4caf50;
  --error: #f44336;
  --warning: #ff9800;
  --text: #333333;
  --milk: #f8f8ff;         /* Cor do leite */
  --milk-dark: #e6e6fa;    /* Cor do leite mais escura */
  --river: #a5d6f7;        /* Cor do rio */
  --road: #b3b3b3;         /* Cor das estradas */
  --building: #d9d9d9;     /* Cor dos edifícios */
  --green: #b8e0b8;        /* Áreas verdes */
  
  /* Sombras */
  --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 20px rgba(0,0,0,0.15);
  
  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET E BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 30px 20px;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-heavy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
  overflow: hidden;
}

.city-emblem {
  width: 90px;
  height: 90px;
  background-color: white;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.city-emblem:hover {
  transform: scale(1.05);
}

.city-emblem img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 15px;
  opacity: 0.95;
  font-weight: 400;
}

.flag-stripe {
  height: 10px;
  width: 80%;
  margin: 20px auto 0;
  background: linear-gradient(90deg, var(--primary) 33%, white 33%, white 66%, var(--secondary) 66%);
  border-radius: 5px;
  box-shadow: var(--shadow-light);
}

/* ===== LAYOUT DO JOGO ===== */
.game-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 1200px) {
  .game-container {
    grid-template-columns: 2fr 1fr;
  }
}

.left-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ===== MAPA ===== */
.map-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  background-color: white;
  height: 500px;
  transition: transform var(--transition-normal);
}

.map-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

#mapa {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

/* ===== MARCADORES DO MAPA ===== */
.location-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid white;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 5;
}

.location-marker:hover, .location-marker.active {
  background-color: var(--secondary);
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.location-marker.completed {
  background-color: var(--success);
  animation: completedPulse 2s ease-in-out;
}

.location-marker.urgent {
  background-color: var(--error);
  animation: urgentPulse 1.5s infinite;
}

.location-marker.priority {
  background-color: var(--warning);
  animation: priorityPulse 2s infinite;
}

@keyframes urgentPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2); 
    box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
  }
}

@keyframes priorityPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    box-shadow: 0 0 0 8px rgba(255, 152, 0, 0);
  }
}

@keyframes completedPulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.4); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.location-label {
  position: absolute;
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  transform: translate(-50%, -35px);
  white-space: nowrap;
  z-index: 6;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.location-marker:hover .location-label {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--text);
  transform: translate(-50%, -40px) scale(1.05);
}

/* ===== CAMINHÃO DE LEITE ===== */
.milk-truck {
  position: absolute;
  width: 50px;
  height: 30px;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  transform-origin: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.milk-truck svg {
  width: 100%;
  height: 100%;
}

.milk-truck:hover {
  transform: scale(1.1);
}

/* ===== ELEMENTOS DO MAPA ===== */
.instructions {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  padding: 15px;
  border-radius: 12px;
  position: absolute;
  bottom: 15px;
  left: 15px;
  font-size: 0.9rem;
  max-width: 220px;
  box-shadow: var(--shadow-medium);
  z-index: 5;
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.instructions h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.instructions p {
  margin-bottom: 6px;
  color: var(--text);
}

.map-legend {
  position: absolute;
  bottom: 15px;
  right: 60px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  padding: 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-medium);
  z-index: 5;
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-color {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.2);
}

.zoom-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-fast);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary);
}

.zoom-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ===== PAINEL DE PERGUNTAS ===== */
.question-panel {
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow-heavy);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.mission-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light);
}

.mission-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
}

.mission-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.location-info {
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.location-icon {
  margin-right: 12px;
  color: var(--primary);
}

.location-name {
  font-weight: 600;
  color: var(--primary-dark);
  flex: 1;
}

.urgency-badge {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.urgency-badge.urgent {
  background: linear-gradient(135deg, var(--error) 0%, #d32f2f 100%);
}

.urgency-badge.priority {
  background: linear-gradient(135deg, var(--warning) 0%, #f57c00 100%);
}

.urgency-badge.normal {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.question-content {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 20px;
}

.question-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--light);
}

.question-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#question {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
  font-weight: 500;
}

/* ===== OPÇÕES DE RESPOSTA ===== */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.option-btn {
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.option-btn:hover::before {
  left: 100%;
}

.option-btn:hover {
  background: linear-gradient(135deg, #e8f4ea 0%, #d4edda 100%);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.option-btn.selected {
  background: linear-gradient(135deg, #e8f4ea 0%, #d4edda 100%);
  border-color: var(--primary);
  box-shadow: var(--shadow-medium);
}

.option-btn.correct {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.3) 100%);
  border-color: var(--success);
  color: #2e7d32;
}

.option-btn.incorrect {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.3) 100%);
  border-color: var(--error);
  color: #c62828;
}

/* ===== BOTÕES ===== */
.submit-container {
  display: flex;
  justify-content: flex-end;
}

#submit-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

#submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

#submit-btn:hover::before {
  left: 100%;
}

#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,100,0,0.4);
}

#submit-btn:disabled {
  background: linear-gradient(135deg, #cccccc 0%, #b3b3b3 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-light);
}

.restart-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,100,0,0.4);
}

/* ===== RESULTADOS ===== */
#result {
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  font-weight: 600;
  display: none;
  animation: slideIn 0.5s ease;
}

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

.correct {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.3) 100%);
  color: #2e7d32;
  border-left: 5px solid var(--success);
}

.incorrect {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.3) 100%);
  color: #c62828;
  border-left: 5px solid var(--error);
}

.hint {
  font-size: 0.9rem;
  color: #757575;
  margin-top: 15px;
  font-style: italic;
  padding: 10px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 8px;
}

/* ===== PAINEL DE PROGRESSO ===== */
.progress-container {
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow-heavy);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.progress-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-box {
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition-fast);
}

.stat-box:hover {
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--milk-dark) 0%, var(--milk) 50%, var(--milk-dark) 100%);
  width: 0%;
  transition: width var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, .2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, .2) 50%,
    rgba(255, 255, 255, .2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 50px 50px;
  animation: move 2s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* ===== TABELA DE CONVERSÃO ===== */
.conversion-table {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(0,0,0,0.05);
}

.conversion-table h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-weight: 600;
}

.conversion-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.conversion-row:last-child {
  border-bottom: none;
}

.penalty-info {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  padding: 10px;
  background-color: rgba(244, 67, 54, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--error);
}

.penalty-info strong {
  color: var(--error);
}

/* ===== PAINEL DE MENSAGENS ===== */
.messages-panel {
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.messages-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages-title {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.messages-icon {
  margin-right: 12px;
}

.messages-count {
  background-color: var(--secondary);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 15px;
  min-width: 24px;
  text-align: center;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 400px;
}

.message {
  display: flex;
  gap: 15px;
  animation: messageSlideIn 0.5s ease;
}

@keyframes messageSlideIn {
  from { 
    opacity: 0; 
    transform: translateX(-20px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

.message-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
  font-size: 1.3rem;
  border: 2px solid white;
  box-shadow: var(--shadow-medium);
}

.message-content {
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  padding: 15px 20px;
  border-radius: 0 16px 16px 16px;
  position: relative;
  flex: 1;
  border: 1px solid rgba(0,0,0,0.05);
}

.message-sender {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-urgency {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.message-urgency.urgent {
  background: linear-gradient(135deg, var(--error) 0%, #d32f2f 100%);
}

.message-urgency.priority {
  background: linear-gradient(135deg, var(--warning) 0%, #f57c00 100%);
}

.message-text {
  line-height: 1.5;
  color: var(--text);
}

.message-time {
  font-size: 0.8rem;
  color: #777;
  text-align: right;
  margin-top: 8px;
  font-style: italic;
}

/* Variações de mensagens */
.message.customer .message-content {
  background: linear-gradient(135deg, #e8f4ea 0%, #d4edda 100%);
}

.message.complaint .message-content {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.message.urgent .message-content {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-left: 5px solid var(--error);
}

.message.priority .message-content {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 5px solid var(--warning);
}

.message.player .message-content {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 16px 0 16px 16px;
}

.message.player {
  flex-direction: row-reverse;
}

.message.player .message-avatar {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0277bd;
}

/* ===== RESPOSTA DE MENSAGEM ===== */
.message-response {
  display: flex;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  gap: 15px;
}

.message-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.message-input:focus {
  outline: none;
  border-color: var(--primary);
}

.send-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-medium);
}

.send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,100,0,0.4);
}

/* ===== LISTA DE CLIENTES ===== */
.customer-list {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.customer-list-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.customer-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.customer-item:hover {
  background: linear-gradient(135deg, #e8f4ea 0%, #d4edda 100%);
  transform: translateX(5px);
}

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

.customer-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  box-shadow: var(--shadow-light);
}

.customer-avatar.urgent {
  background: linear-gradient(135deg, var(--error) 0%, #d32f2f 100%);
}

.customer-avatar.priority {
  background: linear-gradient(135deg, var(--warning) 0%, #f57c00 100%);
}

.customer-info {
  flex: 1;
}

.customer-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.customer-location {
  font-size: 0.8rem;
  color: #666;
}

.customer-urgency {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.customer-urgency.urgent {
  background: linear-gradient(135deg, var(--error) 0%, #d32f2f 100%);
}

.customer-urgency.priority {
  background: linear-gradient(135deg, var(--warning) 0%, #f57c00 100%);
}

.customer-urgency.normal {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ===== TIMER ===== */
.timer-container {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding: 10px 15px;
  background: linear-gradient(135deg, var(--light) 0%, #e8f4ea 100%);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.timer-icon {
  margin-right: 12px;
  color: var(--primary);
}

.timer-bar-container {
  flex: 1;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.timer-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  width: 100%;
  transition: width 1s linear;
  border-radius: 5px;
}

.timer-bar.urgent {
  background: linear-gradient(90deg, var(--error) 0%, #d32f2f 100%);
}

.timer-bar.priority {
  background: linear-gradient(90deg, var(--warning) 0%, #f57c00 100%);
}

.timer-value {
  margin-left: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  min-width: 45px;
}

/* ===== MENSAGEM DE CONCLUSÃO ===== */
.completion-message {
  display: none;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  margin-top: 30px;
  border: 1px solid rgba(0,0,0,0.05);
  animation: completionSlideIn 0.8s ease;
}

@keyframes completionSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.completion-message h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
}

.completion-message p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.completion-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  border: 4px solid var(--primary);
}

.completion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CELEBRAÇÃO ===== */
.celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  display: none;
}

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #f0f;
  opacity: 0.8;
  border-radius: 2px;
}

/* ===== TOOLTIP ===== */
.tooltip {
  position: absolute;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 20;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(10px);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .game-container {
    gap: 20px;
  }
  
  .left-panel {
    gap: 20px;
  }
  
  .map-container {
    height: 400px;
  }
  
  .question-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .question-image {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .instructions {
    position: static;
    margin-top: 15px;
    max-width: none;
  }
  
  .map-legend {
    position: static;
    margin-top: 15px;
  }
  
  .zoom-controls {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .city-emblem {
    width: 70px;
    height: 70px;
  }
  
  .city-emblem img {
    width: 60px;
    height: 60px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .question-panel,
  .progress-container,
  .messages-panel {
    padding: 20px;
  }
  
  .mission-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .mission-title {
    font-size: 1.2rem;
  }
  
  #question {
    font-size: 1.1rem;
  }
  
  .option-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}

