/* Add to your CSS file */
#aboutModal.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-modal {
  position: relative;
  max-width: 400px;
  margin: auto;
  padding: 2em;
  background: #222;
  color: #fff;
  border-radius: 1em;
  text-align: center;
}
#closeAboutBtn.modal-close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #fff;
}
.about-modal-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.about-modal-header h2 {
  margin-bottom: 0.2em;
}
#aboutVersion {
  font-size: 0.9em;
  color: #888;
  margin-left: 8px;
  margin-bottom: 0.7em;
}
.about-author a {
  color: #FFD600;
  text-decoration: none;
}
.about-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  margin-top: 1em;
}
.about-links-row a {
  color: #FFD600;
  text-decoration: none;
  font-weight: bold;
}
.about-links-row svg {
  vertical-align: middle;
  fill: #FFD600;
}

/* Update status styles */
.update-notification {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 12px;  /* Reduced padding from 16px to 8px/12px */
  margin: 16px 0 0 0;  /* Only top margin, no bottom margin */
  text-align: center;
}

.update-notification.up-to-date {
  background: #1a2f1a;
  border: 1px solid #28a745;
}

.update-message {
  color: #faea0e;
  margin: 0;  /* Removed all margins from the message */
  font-weight: 500;
}

.update-notification.up-to-date .update-message {
  color: #28a745;
  font-weight: normal;
}

.update-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.update-btn:hover:not(:disabled) {
  background: #218838;
}

.update-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.update-status {
  margin-top: 12px;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
}

.update-status.updating {
  background: #17a2b8;
  color: white;
}

.update-status.success {
  background: #28a745;
  color: white;
}

.update-status.error {
  background: #dc3545;
  color: white;
}

/* Starburst badge on the About button when an update is available */
#aboutBtn {
  position: relative;
}

#aboutBtn.has-update::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle, #ffffff 0%, #fff176 30%, #ff9800 70%, #ff3d00 100%);
  clip-path: polygon(
    50% 0%, 58% 35%, 90% 10%, 70% 40%, 100% 50%,
    70% 60%, 90% 90%, 58% 65%, 50% 100%, 42% 65%,
    10% 90%, 30% 60%, 0% 50%, 30% 40%, 10% 10%, 42% 35%
  );
  filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.9)) drop-shadow(0 0 8px rgba(255, 87, 34, 0.6));
  animation: about-badge-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes about-badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  #aboutBtn.has-update::after {
    animation: none;
  }
}
