/* Custom styles for Ship Master game */

.game-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Smooth animations for progress bars */
.progress-bar {
  transition: width 0.3s ease-in-out;
}

/* Hover effects for interactive elements */
.order-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.vehicle-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

/* Pulse animation for urgent orders */
.urgent-order {
  animation: pulse 2s infinite;
}

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

/* Custom scrollbar for order lists */
.order-list::-webkit-scrollbar {
  width: 6px;
}

.order-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Map city markers */
.city-marker {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.city-marker:hover {
  transform: scale(1.2);
}

/* Button press effect */
.btn-press:active {
  transform: scale(0.98);
}

/* Loading spinner for game elements */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}

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

/* Notification styles */
.notification {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive design improvements */
@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .header-stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .order-card, .vehicle-card {
    padding: 12px;
  }
}

/* Fuel meter colors */
.fuel-high { background-color: #10b981; }
.fuel-medium { background-color: #f59e0b; }
.fuel-low { background-color: #ef4444; }

/* Difficulty badges */
.difficulty-easy { 
  background-color: #dcfce7; 
  color: #166534; 
}
.difficulty-medium { 
  background-color: #fef3c7; 
  color: #92400e; 
}
.difficulty-hard { 
  background-color: #fee2e2; 
  color: #991b1b; 
}

/* Money counter animation */
.money-counter {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.money-increase {
  color: #10b981;
}

.money-decrease {
  color: #ef4444;
}