html, body {
  height: 100%;
  margin: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Allow text selection in input fields */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#app {
  display: flex;
  height: 100%;
  width: 100%;
  color: #e5e1d8;
  background: #0a0a0a;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#sidebar {
  width: 480px;
  max-width: 50vw;
  background: #0b0b0b;
  border-right: 1px solid #3a2b22;
  display: flex;
  flex-direction: column;
  position: relative;
}

#sidebar header {
  padding: 10px 12px 6px;
  border-bottom: 1px solid #3a2b22;
}
#sidebar .logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 8px;
}
#sidebar .logo-link img {
  height: 50px;
  width: auto;
  display: block;
}

#sidebar h1 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #d6b370;
  margin: 0 0 6px;
}

.legend-actions {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
}
.legend-actions button {
  background: #121212;
  color: #d6b370;
  border: 1px solid #3a2b22;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}
.legend-actions button:hover { background: #1b1b1b; border-color: #5a3f2f; }

.updates-link {
  background: #121212;
  color: #d6b370;
  border: 1px solid #3a2b22;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: auto;
}
.updates-link:hover {
  background: #1b1b1b;
  border-color: #5a3f2f;
}

#legend-search {
  width: calc(100% - 8px);
  margin: 8px 4px;
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #3a2b22;
  background: #0a0a0a;
  color: #e5e1d8;
  font-size: 12px;
}
#legend-search::placeholder { color: #9c8f80; }

.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 4px 4px;
  padding: 6px 10px;
  background: #5865f2;
  color: #ffffff;
  border: 1px solid #4752c4;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.discord-link:hover {
  background: #4752c4;
  border-color: #3c45a5;
}

.discord-icon {
  width: 16px;
  height: 16px;
}

#legend {
  overflow: auto;
  padding: 8px 6px 12px;
}

/* Themed scrollbar for the legend (sidebar) */
#legend { scrollbar-width: thin; scrollbar-color: #6a4a2f #161616; }
#legend::-webkit-scrollbar { width: 10px; }
#legend::-webkit-scrollbar-track { background: #161616; }
#legend::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#6a4a2f,#4a3424); border-radius: 8px; border: 1px solid #3a2b22; }
#legend::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#7c5838,#5a3f2f); }

/* Also style sidebar scrollbars (in case container scrolls) */
#sidebar { scrollbar-width: thin; scrollbar-color: #6a4a2f #0b0b0b; }
#sidebar::-webkit-scrollbar { width: 10px; }
#sidebar::-webkit-scrollbar-track { background: #0b0b0b; }
#sidebar::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#6a4a2f,#4a3424); border-radius: 8px; border: 1px solid #3a2b22; }
#sidebar::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#7c5838,#5a3f2f); }

