.online-players-container {
  position: absolute;
  top: 100px;
  right: 10px;
  width: 250px;
  z-index: 10;
}

.online-players {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.online-players h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-color);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.online-players-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.online-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.2s;
}

.online-player:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Building Styles */
.building-container {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.building-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.building-description {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Map Styles */
.map-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}




/* Map container */
.map-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 180px);
  overflow: auto;
  background-color: #1a1a1a;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin: 10px;
  padding: 20px;
  scroll-behavior: smooth;
}

.map-wrapper {
  display: inline-block;
  min-width: 100%;
  min-height: 100%;
}

#tile-map {
  display: grid;
  grid-gap: 2px;
  padding: 20px;
  min-width: max-content;
  min-height: max-content;
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin: 20px auto;
}

.tile {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  background-color: #2a2a2a;
  border: 1px solid rgba(85, 85, 85, 0.5);
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-image: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

.tile:hover {
  transform: scale(1.1);
  z-index: 20;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
  border-color: var(--accent-gold);
}

.tile:active {
  transform: scale(1.05);
  transition: transform 0.1s;
}

/* Tile content */
.tile i, .location-icon {
  font-size: 24px;
  pointer-events: none;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

/* Location type specific styles */
.location-bank { color: #f1c40f; }
.location-casino { color: #e74c3c; }
.location-hospital { color: #e74c3c; }
.location-police { color: #3498db; }
.location-weapon-shop { color: #bdc3c7; }
.location-bar { color: #e67e22; }

/* Hover effects */
.tile:hover .location-icon {
  transform: scale(1.2);
  text-shadow: 0 0 15px currentColor;
}

/* Tile coordinates (for debugging) */
.tile-coords {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  background: rgba(0,0,0,0.5);
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: bold;
  z-index: 3;
}

/* Player tile */
.tile.player {
  background-color: #4a6fa5;
  color: white;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(74, 111, 165, 0.8);
  z-index: 5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Building tile */
.tile.building {
  background-color: #3a3a3a;
  color: #d4af37;
  font-size: 14px;
}

/* Road/trail tile */
.tile.road {
  background-color: #333;
  color: #888;
}

/* Special location */
.tile.special {
  background-color: #3a2a4a;
  color: #b388ff;
}

/* Gold Mine Styles */
.gold-mine-container {
  padding: 1.5rem;
}

.mine-info {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.mining-area {
  background-color: rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--gold-color);
  text-align: center;
  position: relative;
}

.gold-counter {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mining-animation-area {
  height: 150px;
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.gold-particle {
  position: absolute;
  color: var(--gold-color);
  font-weight: bold;
  animation: floatUp 1.5s ease-out forwards;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

.mine-gold-btn {
  background-color: var(--gold-color);
  color: var(--secondary-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.mine-gold-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background-color: var(--primary-dark);
}

.mine-gold-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.mine-icon {
  font-size: 1.4rem;
}

/* Bullet Factory Styles */
.bullet-factory-container {
  padding: 1.5rem;
}

.factory-description {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.bullet-factory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.bullet-factory-title {
  color: var(--bullet-factory-color);
  margin: 0;
}

.bullet-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 152, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--bullet-factory-color);
}

.bullet-production-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bullet-timer,
.bullet-price {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-progress {
  height: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.bullet-progress .progress {
  height: 100%;
  background-color: var(--bullet-factory-color);
  transition: width 0.3s;
}

.bullet-purchase {
  background-color: rgba(255, 152, 0, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--bullet-factory-color);
  text-align: center;
}

.bullet-amount-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.bullet-amount-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bullet-factory-color);
  color: var(--text-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.bullet-amount-btn:hover {
  background-color: rgba(255, 152, 0, 0.3);
}

.bullet-amount-display {
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

.bullet-total-cost {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.buy-bullets-btn {
  background-color: var(--bullet-factory-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.buy-bullets-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.buy-bullets-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Common Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background-color: var(--primary-dark);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.crime-progress {
  text-align: center;
  padding: 1.5rem;
}

.crime-result {
  text-align: center;
  padding: 1.5rem;
}

.crime-result.success {
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 10px;
  border: 1px solid var(--success-color);
}

.crime-result.failure {
  background-color: rgba(244, 67, 54, 0.1);
  border-radius: 10px;
  border: 1px solid var(--danger-color);
}

.success-text {
  color: var(--success-color);
}

.failure-text {
  color: var(--danger-color);
}

.crime-rewards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.reward-icon {
  font-size: 1.2rem;
}

.level-up {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 1rem 0;
  animation: pulse 2s infinite;
}

/* Gold Nuggets Counter Styles */
.gold-info, .gold-nuggets-info, .bullet-info {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gold-info {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.gold-nuggets-info {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.gold-nuggets-info .gold-nugget-icon {
  color: #ffc107;
  font-size: 1.1em;
  margin-right: 5px;
  text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.gold-nuggets-count {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.attack-section h4 {
  margin-top: 0;
  color: var(--danger-color);
  margin-bottom: 10px;
}

.attack-info {
  margin-bottom: 15px;
}

.attack-info p {
  margin: 5px 0;
}

.attack-btn {
  background-color: var(--danger-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.attack-btn:hover {
  background-color: #d32f2f;
}

.cooldown-message {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

/* Battle Result Styles */
.battle-result {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}

.battle-result.victory {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.battle-result.defeat {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.battle-result h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.victory h3 {
  color: #4caf50;
}

.defeat h3 {
  color: #f44336;
}

.money-gained {
  color: #4caf50;
  font-weight: bold;
}

.money-lost {
  color: #f44336;
  font-weight: bold;
}

/* Responsive Improvements */
@media (max-width: 992px) {
 

  .game-sidebar {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sidebar-nav li {
    margin-bottom: 0;
  }

  .sidebar-nav a {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {

  .bullet-production-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .bullet-timer,
  .bullet-price {
    width: 100%;
    justify-content: center;
  }

  
}

@media (max-width: 480px) {

  .online-players-container {
    position: absolute;
    bottom: 100px;
    right: 10px;
    width: 250px;
    z-index: 10;
  }
 

  /* Make sidebar horizontal scrollable */
  .game-sidebar {
    padding: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: max-content;
    padding-bottom: 0.5rem; /* For scrollbar space */
  }

  .sidebar-nav li {
    flex-shrink: 0;
  }

  .sidebar-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .icon {
    font-size: 1rem;
  }

  /* Game content adjustments */
  .game-content {
    padding: 1rem;
  }

  /* Building adjustments */
  .building-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .building-description {
    font-size: 0.9rem;
  }

  /* Gold mine adjustments */
  .mine-gold-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  .mining-animation-area {
    height: 100px;
  }

  /* Bullet factory adjustments */
  .bullet-amount-btn {
    width: 30px;
    height: 30px;
  }

  .bullet-amount-display {
    font-size: 1.2rem;
    min-width: 40px;
  }

  .buy-bullets-btn {
    width: 100%;
  }

  /* Button adjustments */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
  }
}
/* In public/css/game.css */
.fish-market-intro,
.fishing-info {
  text-align: center;
  margin-bottom: 20px;
}

.fish-list {
  margin-top: 15px;
  border-top: 1px solid #444;
  padding-top: 15px;
}

.fish-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

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

.btn-sell {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-sell:hover {
  background-color: #218838;
}

#start-fishing {
  margin-top: 15px;
  padding: 8px 20px;
  font-size: 1.1em;
}