/* notifications.css — Bell icon, dropdown, badges */

.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.15s, color 0.15s;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.notif-bell:hover { background: var(--color-card-hover); color: var(--color-text-dark); }
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
}

.notif-dropdown {
  position: fixed;
  width: 360px;
  max-height: 480px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-dark);
}
.notif-header button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}
.notif-header button:hover { text-decoration: underline; }

.notif-list { overflow-y: auto; max-height: 420px; }
.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--color-border-light);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--color-card-hover); }
.notif-item.read { opacity: 0.6; }

.notif-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--color-text-dark); line-height: 1.3; }
.notif-text { font-size: 12px; color: var(--color-text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 11px; color: var(--color-text-xmuted); margin-top: 2px; }

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Sidebar bell wrapper */
.notif-bell-wrap {
  position: relative;
  display: inline-flex;
}

@media (max-width: 850px) {
  .notif-dropdown {
    max-height: 60vh;
  }
}
