/* --- Notification Bell --- */
.notification-container {
  position: absolute;
  right: 20px;
  z-index: 1001;
}

#notification-bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  padding: 5px;
}

#notification-bell-btn svg {
  width: 28px;
  height: 28px;
}

.notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  background-color: #ff4d4d;
  border-radius: 50%;
  border: 2px solid var(--background-color);
  display: none; /* Hidden by default */
}

.notification-dot.visible {
  display: block;
}

/* --- Changelog Modal --- */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #cacaca;
  color: var(--text-color);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5em;
}

.close-button {
  color: var(--text-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  opacity: 0.7;
}

.modal-body .changelog-entry {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border-color-light);
}

.modal-body .changelog-entry:last-child {
  border-bottom: none;
}

html[data-theme="dark"] .modal-content {
  background-color: #222222;
}

/* Mobile responsiveness */
@media (max-width: 500px) {
  .notification-container {
    right: auto;
    left: 20px; /* Move to the left on mobile */
  }
}