/* Add these styles at the top of your existing styles.css */
.menu-container {
    position: relative;
}

.menu-toggle {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
}

.menu {
    padding: 10px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    line-height: 1.5;
    display: none;
    z-index: 1000;
    max-width: 200px;
    position: absolute;
    right: 0;
    top: 40px;
}

.menu-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.menu-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0;
}

.toggle-label {
    font-size: 13px;
    margin-right: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4CAF50;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zoom-btn {
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
}

.zoom-btn:hover {
    background: #e0e0e0;
}

.main-menu-link {
    display: block;
    margin-top: 10px;
    padding: 5px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.main-menu-link:hover {
    background: #e0e0e0;
}
/* Remove star-icon styles and replace with seismograph-icon */
.seismograph-icon {
  position: relative;
  background: white;
  width: 30px;
  height: 30px;
  animation: beat 1s infinite;
  box-shadow: 0 0 15px #ff4500, 0 0 15px #ff4500;
  border: 2px solid #ff4500;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.seismograph-icon i {
  color: #ff4500;
  font-size: 16px;
}

@keyframes beat {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  100% { transform: scale(0.9); }
}

.seismograph-container {
  position: relative;
  z-index: 1000;
}

.radius-effect {
  position: absolute;
  border-radius: 50%;
  background-color: transparent;
  transform-origin: center;
  z-index: 999;
  pointer-events: none;
  box-sizing: border-box;
}

@keyframes pulse {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.legend {
  padding: 10px;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
  line-height: 1.5;
  display: none;
  z-index: 1000;
}

.legend-section {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.legend-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legend-toggle {
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
}

.recent-event-popup {
  z-index: 2001;
}

.recent-event-popup .leaflet-popup-content-wrapper {
  background-color: white;
  border-left: 4px solid #ef4444;
}

.recent-event-popup .leaflet-popup-tip {
  background-color: white;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-popup {
  z-index: 1001;
}

.center-point {
  background: #0099cc;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  box-shadow: 0 0 5px #ff0000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-point i {
  color: white;
  font-size: 10px;
}

.legend-center-point {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #0099cc;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 5px #ff0000;
  margin-right: 5px;
}

.legend-center-point i {
  color: white;
  font-size: 10px;
}

.logo-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  padding: 5px;
}

.logo-container a {
  display: inline-block;
}

.logo-container img {
  height: 65px;
  width: auto;
}

.recent-event-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #ef4444;
  font-weight: bold;
}

.recent-event-header i {
  font-size: 1.2em;
}

/* Rest of your existing styles... */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.close-modal {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #ef4444;
}

.nav-link {
  transition: all 0.2s;
}

.nav-link:hover {
  background-color: #f3f4f6;
}

.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}

.mobile-menu-btn {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }
  #sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 60px);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }
  #sidebar.active {
    transform: translateX(0);
  }
  #map {
    width: 100%;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
  }
  .legend-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .leaflet-top {
    z-index: 1000 !important;
  }
  .leaflet-bottom {
    z-index: 1000 !important;
  }
  #sidebarToggle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1500;
    background: white;
    border-radius: 0 4px 4px 0;
    padding: 15px 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  #sidebarToggle.visible {
    opacity: 1;
  }
  #sidebarToggle svg {
    width: 16px;
    height: 16px;
  }
  #timeDisplay {
    display: none;
  }
}

.time-display {
  display: flex;
  gap: 15px;
  font-size: 0.875rem;
}

.time-display span {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.time-display strong {
  margin-right: 5px;
  color: #1f2937;
  font-weight: 600;
}

.time-display .time-value {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #1e40af;
  background: #e0e7ff;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
}

.time-display .utc-label {
  color: #6b7280;
}

.time-display .local-label {
  color: #065f46;
}

.time-display .local-value {
  color: #065f46;
  background: #d1fae5;
}

/* Pagination Styles */
#prevPage, #nextPage {
  transition: all 0.2s ease;
  border: 1px solid #d1d5db;
}

#prevPage:hover:not(:disabled), #nextPage:hover:not(:disabled) {
  background-color: #e5e7eb;
  transform: translateY(-1px);
}

#prevPage:active:not(:disabled), #nextPage:active:not(:disabled) {
  transform: translateY(1px);
}

#pageInfo {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #4b5563;
}