/* ════════════════════════════════════════════════════════════
   MEA — Notifications System CSS  v2.0
   Design premium · Painel de sino + Modal + Toasts
════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   1. BOTÃO SINO
══════════════════════════════════════════════════════════ */
.notif-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.notif-trigger:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  transform: translateY(-1px);
}
.notif-trigger[aria-expanded="true"] {
  background: rgba(241,179,28,.18);
  border-color: rgba(241,179,28,.35);
  color: #F1B31C;
}
.notif-trigger.has-unread {
  color: #F1B31C;
}

/* Animação de balanço ao receber notificação */
@keyframes bellRing {
  0%,100% { transform: rotate(0); }
  15%     { transform: rotate(16deg); }
  30%     { transform: rotate(-14deg); }
  45%     { transform: rotate(10deg); }
  60%     { transform: rotate(-6deg); }
  75%     { transform: rotate(3deg); }
}
.notif-trigger.ring i { animation: bellRing .6s ease; }

/* Badge de contagem */
.notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  background: #ef4444;
  border: 2px solid #1e3d2f;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(239,68,68,.45);
}
.notif-dot.count { display: none; }
.notif-dot.count.visible { display: flex; }

@keyframes badgePop {
  0%   { transform: scale(0); }
  65%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.notif-dot.count.visible { animation: badgePop .3s cubic-bezier(.22,.61,.36,1) both; }

/* ══════════════════════════════════════════════════════════
   2. PAINEL PRINCIPAL
══════════════════════════════════════════════════════════ */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -4px;
  width: 400px;
  max-width: calc(100vw - 20px);
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06),
    0 4px 8px rgba(0,0,0,.04),
    0 20px 56px rgba(0,0,0,.16);
  z-index: 400;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  pointer-events: none;
  transform-origin: top right;
  transition: opacity .2s cubic-bezier(.22,.61,.36,1),
              transform .2s cubic-bezier(.22,.61,.36,1);
}
.notif-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Cabeçalho ── */
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #1a3d2b 0%, #264a37 100%);
  position: relative;
  overflow: hidden;
}

/* Padrão decorativo no header */
.notif-panel-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(241,179,28,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.notif-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
  position: relative;
  z-index: 1;
}
.notif-panel-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(241,179,28,.18);
  border: 1px solid rgba(241,179,28,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F1B31C;
  font-size: 13px;
  flex-shrink: 0;
}

.notif-count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(239,68,68,.4);
  transition: background .2s;
}
.notif-count-bubble.zero {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  box-shadow: none;
}

.notif-panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.notif-mark-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.notif-mark-all:hover:not(:disabled) {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.notif-mark-all:disabled { opacity: .35; cursor: default; }
.notif-mark-all i { font-size: 9px; }

/* ── Filtros ── */
.notif-filters {
  display: flex;
  gap: 5px;
  padding: 12px 14px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.notif-filters::-webkit-scrollbar { display: none; }

.notif-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s, transform .1s;
}
.notif-filter-btn:hover {
  border-color: #335f46;
  color: #335f46;
  transform: translateY(-1px);
}
.notif-filter-btn.active {
  background: #264a37;
  border-color: #264a37;
  color: #fff;
  box-shadow: 0 2px 8px rgba(38,74,55,.25);
}
.notif-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(0,0,0,.08);
  color: inherit;
  transition: background .15s;
}
.notif-filter-btn.active .filter-count {
  background: rgba(255,255,255,.2);
}
.notif-filter-btn .filter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

/* ── Lista ── */
.notif-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.notif-list::-webkit-scrollbar { width: 3px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 3px; }

