#top-announcement-bar {
  background-color: #6799f3;
  color: #fff;
  height: 36px;
  line-height: 36px;
  overflow: visible;
  position: relative;
  width: 100%;
  z-index: 99999;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
}

.announcement-marquee {
  display: flex;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  white-space: nowrap;
}

.announcement-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: topBarMarquee 30s linear infinite;
}

.announcement-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.announcement-link:hover {
  color: #fff;
  text-decoration: underline;
}

#top-announcement-bar:hover .announcement-content {
  animation-play-state: paused;
}

.announcement-content .highlight-code {
  color: #3058e2;
  background-color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin: 0 4px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  line-height: 1.2;
  vertical-align: middle;
  transition: transform 0.2s ease;
  user-select: all;
}

.announcement-content .highlight-code:hover {
  transform: scale(1.05);
}

.announcement-content .highlight-code::after {
  content: "Đã sao chép mã!";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background-color: #111;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 100000;
}

.announcement-content .highlight-code.copied::after {
  opacity: 1;
  visibility: visible;
}

@keyframes topBarMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}