/* ══════════════════════════════════════
   ANNOUNCEMENT SLIDER (reusable)
   ══════════════════════════════════════ */
#dashboard-announcement,
[data-announcement-slider] {
  margin: 0 0 16px;
}

.ann-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  animation: annFadeIn 0.4s ease;
}
@keyframes annFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ann-slide {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid;
  border-radius: 14px;
  min-height: 110px;
  animation: annSlideIn 0.35s ease;
}
@keyframes annSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ann-slide-img {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.ann-slide-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

.ann-slide-content { flex: 1; min-width: 0; }
.ann-slide-title {
  font-size: 18px; font-weight: 800; color: #fff;
  margin-bottom: 6px; letter-spacing: -0.3px; line-height: 1.25;
}
.ann-slide-body {
  font-size: 13px; line-height: 1.55; opacity: 0.85;
}
.ann-slide-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: all 0.2s;
  background: #fff; color: #12121e;
  flex-shrink: 0;
}
.ann-slide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,255,255,0.2);
}

.ann-slide.ann-type-info    { background:linear-gradient(135deg,rgba(88,140,252,.14),rgba(88,140,252,.04)); border-color:rgba(88,140,252,.3); color:#c0d0ff; }
.ann-slide.ann-type-warn    { background:linear-gradient(135deg,rgba(240,160,48,.14),rgba(240,160,48,.04)); border-color:rgba(240,160,48,.3); color:#f0d090; }
.ann-slide.ann-type-success { background:linear-gradient(135deg,rgba(29,185,84,.14),rgba(29,185,84,.04));   border-color:rgba(29,185,84,.3);   color:#a0f0c0; }
.ann-slide.ann-type-error   { background:linear-gradient(135deg,rgba(224,64,64,.14),rgba(224,64,64,.04));   border-color:rgba(224,64,64,.3);   color:#f0a0a0; }
.ann-slide.ann-type-promo   { background:linear-gradient(135deg,rgba(134,5,5,.35),rgba(134,5,5,.08));      border-color:rgba(134,5,5,.5);    color:#fff; }

.ann-nav {
  position: absolute; bottom: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}
.ann-nav:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
}
.ann-nav svg { width: 14px; height: 14px; }
.ann-prev { right: 88px; }
.ann-next { right: 14px; }

.ann-dots {
  position: absolute; bottom: 22px; right: 130px;
  display: flex; gap: 6px; z-index: 2;
}
.ann-dot {
  width: 6px; height: 6px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.3);
  cursor: pointer; transition: all 0.25s; padding: 0;
}
.ann-dot.active {
  width: 20px; border-radius: 3px; background: #fff;
}

@media (max-width: 700px) {
  .ann-slide {
    flex-direction: column; text-align: center;
    padding: 16px; gap: 14px; padding-bottom: 60px;
  }
  .ann-slide-img { width: 72px; height: 72px; }
  .ann-slide-title { font-size: 16px; }
  .ann-slide-body { font-size: 12.5px; }
  .ann-slide-btn { width: 100%; justify-content: center; }
  .ann-nav { bottom: 12px; width: 28px; height: 28px; }
  .ann-prev { left: 12px; right: auto; }
  .ann-next { right: 12px; }
  .ann-dots {
    right: auto; left: 50%; transform: translateX(-50%);
    bottom: 20px;
  }
}