﻿@charset "UTF-8";
/* ═══════════════════════════════════════════════════
   DIVAGA NOTIFICATION SYSTEM — Modern Redesign
   ═══════════════════════════════════════════════════ */
/* ── Bell Trigger ── */
.dv-notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  text-decoration: none !important;
  cursor: pointer;
}
.dv-notify-bell:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.dv-notify-bell .dv-bell-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--header-text, rgba(255, 255, 255, 0.9));
  transition: color 0.2s ease;
}
.dv-notify-bell:hover .dv-bell-icon {
  color: var(--accent-color, #fff);
}

.dv-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color, #ef4444), var(--btn-hover, #dc2626));
  border-radius: 9px;
  border: 2px solid var(--header-bg, #1e293b);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent-color, #ef4444) 40%, transparent);
  animation: dvNotifyPulse 2s ease-in-out infinite;
}

@keyframes dvNotifyPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* ── Dropdown Container ── */
.dv-notify-dropdown {
  min-width: 380px !important;
  max-width: 400px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
  right: -20px !important;
  left: auto !important;
  top: calc(100% + 10px) !important;
  transform: none !important;
  background: #fff !important;
  z-index: 9999;
}
.dv-notify-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 1px solid rgba(0, 0, 0, 0.04);
}
@media (max-width: 480px) {
  .dv-notify-dropdown {
    min-width: 300px !important;
    max-width: 340px !important;
    right: -10px !important;
  }
}

/* ── Header ── */
.dv-notify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: none;
}

.dv-notify-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dv-notify-header-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
}

.dv-notify-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.dv-notify-header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-color), var(--link-hover));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.dv-notify-mark-all {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.dv-notify-mark-all:hover {
  color: var(--accent-color) !important;
}

/* ── Notification List ── */
.dv-notify-list {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dv-notify-list::-webkit-scrollbar {
  width: 4px;
}
.dv-notify-list::-webkit-scrollbar-track {
  background: transparent;
}
.dv-notify-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

/* ── Notification Item ── */
.dv-notify-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}
.dv-notify-item:last-child {
  border-bottom: none;
}
.dv-notify-item:hover {
  background: #f8fafc;
}
.dv-notify-item.active {
  background: #fffbeb;
  border-left: 3px solid var(--accent-color);
  padding-left: 17px;
}
.dv-notify-item.active .dv-notify-item-text {
  font-weight: 600;
}

.dv-notify-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dv-notify-item-icon svg {
  width: 18px;
  height: 18px;
}

.dv-notify-item-body {
  flex: 1;
  min-width: 0;
}

.dv-notify-item-text {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.dv-notify-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.dv-notify-item-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
}

.dv-notify-item-dot {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
}

.dv-notify-item-time {
  color: #94a3b8;
}

.dv-notify-item-unread {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

/* ── Empty State ── */
.dv-notify-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 10px;
}
.dv-notify-empty svg {
  width: 40px;
  height: 40px;
  color: #cbd5e1;
  stroke-width: 1.2;
}
.dv-notify-empty span {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Footer ── */
.dv-notify-footer {
  border-top: 1px solid #f1f5f9;
}
.dv-notify-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none !important;
  background: #f8fafc;
  transition: all 0.15s ease;
}
.dv-notify-footer a svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}
.dv-notify-footer a:hover {
  background: #f1f5f9;
  color: var(--accent-color) !important;
}
.dv-notify-footer a:hover svg {
  transform: translateX(3px);
}

/* ── Override old dropdown-notifications wrapper ── */
.dropdown-notifications.dropdown, .dropdown#bravo_notify {
  position: relative;
}
.dropdown-notifications .dropdown-menu, #bravo_notify .dropdown-menu {
  padding: 0;
  border: 0;
}

/* ── Backward compat for admin header ── */
/* ── User panel small notification widget ── */
.user-form-settings .dropdown-notifications, .user-form-settings #bravo_notify {
  top: 5px;
  right: 10px;
}
.user-form-settings .notification-icon {
  min-width: 15px !important;
  top: -1px;
  left: 14px;
  font-size: 9px !important;
}
.user-form-settings .notification .media-body a {
  font-size: 12px;
}

/* ── Full Page Notification List ── */
.notification-list .notify-f-item {
  margin-bottom: 10px;
  position: relative;
}
.notification-list .notify-f-item .user-avatar {
  position: absolute;
  left: 0;
  top: 10px;
}
.notification-list .notify-f-item .user-avatar img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.notification-list .notify-f-item .user-avatar .avatar-text {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  background-color: rgba(25, 103, 210, 0.1);
  align-items: center;
  justify-content: center;
}
.notification-list .notify-f-item a {
  color: var(--dv-primary);
}
.notification-list .notify-f-item .notification-meta {
  line-height: 1.2;
}

@media (max-width: 990px) {
  .user-form-settings .dropdown-notifications, .user-form-settings #bravo_notify {
    left: -35px;
    top: 5px;
  }
}