.legend-group { margin: 6px 4px 10px; border-top: 1px solid #2a2019; padding-top: 8px; }
.legend-group-header {
  display: flex; align-items: center; justify-content: center;
  padding: 4px 4px 6px; color: #d6b370;
}
.legend-group-header .title { font-family: "Cinzel", Georgia, serif; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .95; text-align: center; width: 100%; }
.legend-group-header .group-actions { display: flex; gap: 4px; }
.legend-group-header .group-actions button {
  background: #1a2440; color: #cfd6ff; border: 1px solid #243257;
  padding: 2px 6px; border-radius: 4px; font-size: 11px; cursor: pointer;
}
.legend-group-header .group-actions button:hover { background: #22305a; }

.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 5px;
}

.legend-item {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 6px; cursor: pointer;
  background: transparent;
}
.legend-item:hover { background: #101010; }
.legend-item input { margin: 0; accent-color: #d98e43; }
.legend-item img { width: 16px; height: 16px; object-fit: contain; }
.legend-item .name { font-size: 12px; color: #e5e1d8; flex: 0 0 auto; display: inline-block; }
.legend-item .count { font-size: 11px; color: #d6b370; background: transparent; border: none; padding: 0; border-radius: 0; font-weight: 600; }

#main { flex: 1; position: relative; }
#map { position: absolute; inset: 0; }

#hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid #3a2b22;
  color: #d6b370;
  font-size: 12px;
  pointer-events: none;
}

/* Leaflet dark tweaks */
.leaflet-control-zoom a {
  background: #121212;
  color: #e5e1d8;
  border: 1px solid #3a2b22;
}
.leaflet-container { background: #0b0b0b; }

/* POI hover tooltip */
.leaflet-popup.poi-tip .leaflet-popup-content-wrapper,
.leaflet-tooltip.poi-tip {
  background: #ffffff;
  border: 1px solid #d3d3d3;
  color: #222;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  border-radius: 4px;
  padding: 8px 10px;
  min-width: 180px;
  max-width: 320px;
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.leaflet-popup.poi-tip .leaflet-popup-content {
  margin: 0;
  position: relative;
}

.leaflet-popup.poi-tip .leaflet-popup-tip {
  display: block;
}

.popup-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #666;
  font-weight: 300;
  transition: color 0.15s;
  z-index: 1000;
}

.popup-close:hover {
  color: #000;
}

.popup-found-container {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e6e6e6;
}

.popup-found-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #222;
  -webkit-user-select: none;
  user-select: none;
}

.popup-found-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Gray out effect for found POIs */
.leaflet-popup.poi-found .leaflet-popup-content-wrapper {
  opacity: 0.5;
  filter: grayscale(70%);
}

.leaflet-marker-icon.marker-found {
  opacity: 0.4;
  filter: grayscale(80%);
}

.leaflet-tooltip.poi-tip .tip-title,
.leaflet-popup.poi-tip .tip-title {
  font-weight: 700;
  margin: 0 0 2px;
  color: #111;
  padding-right: 24px;
}

.leaflet-tooltip.poi-tip .tip-sub,
.leaflet-popup.poi-tip .tip-sub {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 6px;
}

.leaflet-tooltip.poi-tip .tip-body,
.leaflet-popup.poi-tip .tip-body {
  font-size: 13px;
  line-height: 1.35;
  color: #222;
}

.leaflet-tooltip.poi-tip .tip-img-wrap,
.leaflet-popup.poi-tip .tip-img-wrap {
  margin-top: 8px;
}

.leaflet-tooltip.poi-tip .tip-img-wrap img,
.leaflet-popup.poi-tip .tip-img-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

/* Themed tooltips based on category */
.leaflet-tooltip.poi-tip.theme-cerim { background: #e8d4f8; border-color: #9b59b6; }
.leaflet-tooltip.poi-tip.theme-cerim .tip-title { color: #5b2c6f; }
.leaflet-tooltip.poi-tip.theme-cerim .tip-sub { border-color: #d4b5e8; color: #7d3c98; }

.leaflet-tooltip.poi-tip.theme-fire { background: #ffe4cc; border-color: #e67e22; }
.leaflet-tooltip.poi-tip.theme-fire .tip-title { color: #a04000; }
.leaflet-tooltip.poi-tip.theme-fire .tip-sub { border-color: #f0c9a9; color: #d35400; }

.leaflet-tooltip.poi-tip.theme-treasure { background: #fff4cc; border-color: #f1c40f; }
.leaflet-tooltip.poi-tip.theme-treasure .tip-title { color: #6e5a0d; }
.leaflet-tooltip.poi-tip.theme-treasure .tip-sub { border-color: #f7e7a9; color: #9a7b0f; }

.leaflet-tooltip.poi-tip.theme-key { background: #d5e8f7; border-color: #3498db; }
.leaflet-tooltip.poi-tip.theme-key .tip-title { color: #1a5276; }
.leaflet-tooltip.poi-tip.theme-key .tip-sub { border-color: #a9cce3; color: #2874a6; }

.leaflet-tooltip.poi-tip.theme-passage { background: #e6f2ff; border-color: #5dade2; }
.leaflet-tooltip.poi-tip.theme-passage .tip-title { color: #1b4f72; }
.leaflet-tooltip.poi-tip.theme-passage .tip-sub { border-color: #aed6f1; color: #2980b9; }

.leaflet-tooltip.poi-tip.theme-mechanism { background: #e8e8e8; border-color: #95a5a6; }
.leaflet-tooltip.poi-tip.theme-mechanism .tip-title { color: #34495e; }
.leaflet-tooltip.poi-tip.theme-mechanism .tip-sub { border-color: #bdc3c7; color: #566573; }

.leaflet-tooltip.poi-tip.theme-zone { background: #fce4ec; border-color: #e91e63; }
.leaflet-tooltip.poi-tip.theme-zone .tip-title { color: #880e4f; }
.leaflet-tooltip.poi-tip.theme-zone .tip-sub { border-color: #f8bbd0; color: #c2185b; }

.leaflet-tooltip.poi-tip.theme-boss { background: #ffcccc; border-color: #e74c3c; }
.leaflet-tooltip.poi-tip.theme-boss .tip-title { color: #7b241c; }
.leaflet-tooltip.poi-tip.theme-boss .tip-sub { border-color: #f5b7b1; color: #c0392b; }

.leaflet-tooltip.poi-tip.theme-quest { background: #d4edda; border-color: #28a745; }
.leaflet-tooltip.poi-tip.theme-quest .tip-title { color: #155724; }
.leaflet-tooltip.poi-tip.theme-quest .tip-sub { border-color: #a3d9b1; color: #1e7e34; }

.leaflet-tooltip.poi-tip.theme-vendor { background: #fff3cd; border-color: #ffc107; }
.leaflet-tooltip.poi-tip.theme-vendor .tip-title { color: #856404; }
.leaflet-tooltip.poi-tip.theme-vendor .tip-sub { border-color: #f9e79f; color: #b8860b; }

.leaflet-tooltip.poi-tip.theme-npc { background: #d1ecf1; border-color: #17a2b8; }
.leaflet-tooltip.poi-tip.theme-npc .tip-title { color: #0c5460; }
.leaflet-tooltip.poi-tip.theme-npc .tip-sub { border-color: #a6d9e6; color: #117a8b; }

.leaflet-tooltip.poi-tip.theme-house { background: #f0e6ff; border-color: #9370db; }
.leaflet-tooltip.poi-tip.theme-house .tip-title { color: #4b0082; }
.leaflet-tooltip.poi-tip.theme-house .tip-sub { border-color: #d8bfff; color: #663399; }

.leaflet-tooltip.poi-tip.theme-lore { background: #f5f5dc; border-color: #8b7355; }
.leaflet-tooltip.poi-tip.theme-lore .tip-title { color: #3e2723; }
.leaflet-tooltip.poi-tip.theme-lore .tip-sub { border-color: #d7cdb8; color: #5d4037; }

.leaflet-tooltip.poi-tip.theme-tree { background: #e7f5e7; border-color: #4caf50; }
.leaflet-tooltip.poi-tip.theme-tree .tip-title { color: #1b5e20; }
.leaflet-tooltip.poi-tip.theme-tree .tip-sub { border-color: #c8e6c9; color: #2e7d32; }

.leaflet-tooltip.poi-tip.theme-ore { background: #e0e0e0; border-color: #607d8b; }
.leaflet-tooltip.poi-tip.theme-ore .tip-title { color: #263238; }
.leaflet-tooltip.poi-tip.theme-ore .tip-sub { border-color: #b0bec5; color: #455a64; }

.leaflet-tooltip.poi-tip.theme-digging { background: #f4e4d7; border-color: #a0826d; }
.leaflet-tooltip.poi-tip.theme-digging .tip-title { color: #4e342e; }
.leaflet-tooltip.poi-tip.theme-digging .tip-sub { border-color: #d7ccc8; color: #6d4c41; }

.leaflet-tooltip.poi-tip.theme-fishing { background: #e0f2f7; border-color: #0097a7; }
.leaflet-tooltip.poi-tip.theme-fishing .tip-title { color: #004d56; }
.leaflet-tooltip.poi-tip.theme-fishing .tip-sub { border-color: #b2dfdb; color: #00695c; }

.leaflet-tooltip.poi-tip.theme-other { background: #f5f5f5; border-color: #9e9e9e; }
.leaflet-tooltip.poi-tip.theme-other .tip-title { color: #424242; }
.leaflet-tooltip.poi-tip.theme-other .tip-sub { border-color: #e0e0e0; color: #616161; }

/* Popup theme styles - same colors as tooltips */
.leaflet-popup.poi-tip.theme-cerim .leaflet-popup-content-wrapper { background: #e8d4f8; border-color: #9b59b6; }
.leaflet-popup.poi-tip.theme-cerim .tip-title { color: #5b2c6f; }
.leaflet-popup.poi-tip.theme-cerim .tip-sub { border-color: #d4b5e8; color: #7d3c98; }

.leaflet-popup.poi-tip.theme-fire .leaflet-popup-content-wrapper { background: #ffe4cc; border-color: #e67e22; }
.leaflet-popup.poi-tip.theme-fire .tip-title { color: #a04000; }
.leaflet-popup.poi-tip.theme-fire .tip-sub { border-color: #f0c9a9; color: #d35400; }

.leaflet-popup.poi-tip.theme-treasure .leaflet-popup-content-wrapper { background: #fff4cc; border-color: #f1c40f; }
.leaflet-popup.poi-tip.theme-treasure .tip-title { color: #6e5a0d; }
.leaflet-popup.poi-tip.theme-treasure .tip-sub { border-color: #f7e7a9; color: #9a7b0f; }

.leaflet-popup.poi-tip.theme-key .leaflet-popup-content-wrapper { background: #d5e8f7; border-color: #3498db; }
.leaflet-popup.poi-tip.theme-key .tip-title { color: #1a5276; }
.leaflet-popup.poi-tip.theme-key .tip-sub { border-color: #a9cce3; color: #2874a6; }

.leaflet-popup.poi-tip.theme-passage .leaflet-popup-content-wrapper { background: #e6f2ff; border-color: #5dade2; }
.leaflet-popup.poi-tip.theme-passage .tip-title { color: #1b4f72; }
.leaflet-popup.poi-tip.theme-passage .tip-sub { border-color: #aed6f1; color: #2980b9; }

.leaflet-popup.poi-tip.theme-mechanism .leaflet-popup-content-wrapper { background: #e8e8e8; border-color: #95a5a6; }
.leaflet-popup.poi-tip.theme-mechanism .tip-title { color: #34495e; }
.leaflet-popup.poi-tip.theme-mechanism .tip-sub { border-color: #bdc3c7; color: #566573; }

.leaflet-popup.poi-tip.theme-zone .leaflet-popup-content-wrapper { background: #fce4ec; border-color: #e91e63; }
.leaflet-popup.poi-tip.theme-zone .tip-title { color: #880e4f; }
.leaflet-popup.poi-tip.theme-zone .tip-sub { border-color: #f8bbd0; color: #c2185b; }

.leaflet-popup.poi-tip.theme-boss .leaflet-popup-content-wrapper { background: #ffcccc; border-color: #e74c3c; }
.leaflet-popup.poi-tip.theme-boss .tip-title { color: #7b241c; }
.leaflet-popup.poi-tip.theme-boss .tip-sub { border-color: #f5b7b1; color: #c0392b; }

.leaflet-popup.poi-tip.theme-quest .leaflet-popup-content-wrapper { background: #d4edda; border-color: #28a745; }
.leaflet-popup.poi-tip.theme-quest .tip-title { color: #155724; }
.leaflet-popup.poi-tip.theme-quest .tip-sub { border-color: #a3d9b1; color: #1e7e34; }

.leaflet-popup.poi-tip.theme-vendor .leaflet-popup-content-wrapper { background: #fff3cd; border-color: #ffc107; }
.leaflet-popup.poi-tip.theme-vendor .tip-title { color: #856404; }
.leaflet-popup.poi-tip.theme-vendor .tip-sub { border-color: #f9e79f; color: #b8860b; }

.leaflet-popup.poi-tip.theme-npc .leaflet-popup-content-wrapper { background: #d1ecf1; border-color: #17a2b8; }
.leaflet-popup.poi-tip.theme-npc .tip-title { color: #0c5460; }
.leaflet-popup.poi-tip.theme-npc .tip-sub { border-color: #a6d9e6; color: #117a8b; }

.leaflet-popup.poi-tip.theme-house .leaflet-popup-content-wrapper { background: #f0e6ff; border-color: #9370db; }
.leaflet-popup.poi-tip.theme-house .tip-title { color: #4b0082; }
.leaflet-popup.poi-tip.theme-house .tip-sub { border-color: #d8bfff; color: #663399; }

.leaflet-popup.poi-tip.theme-lore .leaflet-popup-content-wrapper { background: #f5f5dc; border-color: #8b7355; }
.leaflet-popup.poi-tip.theme-lore .tip-title { color: #3e2723; }
.leaflet-popup.poi-tip.theme-lore .tip-sub { border-color: #d7cdb8; color: #5d4037; }

.leaflet-popup.poi-tip.theme-tree .leaflet-popup-content-wrapper { background: #e7f5e7; border-color: #4caf50; }
.leaflet-popup.poi-tip.theme-tree .tip-title { color: #1b5e20; }
.leaflet-popup.poi-tip.theme-tree .tip-sub { border-color: #c8e6c9; color: #2e7d32; }

.leaflet-popup.poi-tip.theme-ore .leaflet-popup-content-wrapper { background: #e0e0e0; border-color: #607d8b; }
.leaflet-popup.poi-tip.theme-ore .tip-title { color: #263238; }
.leaflet-popup.poi-tip.theme-ore .tip-sub { border-color: #b0bec5; color: #455a64; }

.leaflet-popup.poi-tip.theme-digging .leaflet-popup-content-wrapper { background: #f4e4d7; border-color: #a0826d; }
.leaflet-popup.poi-tip.theme-digging .tip-title { color: #4e342e; }
.leaflet-popup.poi-tip.theme-digging .tip-sub { border-color: #d7ccc8; color: #6d4c41; }

.leaflet-popup.poi-tip.theme-fishing .leaflet-popup-content-wrapper { background: #e0f2f7; border-color: #0097a7; }
.leaflet-popup.poi-tip.theme-fishing .tip-title { color: #004d56; }
.leaflet-popup.poi-tip.theme-fishing .tip-sub { border-color: #b2dfdb; color: #00695c; }

.leaflet-popup.poi-tip.theme-other .leaflet-popup-content-wrapper { background: #f5f5f5; border-color: #9e9e9e; }
.leaflet-popup.poi-tip.theme-other .tip-title { color: #424242; }
.leaflet-popup.poi-tip.theme-other .tip-sub { border-color: #e0e0e0; color: #616161; }

/* Quest two-column layout */
.quests-container {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.quest-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quest-column-header {
  margin-bottom: 2px;
}

.quest-header-label {
  display: flex;
  align-items: center;
  padding: 5px 6px;
  border-radius: 3px;
  background: #0f0f0f;
  border: 1px solid #2a2019;
  cursor: pointer;
  transition: background 0.15s;
}

.quest-header-label:hover {
  background: #151515;
}

.quest-header-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  cursor: pointer;
}

.quest-header-label img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
}

.quest-header-label .name {
  font-size: 12px;
  font-weight: 600;
  color: #e5e1d8;
  flex: 1;
}

.quest-header-label .count {
  font-size: 11px;
  color: #9c8f80;
  min-width: 18px;
  text-align: right;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.quest-item:hover {
  opacity: 0.7;
}

.quest-item .quest-link-icon {
  font-size: 10px;
  margin-right: 6px;
  opacity: 0.6;
}

.quest-item .quest-name {
  font-size: 11px;
  color: #e5e1d8;
  flex: 1;
}

/* Found quest styling */
.quest-item.quest-found {
  opacity: 0.4;
}

.quest-item.quest-found .quest-name {
  text-decoration: line-through;
}

/* Reset view button */
.reset-view-button {
  width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  background: #1a2440;
  color: #cfd6ff;
  border: 1px solid #243257;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}

.reset-view-button:hover {
  background: #22305a;
  border-color: #2e4170;
}

.reset-view-button:active {
  transform: scale(0.98);
}

/* Sidebar footer with version */
.sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid #3a2b22;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.version-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.version-update-text {
  font-size: 10px;
  color: #ef4444;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.version-update-text.show {
  opacity: 1;
  transform: translateX(0);
}

.version-display {
  font-size: 11px;
  color: #9c8f80;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.version-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.version-status-dot::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  opacity: 0.3;
}

.version-status-dot:hover {
  transform: scale(1.2);
}

/* Green dot - latest version */
.version-status-dot.up-to-date {
  background: radial-gradient(circle at 30% 30%, #4ade80, #22c55e);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  animation: blink-green 2s ease-in-out infinite;
}

.version-status-dot.up-to-date::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent);
  animation: pulse-green 2s ease-in-out infinite;
}

/* Red dot - update available */
.version-status-dot.update-available {
  background: radial-gradient(circle at 30% 30%, #f87171, #ef4444);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  animation: blink-red 1.5s ease-in-out infinite;
}

.version-status-dot.update-available::before {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.4), transparent);
  animation: pulse-red 1.5s ease-in-out infinite;
}

/* Blink animations */
@keyframes blink-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes blink-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse-red {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* Version tooltip */
.version-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: #2a1f1a;
  color: #e6d5c3;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #4a3a2f;
  z-index: 1000;
}

.version-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  border: 6px solid transparent;
  border-top-color: #2a1f1a;
}

.version-tooltip.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.version-tooltip a {
  color: #d4a574;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 4px;
}

.version-tooltip a:hover {
  color: #e6b885;
}