/* ── Item de notificação ── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background .15s;
  position: relative;
  animation: notifItemIn .25s ease both;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f8f9fa; }

.notif-item.nao-lida {
  background: linear-gradient(to right, #f0faf5 0%, #fafffe 60%, #fff 100%);
}
.notif-item.nao-lida:hover { background: #e8f5ee; }

/* Barra de acento esquerda (não lida) */
.notif-item.nao-lida::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #335f46;
}
.notif-item.nao-lida.tipo-urgente::before { background: #ef4444; }
.notif-item.nao-lida.tipo-quota::before   { background: #F1B31C; }
.notif-item.nao-lida.tipo-mensagem::before{ background: #3b82f6; }
.notif-item.nao-lida.tipo-inquerito::before{ background: #8b5cf6; }

@keyframes notifItemIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Ponto de não lida (canto superior direito) */
.notif-item-dot {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #335f46;
  border: 1.5px solid #fff;
  display: none;
  box-shadow: 0 0 0 2px rgba(51,95,70,.2);
}
.notif-item.nao-lida .notif-item-dot { display: block; }
.notif-item.nao-lida.tipo-urgente .notif-item-dot { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.2); }

/* ── Ícone do tipo ── */
.notif-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
}
/* Prioridade alta — anel animado */
.notif-item-icon.urgente::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1.5px solid currentColor;
  opacity: .3;
  animation: iconRing 2s ease infinite;
}
@keyframes iconRing {
  0%,100% { opacity: .3; transform: scale(1); }
  50%     { opacity: .1; transform: scale(1.08); }
}

.notif-icon-evento    { background: linear-gradient(135deg,#e8f5ee,#d1ead9); color: #264a37; }
.notif-icon-quota     { background: linear-gradient(135deg,#fef9e7,#fef3c7); color: #92400e; }
.notif-icon-mensagem  { background: linear-gradient(135deg,#eff6ff,#dbeafe); color: #1d4ed8; }
.notif-icon-denuncia  { background: linear-gradient(135deg,#fef2f2,#fee2e2); color: #b91c1c; }
.notif-icon-inquerito { background: linear-gradient(135deg,#faf5ff,#ede9fe); color: #6d28d9; }
.notif-icon-sistema   { background: linear-gradient(135deg,#f8fafc,#f1f5f9); color: #475569; }

/* ── Corpo do item ── */
.notif-item-body {
  flex: 1;
  min-width: 0;
  padding-right: 18px;
}
.notif-item-titulo {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item.nao-lida .notif-item-titulo {
  font-weight: 800;
  color: #0f1f15;
}
.notif-item-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.notif-item-tempo {
  font-size: 10.5px;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}
.notif-item-tempo i { font-size: 8px; }

/* Pill de tipo */
.notif-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.notif-tag-evento    { background: #dcfce7; color: #166534; }
.notif-tag-quota     { background: #fef9c3; color: #854d0e; }
.notif-tag-mensagem  { background: #dbeafe; color: #1e40af; }
.notif-tag-denuncia  { background: #fee2e2; color: #991b1b; }
.notif-tag-inquerito { background: #ede9fe; color: #5b21b6; }
.notif-tag-sistema   { background: #f1f5f9; color: #475569; }
.notif-tag-urgente   { background: #fee2e2; color: #dc2626; }

/* ── Acções inline (confirmar / rejeitar) ── */
.notif-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.notif-action-btn:hover { transform: translateY(-1px); }
.notif-action-btn:active { transform: translateY(0); }

.notif-action-btn.confirmar {
  background: #264a37;
  color: #fff;
  box-shadow: 0 2px 8px rgba(38,74,55,.25);
}
.notif-action-btn.confirmar:hover { background: #1a3d2b; box-shadow: 0 4px 12px rgba(38,74,55,.35); }

.notif-action-btn.rejeitar {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.notif-action-btn.rejeitar:hover { background: #ffe4e6; border-color: #fda4af; }

.notif-action-btn.ver {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.notif-action-btn.ver:hover { background: #f1f5f9; }

.notif-action-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── Empty state ── */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 40px;
  gap: 10px;
  text-align: center;
}
.notif-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0faf5, #e8f5ee);
  border: 1.5px solid #d1ead9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #7a9a87;
  margin-bottom: 6px;
}
.notif-empty-title {
  font-size: 14px;
  font-weight: 800;
  color: #1a2e23;
}
.notif-empty-sub {
  font-size: 12.5px;
  color: #9ca3af;
  max-width: 220px;
  line-height: 1.55;
}

/* ── Skeleton de carregamento ── */
.notif-skeleton-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
}
.notif-skel-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s ease infinite;
}
.notif-skel-body  { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-top: 3px; }
.notif-skel-line  {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s ease infinite;
}
.notif-skel-line.short  { width: 60%; animation-delay: .1s; }
.notif-skel-line.xshort { width: 35%; animation-delay: .2s; }

@keyframes skelShimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Rodapé ── */
.notif-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
  gap: 8px;
}
.notif-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #335f46;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.notif-footer-link:hover { background: #f0f5f2; }
.notif-footer-sep {
  width: 1px;
  height: 14px;
  background: #e5e7eb;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   3. MODAL DE CONFIRMAÇÃO DE PRESENÇA
══════════════════════════════════════════════════════════ */
.ev-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,24,16,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.ev-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ev-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06),
    0 10px 40px rgba(0,0,0,.2),
    0 40px 80px rgba(0,0,0,.12);
  overflow: hidden;
  transform: translateY(24px) scale(.96);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.ev-modal-overlay.open .ev-modal {
  transform: translateY(0) scale(1);
}

/* Faixa de cor no topo do modal */
.ev-modal-stripe {
  height: 4px;
  background: linear-gradient(to right, #264a37, #335f46, #4a8c62);
  transition: background .25s;
}
.ev-modal-stripe.rejeitar {
  background: linear-gradient(to right, #b91c1c, #dc2626, #ef4444);
}

/* Cabeçalho */
.ev-modal-head {
  padding: 22px 24px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ev-modal-head-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background .25s, color .25s;
}
.ev-modal-head-icon.confirmar {
  background: linear-gradient(135deg, #e8f5ee, #d1ead9);
  color: #264a37;
  box-shadow: 0 4px 14px rgba(38,74,55,.15);
}
.ev-modal-head-icon.rejeitar {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  box-shadow: 0 4px 14px rgba(220,38,38,.15);
}
.ev-modal-head-text { flex: 1; min-width: 0; padding-top: 2px; }
.ev-modal-titulo {
  font-size: 18px;
  font-weight: 900;
  color: #0f1f15;
  margin-bottom: 5px;
  line-height: 1.2;
  letter-spacing: -.3px;
}
.ev-modal-sub {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}
.ev-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.ev-modal-close:hover { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }

/* Corpo */
.ev-modal-body { padding: 0 24px 4px; }

/* Card de evento no modal */
.ev-modal-evento-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 14px;
}
.ev-modal-cal {
  flex-shrink: 0;
  width: 50px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.ev-modal-cal-top {
  background: #264a37;
  color: rgba(255,255,255,.8);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  padding: 4px 0;
}
.ev-modal-cal-day {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  font-size: 21px;
  font-weight: 900;
  color: #0f1f15;
  text-align: center;
  padding: 4px 0;
  line-height: 1.1;
}
.ev-modal-evento-info { flex: 1; min-width: 0; }
.ev-modal-evento-titulo {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-modal-evento-meta { display: flex; flex-direction: column; gap: 3px; }
.ev-modal-evento-meta span {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ev-modal-evento-meta i { font-size: 10px; color: #7a9a87; width: 10px; text-align: center; }

/* Caixa de informação contextual */
.ev-modal-confirm-text {
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ev-modal-confirm-text i { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.ev-modal-confirm-text.confirmar {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}
.ev-modal-confirm-text.rejeitar {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #881337;
}
.ev-modal-confirm-text-body { flex: 1; }

/* Campo de nota */
.ev-modal-nota-wrap { margin-top: 12px; }
.ev-modal-nota-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ev-modal-nota-label .opcional {
  font-weight: 400;
  color: #9ca3af;
  font-style: italic;
}
.ev-modal-nota {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font: inherit;
  font-size: 13px;
  color: #374151;
  resize: vertical;
  min-height: 76px;
  background: #fafafa;
  transition: border-color .15s, background .15s;
}
.ev-modal-nota:focus {
  outline: none;
  border-color: #335f46;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(51,95,70,.08);
}

/* Rodapé modal */
.ev-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
  align-items: center;
}
.ev-modal-footer-hint {
  flex: 1;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ev-modal-footer-hint i { font-size: 10px; }
.ev-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .18s cubic-bezier(.22,.61,.36,1);
  white-space: nowrap;
  letter-spacing: -.1px;
}
.ev-modal-btn.cancelar {
  background: #f8fafc;
  color: #475569;
  border: 1.5px solid #e2e8f0;
}
.ev-modal-btn.cancelar:hover { background: #f1f5f9; border-color: #cbd5e1; }
.ev-modal-btn.confirmar {
  background: linear-gradient(135deg, #264a37, #335f46);
  color: #fff;
  box-shadow: 0 4px 14px rgba(38,74,55,.3);
}
.ev-modal-btn.confirmar:hover {
  background: linear-gradient(135deg, #1a3d2b, #264a37);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(38,74,55,.4);
}
.ev-modal-btn.rejeitar {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  box-shadow: 0 4px 14px rgba(185,28,28,.3);
}
.ev-modal-btn.rejeitar:hover {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(185,28,28,.4);
}
.ev-modal-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.ev-modal-btn.loading { pointer-events: none; }

/* Spinner no botão */
.ev-modal-btn .btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: modalSpin .6s linear infinite;
  display: none;
}
.ev-modal-btn.loading .btn-spinner { display: block; }
.ev-modal-btn.loading .btn-label   { display: none; }
@keyframes modalSpin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   4. TOASTS
══════════════════════════════════════════════════════════ */
.mea-toast-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
}

.mea-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06),
    0 8px 30px rgba(0,0,0,.14);
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  pointer-events: all;
  animation: toastIn .35s cubic-bezier(.22,.61,.36,1) both;
  position: relative;
  overflow: hidden;
}
/* Barra de progresso de tempo */
.mea-toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
  background: #335f46;
  width: 100%;
  animation: toastProgress 4s linear forwards;
}
.mea-toast.erro::after  { background: #dc2626; }
.mea-toast.aviso::after { background: #F1B31C; }

@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

.mea-toast-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mea-toast .mea-toast-icon-wrap          { background: #f0fdf4; color: #16a34a; }
.mea-toast.erro  .mea-toast-icon-wrap    { background: #fef2f2; color: #dc2626; }
.mea-toast.aviso .mea-toast-icon-wrap    { background: #fefce8; color: #d97706; }

.mea-toast-body { flex: 1; min-width: 0; }
.mea-toast-titulo {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1px;
}
.mea-toast-msg {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.4;
}

.mea-toast-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
  pointer-events: all;
}
.mea-toast-close:hover { background: #f3f4f6; color: #374151; }

.mea-toast.saindo { animation: toastOut .3s ease forwards; }

@keyframes toastIn  {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); max-height: 80px; }
  to   { opacity: 0; transform: translateY(8px) scale(.95); max-height: 0; margin: 0; padding: 0; }
}

/* ══════════════════════════════════════════════════════════
   5. RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .notif-panel {
    width: calc(100vw - 16px);
    right: calc(-100vw + 56px);
    border-radius: 16px;
  }
  .ev-modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }
  .ev-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .ev-modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .ev-modal-footer-hint { display: none; }
  .ev-modal-btn { width: 100%; justify-content: center; }
  .mea-toast-wrap {
    bottom: 16px;
    right: 12px;
    left: 12px;
    max-width: 100%;
  }
}
@media (max-width: 400px) {
  .notif-panel-head { padding: 16px 16px 12px; }
  .notif-filter-btn { padding: 4px 10px; font-size: 11px; }
}
