/* ===== Login announcement modal (login/index.php + preview ใน manage.announcement.php) ===== */
.an-modal .modal-content {
  background: #0d2240;
  border: 1px solid rgba(200,153,42,0.35);
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Sarabun', sans-serif;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}
.an-modal .an-accent { height: 3px; background: linear-gradient(90deg, transparent, #c8992a, #e8ba50, #c8992a, transparent); }
.an-modal .modal-header {
  background: linear-gradient(135deg, #163566, #0d2240);
  border-bottom: 1px solid rgba(200,153,42,0.3);
  align-items: center;
}
.an-modal .modal-title { color: #e8ba50; font-weight: 600; font-size: 17px; }
.an-modal .modal-title i { margin-right: 6px; }
.an-modal .close { color: #fff; text-shadow: none; opacity: .6; }
.an-modal .close:hover { opacity: 1; }
.an-modal .modal-body { color: rgba(255,255,255,0.85); padding: 18px 22px; max-height: 65vh; overflow-y: auto; }

.an-item + .an-item { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(200,153,42,0.25); }
.an-aud {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: #0d2240; background: #e8ba50; border-radius: 10px; padding: 1px 10px; margin-bottom: 6px;
}
.an-title { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.an-date {
  display: flex; align-items: center; gap: 14px;
  background: rgba(200,153,42,0.1); border: 1px solid rgba(200,153,42,0.35);
  border-radius: 6px; padding: 12px 14px; margin-bottom: 12px;
}
.an-date .an-date-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #b8841e, #e8ba50); color: #0d2240;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.an-date .an-date-label { font-size: 11px; color: rgba(232,186,80,0.85); letter-spacing: .08em; }
.an-date .an-date-value { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.3; }
.an-msg { font-size: 14px; line-height: 1.7; word-wrap: break-word; }
.an-msg a { color: #e8ba50; text-decoration: underline; }

.an-modal .modal-footer {
  border-top: 1px solid rgba(200,153,42,0.2);
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.an-modal .an-hide { font-size: 12px; color: rgba(255,255,255,0.55); margin: 0; cursor: pointer; user-select: none; }
.an-modal .an-hide input { margin-right: 6px; vertical-align: middle; }
.an-modal .an-ok {
  background: linear-gradient(135deg, #b8841e, #d4a832 40%, #c8992a 70%, #a97620);
  color: #0d2240; font-weight: 700; border: 0; padding: 7px 22px;
}
.an-modal .an-ok:hover { color: #0d2240; filter: brightness(1.08); }
@media (max-width: 480px) {
  .an-modal .modal-body { padding: 14px 16px; }
  .an-date .an-date-value { font-size: 15px; }
}
