.notification-center { position: relative; }
.notification-center[hidden], .notification-panel[hidden], .notification-count[hidden] { display: none !important; }
body.logged-in .navbar .notification-bell { position: relative; width: 40px; height: 40px; min-width: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #475569; font-size: 22px; cursor: pointer; }
body.logged-in .navbar .notification-bell:hover, body.logged-in .navbar .notification-bell[aria-expanded="true"] { background: #eef2ff; color: #2848a5; }
.notification-count { position: absolute; top: -3px; right: -5px; min-width: 19px; padding: 1px 5px; border: 2px solid white; border-radius: 20px; background: #dc2626; color: white; font: 700 11px/16px sans-serif; }
.notification-panel { position: absolute; top: calc(100% + 16px); right: 0; width: min(420px, calc(100vw - 24px)); background: #fff; color: #172342; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 18px 60px #17234230; overflow: hidden; z-index: 1010; }
.notification-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 18px 14px; }
.notification-header h2 { margin: 0; font-size: 19px; font-weight: 800; }
.notification-header p { margin: 4px 0 0; font-size: 12px; color: #64748b; }
body.logged-in .navbar .notification-panel button { min-height: 34px; border: 0 !important; border-radius: 8px; padding: 7px 9px; background: transparent !important; color: inherit !important; font: inherit; cursor: pointer; }
.notification-panel button:focus-visible, .notification-bell:focus-visible { outline: 3px solid #5575d6; outline-offset: 2px; }
.notification-toolbar { display: flex; align-items: center; gap: 4px; padding: 0 14px 12px; border-bottom: 1px solid #e2e8f0; }
body.logged-in .navbar .notification-toolbar button { font-size: 12px; font-weight: 700; }
body.logged-in .navbar .notification-toolbar button[aria-pressed="true"] { background: #eaf0ff !important; color: #2848a5 !important; }
body.logged-in .navbar #notification-read-all { margin-left: auto; color: #2848a5; font-size: 11px; }
.notification-panel button:disabled { opacity: .45; cursor: default; }
.notification-list { max-height: min(480px, calc(100dvh - 250px)); overflow-y: auto; overscroll-behavior: contain; }
.notification-item { display: flex; align-items: flex-start; padding: 9px 10px; border-bottom: 1px solid #edf0f5; }
.notification-item.is-unread { background: #f3f6ff; }
body.logged-in .navbar .notification-panel .notification-open { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.notification-item-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; background: #e4ebff; color: #3453af; }
.notification-item.is-warning .notification-item-icon { background: #fff0c7; color: #946000; }
.notification-copy { min-width: 0; }
.notification-copy strong, .notification-copy small, .notification-copy time { display: block; overflow-wrap: anywhere; }
.notification-copy strong { font-size: 13px; line-height: 1.4; }
.notification-copy small { color: #64748b; font-size: 12px; line-height: 1.5; margin-top: 4px; }
.notification-copy time { color: #64748b; font-size: 11px; margin-top: 6px; }
.notification-item.is-unread strong::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #385bcc; }
body.logged-in .navbar .notification-read { color: #3453af; flex-shrink: 0; }
.notification-empty { text-align: center; padding: 35px 20px; font-size: 13px; color: #64748b; }
.notification-empty > i { display: block; color: #7790ca; font-size: 27px; margin-bottom: 12px; }
.notification-empty strong { display: block; color: #172342; margin-bottom: 6px; }
.notification-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; border-top: 1px solid #e2e8f0; font-size: 10px; color: #64748b; }
body.logged-in .navbar .notification-more { display: block; margin: 10px auto; color: #2848a5; font-size: 13px; }
body.dark-mode .notification-panel { background: #13213a; color: #e2e8f0; border-color: #334155; }
body.dark-mode .notification-item.is-unread { background: #1a2e50; }
body.dark-mode .notification-header p, body.dark-mode .notification-copy small, body.dark-mode .notification-copy time, body.dark-mode .notification-footer, body.dark-mode .notification-empty { color: #b0bdd4; }
body.dark-mode .notification-empty strong { color: #e2e8f0; }
body.dark-mode .notification-toolbar, body.dark-mode .notification-item, body.dark-mode .notification-footer { border-color: #334155; }
body.dark-mode.logged-in .navbar .notification-bell, body.dark-mode.logged-in .navbar .notification-read, body.dark-mode.logged-in .navbar #notification-read-all { color: #bed0ff; }
@media (max-width: 640px) { .notification-panel { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; } .notification-toolbar { padding-left: 8px; padding-right: 8px; } }
