/* notifications.css — topbar bell dropdown (Roadmap #11 v1)
 * Rides on .user-menu base styles from theme.css; this file owns
 * ONLY the notification-specific parts (single-owner law). */

.topbar-bell-wrap{position:relative}

/* dropdown shell — .user-menu gives position/bg/border/shadow; we widen it */
.bell-menu{width:340px;max-width:calc(100vw - 24px);padding:0}

.bell-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;border-bottom:1px solid var(--border);
}
.bell-head-title{font-size:13px;font-weight:600;color:var(--text)}
.bell-mark-all{
  border:none;background:none;cursor:pointer;
  font-size:12px;color:var(--muted);padding:2px 4px;border-radius:6px;
  transition:color .15s;
}
.bell-mark-all:hover{color:var(--primary)}

.bell-list{max-height:380px;overflow-y:auto}

.bell-item{
  display:flex;align-items:flex-start;gap:10px;
  padding:11px 14px;text-decoration:none;
  border-bottom:1px solid var(--border);
  transition:background-color .15s;
}
.bell-item:last-child{border-bottom:none}
.bell-item:hover{background:var(--surface)}

.bell-ic{
  flex:none;width:28px;height:28px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);background:var(--surface);
  border:1px solid var(--border);margin-top:1px;
}
.bell-item.unread .bell-ic{color:var(--primary)}

.bell-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.bell-title{
  font-size:12.5px;font-weight:500;color:var(--text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.bell-item.unread .bell-title{font-weight:600}
.bell-body{
  font-size:11.5px;color:var(--muted);line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.bell-time{flex:none;font-size:10.5px;color:var(--muted);margin-top:2px;white-space:nowrap}

/* unread indicator on the row — small primary dot, matches topbar .dot language */
.bell-item.unread{position:relative}
.bell-item.unread::after{
  content:"";position:absolute;top:15px;right:14px;
  width:6px;height:6px;border-radius:50%;background:var(--primary);
}
html[dir="rtl"] .bell-item.unread::after{right:auto;left:14px}
.bell-item.unread .bell-time{margin-right:12px}
html[dir="rtl"] .bell-item.unread .bell-time{margin-right:0;margin-left:12px}

.bell-empty{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:34px 14px;color:var(--muted);font-size:12.5px;
}
.bell-empty svg{opacity:.55}

@media (max-width:640px){
  .bell-menu{width:300px}
  .bell-list{max-height:320px}
}
