  * {
    font-family: 'Poppins';
  }

  html, body {
    margin:0;
    padding:0;
    height:100%;
    overflow: hidden;
    background: #fff;
    color: #000;
  }

  #map { width: 100%; height: 100%; }

  .popup-container {
  min-width: 200px;
  color: #333;
  }

  .popup-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    color: #d32f2f;
  }

  .popup-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 14px;
  }

  .label {
    font-weight: 600;
    color: #555;
  }
  
  .custom-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
    background: rgba(255,255,255,0.9);
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.3s, color 0.3s;
  }

  .custom-controls button {
    margin: 3px 0;
    padding: 6px 10px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
  }
  
  .custom-controls button:hover {
    background: #45a049;
  }

  body.night-mode {
    background: #121212;
    color: #eee;
  }

  body.night-mode .custom-controls {
    background: rgba(30,30,30,0.85);
    color: #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.9);
  }

  body.night-mode .custom-controls button {
    background: #2196F3;
    color: white;
  }

  body.night-mode .custom-controls button:hover {
    background: #1976D2;
  }

  body.night-mode .popup-container {
    color: #eee;
  }

  body.night-mode .leaflet-popup-content-wrapper {
    background: #4a4a4a;
  }

  body.night-mode .leaflet-popup-tip {
    background: #4a4a4a;
  }

  body.night-mode .popup-header {
    border-bottom-color: #e57373;
    color: #ff7961;
  }

  body.night-mode .leaflet-popup-close-button {
    color: #bbb;
  }

  body.night-mode .label {
    color: #bbb;
  }

  .swal2-container {
    box-shadow: 0 2px 100px rgba(0,0,0,9);
  }

  .social-share {
    border-top: 1px solid #ccc;
    padding-top: 5px;
  }

  body.night-mode .social-share {
    border-top-color: #e57373;
  }

  .social-share a {
    margin-right: 8px;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
  }

  .social-share a:hover {
    opacity: 0.7;
  }

  .map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  line-height: 1.6;
  }
  .map-legend .emoji {
    margin-right: 6px;
    font-size: 16px;
  }
  body.night-mode .map-legend {
    background: rgba(30, 30, 30, 0.9);
    color: #eee;
  }

.quake-list-panel {
  position: fixed;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  max-height: 450px;
  overflow-y: auto;
  background: white;
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  padding: 15px;
  display: none;
}

#quakeList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#quakeList li {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  font-size: 15px;
}

#quakeList li:hover {
  background: #f5f5f5;
}

body.night-mode .quake-list-panel {
  background: #2c2c2c;
  color: #eee;
}

body.night-mode #quakeList li {
  border-bottom: 1px solid #555;
}

body.night-mode #quakeList li:hover {
  background: #3a3a3a;
}

.quake-icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-quake .pulse-circle {
  animation: pulse 1.5s infinite ease-out;
  background-color: rgba(255, 0, 0, 1);
}

.emoji-marker {
  font-size: 20px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.pulse-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 1;
  animation: pulse 1.5s infinite ease-out;
  background-color: rgba(255, 0, 0, 1);
}


@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}
