/* /static/notifications_ui.css */

.notif-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.notif-btn{
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  color:#111827;
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
  line-height:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.notif-btn:hover{ filter:brightness(.98); }

.notif-badge{
  display:none;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:18px;
  text-align:center;
  background:#ef4444;
  color:#fff;
}

.notif-badge.show{ display:inline-block; }

.notif-dd{
  position:absolute;
  right:0;
  top:42px;
  width:360px;
  max-width:calc(100vw - 16px); /* hogy desktopon se tudjon kilógni teljesen */
  background:#fff;
  border:1px solid rgba(0,0,0,.14);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  overflow:hidden;
  z-index:9999;
  display:none;
}

/* Ha balra kilógna: JS ráteszi ezt az osztályt */
.notif-dd.edge-left{
  left:0;
  right:auto;
}

/* MOBILON: legyen fix, full-width jellegű */
@media (max-width: 520px){
  .notif-dd{
    position:fixed;
    left:10px !important;
    right:10px !important;
    top:64px !important;
    width:auto !important;
    max-width:none !important;
  }
}

.notif-dd.show{ display:block; }

.notif-dd-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.notif-dd-title{
  font-weight:800;
  color:#111827;
}

.notif-dd-actions{
  display:flex;
  gap:8px;
}

.notif-dd-actions button{
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  border-radius:10px;
  padding:6px 8px;
  cursor:pointer;
  font-size:12px;
}

.notif-list{
  max-height:420px;
  overflow:auto;
}

.notif-item{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
  cursor:pointer;
}

.notif-item:hover{ background:rgba(0,0,0,.02); }

.notif-item-title{
  font-weight:700;
  color:#111827;
  margin-bottom:4px;
}

.notif-item-msg{
  color:#374151;
  font-size:13px;
  overflow-wrap:anywhere;
}

.notif-item-meta{
  margin-top:6px;
  font-size:12px;
  color:#6b7280;
  display:flex;
  gap:10px;
}

.notif-dd-foot{
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid rgba(0,0,0,.08);
}

.notif-dd-foot a{
  text-decoration:none;
  font-weight:700;
}
