/* ============================================================
   AnnouncementModal — announcement-modal.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Inter:wght@400;500&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
/* .ann-modal-overlay *,
.ann-modal-overlay *::before,
.ann-modal-overlay *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} */

/* ── Variables ─────────────────────────────────────────────── */

/* =========================================================
   DEFAULT (LIGHT)
========================================================= */

:root,
.light-theme {

  /* BRAND */
  --ann-blue-deep:          #175796;
  --ann-blue-mid:           #1e4a78;
  --ann-blue-light:         #2e6da4;

  --ann-amber:              #e8a020;
  --ann-amber-light:        #f5c155;

  /* SURFACES */
  --ann-surface:            #f4f6f9;
  --ann-surface-soft:       #eef2f6;
  --ann-white:              #ffffff;

  /* TEXT */
  --ann-text-dark:          #1c2b3a;
  --ann-text-muted:         #5a7080;
  --ann-text-soft:          #7c8c99;

  /* BORDER */
  --ann-border:             #dce4ed;
  --ann-border-strong:      #c9d5e2;

  /* OVERLAY */
  --ann-overlay:            rgba(7, 16, 27, 0.58);

  /* SHADOW */
  --ann-shadow:
    0 24px 64px rgba(26, 58, 92, 0.28),
    0 4px 16px rgba(26, 58, 92, 0.16);

  /* STATES */
  --ann-success:            #1b8f4d;
  --ann-danger:             #c13d3d;
  --ann-warning:            #d28a17;

  /* COMPONENTS */
  --ann-button-bg:          #ffffff;
  --ann-button-hover:       #edf3f8;

  --ann-dot:                #bfd0df;
  --ann-dot-active:         #175796;

  --ann-divider:            rgba(23, 87, 150, 0.12);

  /* RADII */
  --ann-radius:             14px;
  --ann-radius-sm:          8px;

  /* MOTION */
  --ann-transition:         0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* CONTENT */
  --ann-content-min-width:  200px;
  --ann-content-max-width:  1085px;
}

/* =========================================================
   DARK MODE
========================================================= */

.dark-theme {

  /* BRAND */
  --ann-blue-deep:          #19487D;
  --ann-blue-mid:           #3576b5;
  --ann-blue-light:         #6ea8df;

  --ann-amber:              #dba63d;
  --ann-amber-light:        #f0c76d;

  /* SURFACES */
  --ann-surface:            #131a24;
  --ann-surface-soft:       #1a2330;
  --ann-white:              #1c2431;

  /* TEXT */
  --ann-text-dark:          #f3f7fb;
  --ann-text-muted:         #a7bacb;
  --ann-text-soft:          #7f96aa;

  /* BORDER */
  --ann-border:             #2a3847;
  --ann-border-strong:      #3a4a5d;

  /* OVERLAY */
  --ann-overlay:            rgba(0, 0, 0, 0.72);

  /* SHADOW */
  --ann-shadow:
    0 24px 64px rgba(0, 0, 0, 0.48),
    0 4px 16px rgba(0, 0, 0, 0.34);

  /* STATES */
  --ann-success:            #38c172;
  --ann-danger:             #ff6b6b;
  --ann-warning:            #f5b942;

  /* COMPONENTS */
  --ann-button-bg:          #202b39;
  --ann-button-hover:       #2b3949;

  --ann-dot:                #41576d;
  --ann-dot-active:         #6ea8df;

  --ann-divider:            rgba(255, 255, 255, 0.08);
}

/* ── Overlay ───────────────────────────────────────────────── */
.ann-modal-overlay {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(10, 22, 38, 0.65);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  opacity: 0;

  overflow-y: auto;

  animation: ann-overlay-in 0.32s var(--ann-transition) forwards;
}

.ann-modal-overlay.ann-closing {
  animation: ann-overlay-out 0.28s ease forwards;
}

@keyframes ann-overlay-in {
  to { opacity: 1; }
}

@keyframes ann-overlay-out {
  to { opacity: 0; }
}

/* ── Modal ─────────────────────────────────────────────────── */
.ann-modal {
  position: relative;

  width: 100%;
  min-width: var(--ann-content-min-width);
  max-width: var(--ann-content-max-width);

  max-height: calc(100vh - 40px);

  display: flex;
  flex-direction: column;

  background: var(--ann-white);

  /* SE CASO QUISER DAR UM CHAME MODERNO FUTURAMENTE, SÓ ATIVAR */ 
  /* border-radius: var(--ann-radius); */ 

  box-shadow: var(--ann-shadow);

  overflow: hidden;

  transform: translateY(24px) scale(0.97);

  animation: ann-modal-in 0.34s var(--ann-transition) forwards;

  color: var(--ann-text-dark);
}

