/* ============================================================
   NOTIFICAÇÕES — Painel deslizante
   ============================================================ */

/* ----- Overlay ----- */
.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.notif-overlay.show {
  display: flex;
  opacity: 1;
}

/* ----- Sheet (mobile: desliza da direita, desktop: modal) ----- */
.notif-sheet {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
  border-left: 1px solid rgba(255,255,255,0.06);
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 401;
}
.notif-overlay.show .notif-sheet {
  transform: translateX(0);
}

/* Header */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.notif-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notif-header-title h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.notif-header-title .notif-count {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}
.notif-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.notif-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Toolbar */
.notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.notif-toolbar-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}
.notif-toolbar-btn:hover {
  background: rgba(59,130,246,0.1);
}
.notif-filter {
  display: flex;
  gap: 6px;
}
.notif-filter-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
}
.notif-filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* List */
.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Item */
.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.notif-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.notif-item.unread {
  background: rgba(59,130,246,0.04);
  border-color: rgba(59,130,246,0.1);
}
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.notif-item.destaque {
  border-color: rgba(245,158,11,0.2);
  background: rgba(245,158,11,0.03);
}

/* Icon */
.notif-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-icon.atualizacao { background: rgba(59,130,246,0.12); color: #60a5fa; }
.notif-icon.bug_corrigido { background: rgba(16,185,129,0.12); color: #34d399; }
.notif-icon.aviso { background: rgba(245,158,11,0.12); color: #fbbf24; }
.notif-icon.bug { background: rgba(239,68,68,0.12); color: #f87171; }

/* Content */
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-title .notif-badge-novo {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
}
.notif-title .notif-badge-destaque {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
  border-radius: 4px;
}
.notif-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 8px;
}
.notif-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.notif-meta i { font-size: 10px; }

/* Action button inside item */
.notif-action-btn {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.notif-action-btn.primary {
  background: var(--accent);
  color: #fff;
}
.notif-action-btn.primary:hover {
  background: #2563eb;
}
.notif-action-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  border: 1px solid rgba(255,255,255,0.08);
}
.notif-action-btn.secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Empty state */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.notif-empty-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.notif-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.notif-empty-desc {
  font-size: 13px;
  color: var(--text-3);
}

/* Footer */
.notif-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-footer-info {
  font-size: 11px;
  color: var(--text-3);
}

/* ----- MODAL (para ação tipo modal) ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.show {
  display: flex;
  opacity: 1;
}
.modal-sheet {
  background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.show .modal-sheet {
  transform: scale(1);
}
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 16px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-btn:hover { background: #2563eb; }
.modal-btn.secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-2);
  margin-top: 8px;
}
.modal-btn.secondary:hover { background: rgba(255,255,255,0.1); }

/* ----- DESKTOP: notificações como modal central ----- */
@media (min-width: 1024px) {
  .notif-overlay {
    align-items: center;
    justify-content: center;
  }
  .notif-sheet {
    position: relative;
    top: auto; right: auto; bottom: auto;
    max-width: 520px;
    max-height: 80vh;
    border-radius: 24px;
    border-left: none;
    border: 1px solid rgba(255,255,255,0.08);
    transform: scale(0.92) translateY(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }
  .notif-overlay.show .notif-sheet {
    transform: scale(1) translateY(0);
  }
}