.notification-center { position: absolute; top: 64px; right: 0; width: 400px; max-width: 400px; background: #fff; color: rgba(0, 0, 0, 0.85); border: 1px solid #d9d9d9; border-radius: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.06); z-index: 1000; display: none; overflow-x: hidden; &.visible { display: block; } .notification-header { padding: 4px 16px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; background: #fafafa; h3 { margin: 0; font-size: 14px; color: rgba(0, 0, 0, 0.85); } .notification-controls { display: flex; align-items: center; gap: 8px; // Styles for the eye icon and switch (custom classes) .notification-toggle { align-items: center; // Ensure vertical alignment } .notification-toggle-icon { font-size: 14px; color: #1677ff; vertical-align: middle; } .ant-switch { &.ant-switch-small { min-width: 28px; height: 16px; line-height: 16px; .ant-switch-handle { width: 12px; height: 12px; } &.ant-switch-checked { background-color: #1677ff; .ant-switch-handle { left: calc(100% - 14px); } } } } // Styles for the "Mark All Read" button (restore original link button style) .ant-btn-link { padding: 0; color: #1677ff; &:hover { color: #69b1ff; } &:disabled { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } &.active { color: #0958d9; } } } } .notification-read { background: #fff; color: rgba(0, 0, 0, 0.65); } .notification-unread { background: #f5f5f5; color: rgba(0, 0, 0, 0.85); } .notification-item { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; display: block; overflow: visible; width: 100%; box-sizing: border-box; cursor: pointer; &:hover { background: #fafafa; } .notification-content { width: 100%; } .notification-title { margin: 0; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; .ro-number { margin: 0; color: #1677ff; flex-shrink: 0; white-space: nowrap; } .relative-time { margin: 0; font-size: 12px; color: rgba(0, 0, 0, 0.45); white-space: nowrap; flex-shrink: 0; margin-left: auto; } } .notification-body { margin-top: 4px; .ant-typography { color: inherit; } ul { margin: 0; padding: 0; } li { margin-bottom: 2px; } } } .ant-badge { width: 100%; } .ant-alert { margin: 8px; background: #fff1f0; color: rgba(0, 0, 0, 0.85); border: 1px solid #ffa39e; .ant-alert-message { color: #ff4d4f; } } }