.ann-modal-overlay.ann-closing .ann-modal {
  animation: ann-modal-out 0.28s ease forwards;
}

@keyframes ann-modal-in {
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes ann-modal-out {
  to {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
}

/* ── Header ────────────────────────────────────────────────── */
.ann-header {
  position: relative;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 56px;

  padding: 0 20px;

  background: var(--ann-blue-deep);
}

.ann-header::after {
  content: '';

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      var(--ann-amber) 0%,
      var(--ann-amber-light) 100%
    );
}

.ann-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ann-header-dot {
  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: var(--ann-amber);

  box-shadow:
    0 0 0 3px rgba(232,160,32,0.25);

  flex-shrink: 0;
}

.ann-header-title {
  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--ann-white);
}

.ann-counter {
  position: absolute;

  top: 18px;
  right: 60px;

  font-size: 11px;
  font-weight: 600;

  color: rgba(255,255,255,0.65);

  letter-spacing: 0.06em;
}

.ann-close-btn {
  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;

  color: rgba(255,255,255,0.6);

  cursor: pointer;

  transition:
    background var(--ann-transition),
    color var(--ann-transition);

  flex-shrink: 0;
}

.ann-close-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--ann-white);
}

.ann-close-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Carousel ──────────────────────────────────────────────── */
.ann-carousel {
  position: relative;

  flex: 1;
  min-height: 0;

  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.ann-slides-track {
  display: flex;

  min-height: 0;
  height: 100%;

  will-change: transform;

  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ann-slide {
  flex: 0 0 100%;

  min-width: 0;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  padding-bottom: 24px;

  scrollbar-width: thin;
  scrollbar-color: var(--ann-border) transparent;
}

.ann-slide::-webkit-scrollbar {
  width: 5px;
}

.ann-slide::-webkit-scrollbar-thumb {
  background: var(--ann-border);
  border-radius: 999px;
}

/* ── Slide Content ─────────────────────────────────────────── */
.ann-slide-inner {
  padding: 28px 32px 20px;
}

.ann-meta {
  display: flex;
  align-items: center;
  gap: 8px;

  flex-wrap: wrap;

  margin-bottom: 14px;
}

/* ── Badges ────────────────────────────────────────────────── */
.ann-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 3px 10px;

  border-radius: 20px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ann-badge--critical {
  background: #fff0f0;
  color: #c0392b;
}

.ann-badge--high {
  background: #fff4e5;
  color: #d35400;
}

.ann-badge--medium {
  background: #fffbe5;
  color: #b7860a;
}

.ann-badge--low {
  background: #edf6ff;
  color: var(--ann-blue-mid);
}

.ann-badge--default {
  background: var(--ann-surface);
  color: var(--ann-text-muted);
}

.ann-type-badge {
  background: var(--ann-blue-deep);
  color: var(--ann-white);

  padding: 3px 9px;

  border-radius: 20px;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ann-date-range {
  margin-left: auto;

  font-size: 9.5px;

  color: var(--ann-text-muted);
}

/* ── Title / Headline ──────────────────────────────────────── */
.ann-title {
  font-size: 24px;
  font-weight: 700;

  line-height: 1.35;

  color: var(--ann-blue-deep);

  margin-bottom: 10px;
}

.ann-headline {
  font-size: 14px;
  line-height: 1.65;

  color: var(--ann-text-muted);

  margin-bottom: 16px;
}

/* ── Divider ───────────────────────────────────────────────── */
.ann-divider {
  border: none;
  border-top: 1px solid var(--ann-border);

  margin: 0 32px;
}

/* ── Dynamic Content ───────────────────────────────────────── */
.ann-dynamic-content {
  width: 100%;
}

/* ── Description / Document ───────────────────────────────── */
.ann-description,
.ann-document {
  padding: 0px;
  padding-left: 10px;
  padding-right: 10px;
  width: calc(100% - 20px);

  font-size: 14px;
  line-height: 1.75;

  color: var(--ann-text-dark);

  overflow-wrap: break-word;
  word-break: break-word;

  overflow: visible;
  max-height: none;
}

.ann-description,
.ann-document {
  scrollbar-width: thin;
  scrollbar-color: var(--ann-border) transparent;
}

.ann-description::-webkit-scrollbar,
.ann-document::-webkit-scrollbar {
  width: 5px;
}

.ann-description::-webkit-scrollbar-thumb,
.ann-document::-webkit-scrollbar-thumb {
  background: var(--ann-border);
  border-radius: 999px;
}

/* ── Loading / Error ───────────────────────────────────────── */
.ann-document-loading,
.ann-document-error {
  margin: 20px 32px 0;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 16px;

  border-radius: var(--ann-radius-sm);

  border: 1px solid var(--ann-border);

  background: var(--ann-surface);

  color: var(--ann-text-muted);

  font-size: 13px;
}

.ann-document-loading svg,
.ann-document-error svg {
  width: 20px;
  height: 20px;

  flex-shrink: 0;
}

.ann-document-loading svg {
  animation: ann-spin 1s linear infinite;
}

@keyframes ann-spin {
  to {
    transform: rotate(360deg);
  }
}


.ann-document ol ul {
  list-style: unset ! important;
}

/* ── Footer ────────────────────────────────────────────────── */
.ann-footer {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 16px 28px 20px;

  border-top: 1px solid rgba(0,0,0,0.04);
}

/* ── Pagination ────────────────────────────────────────────── */
.ann-pagination {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ann-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--ann-border);

  cursor: pointer;

  transition:
    background var(--ann-transition),
    transform var(--ann-transition),
    width var(--ann-transition);
}

.ann-dot.active {
  width: 20px;

  border-radius: 4px;

  background: var(--ann-blue-deep);
}

/* ── Navigation ────────────────────────────────────────────── */
.ann-nav-btn {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  border-radius: 50%;

  border: 1.5px solid var(--ann-border);

  background: var(--ann-white);

  color: var(--ann-blue-deep);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    background var(--ann-transition),
    border-color var(--ann-transition),
    color var(--ann-transition);
}

.ann-nav-btn:hover:not(:disabled) {
  background: var(--ann-blue-deep);
  border-color: var(--ann-blue-deep);
  color: var(--ann-white);
}

.ann-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ann-nav-btn svg {
  width: 16px;
  height: 16px;
}

.ann-dismiss-btn {
  height: 36px;

  border: none;
  border-radius: 999px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: var(--ann-blue-deep);
  color: var(--ann-white);

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  transition:
    opacity var(--ann-transition),
    transform var(--ann-transition),
    background var(--ann-transition);

  flex-shrink: 0;
}

.ann-dismiss-btn:hover:not(:disabled) {
  background: var(--ann-blue-mid);
}

.ann-dismiss-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ann-dismiss-btn.loading svg {
  animation: ann-spin 1s linear infinite;
}

.ann-dismiss-btn svg {
  width: 16px;
  height: 16px;
}

.ann-view-doc-btn {
  height: 36px;

  border: none;
  border-radius: 999px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: var(--ann-blue-deep);
  color: var(--ann-white);

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  transition:
    opacity var(--ann-transition),
    transform var(--ann-transition),
    background var(--ann-transition);

  flex-shrink: 0;
}

.ann-view-doc-btn:hover:not(:disabled) {
  background: var(--ann-blue-mid);
}

.ann-view-doc-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ann-view-doc-btn.loading svg {
  animation: ann-spin 1s linear infinite;
}

.ann-view-doc-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Empty ─────────────────────────────────────────────────── */
.ann-empty {
  padding: 48px 32px;

  text-align: center;

  color: var(--ann-text-muted);

  font-size: 14px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {

  .ann-modal-overlay {
    padding: 10px;
  }

  .ann-modal {
    max-width: 100%;
    max-height: calc(100vh - 100px);
  }

  .ann-slide-inner {
    padding: 20px 20px 14px;
  }

  .ann-divider {
    margin: 0 20px;
  }

  .ann-description,
  .ann-document {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ann-document-loading,
  .ann-document-error {
    margin-left: 20px;
    margin-right: 20px;
  }

  .ann-footer {
    padding: 14px 20px 18px;
  }

  .ann-title {
    font-size: 20px;
  }

  .ann-document h1,
  .ann-description h1 {
    font-size: 24px;
  }

  .ann-document h2,
  .ann-description h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {

  .ann-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .ann-modal {
    min-width: 100%;
    max-width: 100%;

    border-radius: 16px 16px 0 0;

    /* max-height: 96vh; */
  }

  .ann-title {
    font-size: 18px;
  }

  .ann-description,
  .ann-document {
    font-size: 13.5px;
  }

  .ann-counter {
    display: none;
  }
}