/* LiveFramework notification bell + dockable panel body.
   The outer chrome (title bar, pin, close, overlay) is .lf-shell-panel from shell.css —
   NotificationsDockable declares a ToggleIcon. This file styles the bell and the list. */

.lf-notif-toggle {
  position: relative;
  width: 38px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}

.lf-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  line-height: 1.1rem;
  text-align: center;
  font-weight: 700;
}

/* Body only — sits inside .lf-shell-panel-body. Fills the panel so the list scrolls. */
.lf-shell-panel-body:has(> .lf-notif) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lf-notif {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.lf-notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid #e9ecef;
  flex: 0 0 auto;
}

.lf-notif-mark-all {
  border: 0;
  background: transparent;
  color: #0d6efd;
  font-size: 0.8rem;
  padding: 0.15rem 0.3rem;
  cursor: pointer;
}
.lf-notif-mark-all:hover { text-decoration: underline; }

.lf-notif-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.lf-notif-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #f1f3f5;
  position: relative;
}
.lf-notif-item-unread { background: #f4f8ff; }

.lf-notif-item-icon {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}
.lf-notif-sev-info { color: #0d6efd; }
.lf-notif-sev-success { color: #198754; }
.lf-notif-sev-warning { color: #fd7e14; }
.lf-notif-sev-error { color: #dc3545; }

.lf-notif-item-main {
  flex: 1 1 auto;
  min-width: 0;
}
.lf-notif-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-word;
}
.lf-notif-item-body {
  font-size: 0.8rem;
  color: #495057;
  margin-top: 0.15rem;
  word-break: break-word;
}
.lf-notif-item-time {
  font-size: 0.7rem;
  color: #868e96;
  margin-top: 0.3rem;
}

.lf-notif-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.lf-notif-action {
  border: 1px solid #ced4da;
  background: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}
.lf-notif-action-primary { border-color: #0d6efd; color: #0d6efd; }
.lf-notif-action-danger { border-color: #dc3545; color: #dc3545; }
.lf-notif-action-done { opacity: 0.55; cursor: default; }

.lf-notif-item-dismiss {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  border: 0;
  background: transparent;
  color: #adb5bd;
  padding: 0.15rem;
  line-height: 1;
  cursor: pointer;
}
.lf-notif-item-dismiss:hover { color: #495057; }

.lf-notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #adb5bd;
  flex: 1 1 auto;
}
.lf-notif-empty i { font-size: 1.5rem; margin-bottom: 0.4rem; display: block; }
.lf-notif-empty p { margin: 0; font-size: 0.85rem; }
