/* Standalone styles for the bell dropdown. Theme-aware via CSS variables. */

.notif-anchor { position: relative; }

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1080;
  min-width: 360px;
  max-width: 460px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.notif-panel::before { /* caret */
  content: '';
  position: absolute;
  top: -8px; right: 16px;
  width: 16px; height: 16px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.08);
  border-top: 1px solid rgba(0,0,0,.08);
  transform: rotate(45deg);
  border-top-left-radius: 4px;
}

/* Left-aligned panel variant (used in perfil card) */
.notif-panel.align-start { left: 0; right: auto; }
.notif-panel.align-start::before { right: auto; left: 16px; }

/* Mobile responsiveness: keep panel inside viewport */
@media (max-width: 575.98px) {
  .notif-panel { min-width: 0; width: calc(100vw - 24px); right: 0; left: auto; }
  .notif-panel.align-start { left: auto; right: 0; }
  .notif-panel.align-start::before { left: auto; right: 16px; }
}

.notif-hdr,
.notif-ftr { background: #fff; }

.notif-hdr { display:flex !important; align-items:center !important; justify-content:space-between !important; padding: 10px 14px; gap: 10px; }
.notif-title-head { font-weight: 800; color: var(--one); font-size: 15px; white-space: nowrap; }
.notif-action { color: var(--buttoncolor) !important; font-size: 12.5px; text-decoration: none; font-weight:600; white-space: nowrap; }
.notif-action:hover { color: var(--twentyone) !important; text-decoration: underline; }

.notif-list { max-height: 56vh; overflow-y: auto; }

.notif-row { display:block; padding: 12px 14px; border-top: 1px solid rgba(0,0,0,.06); }
.notif-row:first-child { border-top: 0; }
.notif-row .top { display:flex; align-items:flex-start; gap: 10px; }
.notif-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; margin-top: 6px; }
.notif-dot.unread { background: var(--buttoncolor); box-shadow: 0 0 0 2px rgba(16,198,198,.15); }
.notif-dot.read { background: #cbd5e1; }
.notif-main { flex:1 1 auto; }
.notif-title { font-weight: 700; color: var(--one); font-size: 14px; line-height: 1.1; }
.notif-meta { color: #6b7280; font-size: 12px; }
.notif-chip { display:inline-block; border:1px solid var(--buttoncolor); color: var(--buttoncolor) !important; background: transparent !important; border-radius: 10px; padding: 3px 8px; font-size: 11.5px; text-decoration: none; font-weight:600; }
.notif-chip:hover { background: rgba(16,198,198,.08) !important; }
.notif-chip.done { background: rgba(16,198,198,.08) !important; color: var(--buttoncolor) !important; border-color: transparent; }
.notif-text { color:#334155; font-size: 13px; margin-top: 8px; word-wrap: break-word; }
.notif-text { white-space: pre-line; }
.notif-text { max-height: 140px; overflow: hidden; }
.notif-cta { margin-top: 8px; }
.notif-btn { display:inline-block !important; width:auto !important; background: var(--buttoncolor); color: #000 !important; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; text-decoration: none; border:1px solid var(--buttoncolor); }
.notif-btn:hover { background: var(--twentyone); color: #000 !important; border-color: var(--twentyone); }

/* Full page buttons */
.notif-page-btn { background: var(--buttoncolor) !important; color: var(--buttontextcolor) !important; border:1px solid var(--buttoncolor) !important; }
.notif-page-btn:hover { background: var(--twentyone) !important; border-color: var(--twentyone) !important; color: var(--buttontextcolor) !important; }
.notif-page-chip { background: var(--buttoncolor) !important; color: var(--buttontextcolor) !important; border:1px solid var(--buttoncolor) !important; border-radius:10px !important; font-weight:600; }
.notif-page-chip:hover { background: var(--twentyone) !important; border-color: var(--twentyone) !important; color: #000 !important; }

/* Subtle “read” tag for full page */
.notif-page-chip-done { display:inline-block; border:1px solid rgba(0,0,0,.14); color:#475569; background:#F1F5F9; border-radius:10px; padding:6px 10px; font-size:.85rem; font-weight:600; }

.notif-ftr { padding: 8px 14px; border-top: 1px solid rgba(0,0,0,.06); display:flex !important; justify-content:center !important; gap: 10px; }

/* Reset anchors inside panel to avoid global link styling */
.notif-panel a { text-decoration: none; }
