.notification-area { position: relative; }
#notification-bell { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary-color); padding: 5px; position: relative; }
#notification-badge { position: absolute; top: 0; right: 0; background-color: var(--danger-color); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: bold; display: none; }
.notifications-panel { display: none; position: absolute; top: 100%; right: 0; width: 350px; max-height: 400px; overflow-y: auto; background-color: var(--container-bg); border: 1px solid var(--border-color); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1100; margin-top: 5px; }
.notifications-panel.show { display: block; }
.notifications-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid var(--border-color); background-color: var(--light-color); }
.notifications-header h3 { margin: 0; font-size: 1rem; color: var(--dark-color); }
.notifications-header a { font-size: 0.8rem; cursor: pointer; color: var(--primary-color); }
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-item { padding: 12px 15px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background-color 0.2s; }
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background-color: var(--light-color); }
.notification-item.unread { background-color: var(--body-bg); }
html.dark-mode .notification-item.unread { background-color: #3a3a3c; }
.notification-item p { margin: 0 0 5px 0; font-size: 0.9em; color: var(--dark-color); line-height: 1.4; }
.notification-item .timestamp { font-size: 0.75em; color: var(--secondary-color); }
#no-notifications-msg { text-align: center; padding: 20px; color: var(--secondary-color); }

html.dark-mode .notification-item .timestamp { color: #a9a9a9; }

@media (max-width: 480px) {
    .notification-area {
        position: static;
    }
    .notifications-panel {
        width: 90vw;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}
