/* ── Notice Modal ── */

#notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: notice-fade-in 0.2s ease;
}

#notice-overlay.hidden {
  display: none;
}

@keyframes notice-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#notice-modal {
  background: var(--panel, #fff);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow, 0 4px 24px rgba(11, 59, 163, 0.10));
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notice-slide-up 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes notice-slide-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 헤더 */
.notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border, #EEF0F8);
  flex-shrink: 0;
}

.notice-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-header-icon {
  width: 28px;
  height: 28px;
  background: var(--navy, #0b3ba3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-header-icon svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.notice-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1A1D2E);
  letter-spacing: -0.3px;
}

/* 탭 페이지네이터 (공지 2개 이상일 때) */
.notice-pager {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-pager-dots {
  display: flex;
  gap: 5px;
}

.notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border, #EEF0F8);
  transition: background 0.2s;
  cursor: pointer;
}

.notice-dot.active {
  background: var(--navy, #0b3ba3);
  width: 16px;
  border-radius: 3px;
}

.notice-pager-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--bg, #F4F6FB);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text, #1A1D2E);
  font-size: 13px;
  transition: background 0.15s;
}

.notice-pager-btn:hover {
  background: var(--border, #EEF0F8);
}

.notice-pager-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* 본문 */
.notice-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.notice-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1A1D2E);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.notice-item-meta {
  font-size: 12px;
  color: var(--muted, #767b94);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-item-meta-sep {
  color: var(--border, #EEF0F8);  /* 대쉬 약간 더 연하게함 */
  font-size: 11px;
}

.notice-item-body {
  font-size: 14px;
  color: var(--text, #1A1D2E);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: keep-all;
}

/* 푸터 */
.notice-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border, #EEF0F8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}

.notice-dismiss-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.notice-dismiss-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy, #0b3ba3);
  cursor: pointer;
  flex-shrink: 0;
}

.notice-dismiss-label {
  font-size: 13px;
  color: var(--muted, #7B8099);
  cursor: pointer;
}

.notice-close-btn {
  padding: 8px 20px;
  background: var(--navy, #0b3ba3);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 10px);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.notice-close-btn:hover {
  background: var(--navy-dark, #082D82);
}

/* 새 공지 뱃지 */
.notice-new-badge {
  display: inline-block;
  background: var(--warn, #FF7043);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

/* 모바일 */
@media (max-width: 768px) {
  #notice-overlay {
    align-items: flex-end;
    padding: 0;
  }

  #notice-modal {
    max-width: 100%;
    border-radius: var(--radius, 16px) var(--radius, 16px) 0 0;
    max-height: 70vh;
  }
}


