/* ============================================================
   VESTRA REALTY — Notification Dropdown + Confirm Modal Styles
   Shared by all portals.
   ============================================================ */

/* ── Dropdown Container ───────────────────────────────────── */

.vr-notif-dropdown {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 380px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 0 0 1px rgba(28,107,63,.06);
  z-index: 10100;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.vr-notif-dropdown.vr-notif-open {
  display: flex;
}

/* ── Header ───────────────────────────────────────────────── */

.vr-notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.vr-notif-dropdown-header > span {
  font-weight: 700;
  font-size: 15px;
  color: var(--vr-text-dark, #1a1a1a);
}
.vr-notif-mark-all {
  background: none;
  border: none;
  color: var(--vr-green-500, #2db36a);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.vr-notif-mark-all:hover {
  background: rgba(45,179,106,.08);
}

/* ── List ─────────────────────────────────────────────────── */

.vr-notif-dropdown-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

/* ── Item ─────────────────────────────────────────────────── */

.vr-notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid rgba(0,0,0,.03);
}
.vr-notif-item:hover {
  background: rgba(0,0,0,.02);
}
.vr-notif-item.vr-notif-unread {
  background: rgba(45,179,106,.05);
}
.vr-notif-item.vr-notif-unread:hover {
  background: rgba(45,179,106,.08);
}

.vr-notif-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(45,179,106,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vr-green-500, #2db36a);
  font-size: 16px;
}

.vr-notif-item-body {
  flex: 1;
  min-width: 0;
}
.vr-notif-item-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--vr-text-dark, #1a1a1a);
  line-height: 1.3;
}
.vr-notif-item-message {
  font-size: 12px;
  color: var(--vr-text-muted, #888);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.vr-notif-item-time {
  font-size: 11px;
  color: var(--vr-text-muted, #aaa);
  margin-top: 4px;
}

/* ── Badge ────────────────────────────────────────────────── */

.vr-notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--vr-coral, #d95f3b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────────────── */

.vr-notif-dropdown-footer {
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 8px;
  text-align: center;
}
.vr-notif-load-more {
  background: none;
  border: none;
  color: var(--vr-green-500, #2db36a);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  width: 100%;
}
.vr-notif-load-more:hover {
  background: rgba(45,179,106,.06);
}

/* ── Empty / Loading ──────────────────────────────────────── */

.vr-notif-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--vr-text-muted, #aaa);
  font-size: 13px;
}
.vr-notif-empty i {
  display: block;
  margin-bottom: 8px;
}
.vr-notif-loading {
  text-align: center;
  padding: 32px;
  color: var(--vr-green-400, #40c077);
}
.vr-notif-loading i {
  font-size: 24px;
  animation: vr-spin 1s linear infinite;
}
@keyframes vr-spin { to { transform: rotate(360deg); } }

/* ── Confirm Modal ────────────────────────────────────────── */

.vr-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vr-fade-in .15s ease;
}
.vr-confirm-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.vr-confirm-modal h3 {
  font-family: var(--vr-font-heading, 'Cormorant Garamond', serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--vr-text-dark, #1a1a1a);
  margin: 0 0 12px;
}
.vr-confirm-modal p {
  font-size: 14px;
  color: var(--vr-text-muted, #666);
  line-height: 1.5;
  margin: 0;
}
.vr-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
@keyframes vr-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── KYC Approval Reload Banner ───────────────────────────── */

.vr-notif-kyc-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  z-index: 10300;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--vr-green-400, #40c077);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(45,179,106,.12);
  max-width: min(480px, calc(100vw - 32px));
  width: 100%;
  transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vr-notif-kyc-banner--visible {
  transform: translateX(-50%) translateY(0);
}
.vr-notif-kyc-banner-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2db36a 0%, #40c077 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.vr-notif-kyc-banner-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.vr-notif-kyc-banner-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--vr-text-dark, #1a1a1a);
  line-height: 1.3;
}
.vr-notif-kyc-banner-msg {
  font-size: 12px;
  color: var(--vr-text-muted, #666);
  margin-top: 3px;
  line-height: 1.4;
}
.vr-notif-kyc-banner-btn {
  flex-shrink: 0;
  background: var(--vr-green-400, #40c077);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  font-family: var(--vr-font-body, 'Outfit', sans-serif);
}
.vr-notif-kyc-banner-btn:hover {
  background: var(--vr-green-500, #2db36a);
}
.vr-notif-kyc-banner-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--vr-text-muted, #aaa);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.vr-notif-kyc-banner-close:hover {
  background: rgba(0,0,0,.06);
  color: var(--vr-text-dark, #1a1a1a);
}

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 767px) {
  .vr-notif-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
  }
  .vr-notif-kyc-banner {
    bottom: 80px; /* above mobile bottom nav */
    flex-wrap: wrap;
    gap: 10px;
  }
  .vr-notif-kyc-banner-btn {
    order: 3;
    width: 100%;
    text-align: center;
    padding: 11px;
  }
}
