/* ── Windows XP-style Taskbar Balloon Notification ── */

.xp-balloon {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 12px);
  right: 80px;
  width: 280px;
  background: #ffffe1;
  border: 1px solid #000;
  border-radius: 2px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
  font-family: var(--font-system);
  font-size: 11px;
  color: #000;
  z-index: 10001;
  animation: balloonFadeIn 0.3s ease-out;
  cursor: default;
  user-select: none;
}

.xp-balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 20px;
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.xp-balloon::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 21px;
  border-width: 9px 9px 0 9px;
  border-style: solid;
  border-color: #ffffe1 transparent transparent transparent;
  z-index: 1;
}

.xp-balloon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 2px;
}

.xp-balloon-title {
  font-weight: 700;
  font-size: 11px;
  color: #003399;
  display: flex;
  align-items: center;
  gap: 4px;
}

.xp-balloon-title::before {
  content: 'ℹ️';
  font-size: 13px;
}

.xp-balloon-close {
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: #666;
  padding: 0;
  border-radius: 2px;
}

.xp-balloon-close:hover {
  background: #ddd;
  color: #000;
}

.xp-balloon-body {
  padding: 2px 8px 8px;
  line-height: 1.5;
  color: #000;
  word-wrap: break-word;
}

.xp-balloon-body a {
  color: #0066cc;
  text-decoration: underline;
}

.xp-balloon-body a:hover {
  color: #003399;
}

@keyframes balloonFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.xp-balloon.closing {
  animation: balloonFadeOut 0.2s ease-in forwards;
}

@keyframes balloonFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .xp-balloon {
    right: 8px;
    left: 8px;
    width: auto;
  }
}
