/* Notices: popup dialog + the bell dropdown of the panel top bar. Colours follow the brand purple. */
:root { --an-primary: #7d2a86; --an-primary-dark: #6c2474; --an-soft: #f2eaf3; }
html.an-lock { overflow: hidden; }

.an-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, 0.5); font-family: 'IRANYekanX', Tahoma, sans-serif; direction: rtl; }
.an-dialog { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3); outline: 0; }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e5e7eb; }
.an-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.8; }
.an-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 22px; line-height: 1; color: #374151; cursor: pointer; }
.an-close:hover { background: #f1f1f1; }
.an-body { padding: 18px 20px; overflow-y: auto; font-size: 13px; line-height: 2.1; color: #374151; }
.an-body p { margin: 0 0 10px; }
.an-body a { color: var(--an-primary); }
.an-foot { display: flex; gap: 10px; justify-content: flex-start; padding: 12px 20px 18px; }
.an-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--an-primary); color: #fff; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.an-btn:hover { background: var(--an-primary-dark); color: #fff; }
.an-btn.is-ghost { background: #f1f1f1; color: #374151; }
.an-btn.is-ghost:hover { background: #e5e7eb; color: #111827; }

/* Notification bell dropdown (panel top bar) */
.hu-badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--an-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.hu-badge[hidden] { display: none; }
.hu-menu-title {
    margin: 0 !important;
    padding: 12px 14px !important;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    border-bottom: 1px solid #eee;
}
.hu-notice-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.hu-notice-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; color: #1a1a1a; text-decoration: none; border-bottom: 1px solid #f3f3f3; }
.hu-notice-list a:hover { background: #f8f3f9; }
.hu-notice-list strong { font-size: 13px; font-weight: 600; line-height: 1.7; }
.hu-notice-list small { color: #9ca3af; font-size: 11px; }
.hu-empty { padding: 18px 14px; color: #6b7280; font-size: 12px; text-align: center; }
.hu-menu-all { display: block; padding: 10px 14px; text-align: center; font-size: 12px; font-weight: 600; color: var(--an-primary); text-decoration: none; background: #fafafa; }
.hu-menu-all:hover { background: #f2eaf3; }
