/* ========================================
   BIVA V2 — NOTIFICATION CENTER
======================================== */


/* ========================================
   BODY LOCK
======================================== */

body.notification-center-open {
  overflow: hidden;
}


/* ========================================
   OVERLAY
======================================== */

.notification-center-overlay {
  position: fixed;
  inset: 0;

  z-index: 10990;

  background:
    rgba(7, 12, 24, 0.56);

  backdrop-filter:
    blur(5px);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.notification-center-overlay.is-visible {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}


/* ========================================
   DRAWER
======================================== */

.notification-center {
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;

  z-index: 11000;

  width:
    min(430px, 100%);

  display: grid;

  grid-template-rows:
    auto
    auto
    auto
    minmax(0, 1fr);

  border-left:
    1px solid
    rgba(255, 255, 255, 0.08);

  background:
    #ffffff;

  box-shadow:
    -24px 0 70px
    rgba(7, 12, 24, 0.24);

  transform:
    translateX(104%);

  visibility: hidden;

  transition:
    transform 220ms ease,
    visibility 220ms ease;
}

.notification-center.is-open {
  transform:
    translateX(0);

  visibility: visible;
}


/* ========================================
   HEADER
======================================== */

.notification-center-header {
  position: relative;

  min-height: 154px;

  padding: 25px 24px 22px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  color:
    #ffffff;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(53, 112, 243, 0.38),
      transparent 42%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(255, 200, 46, 0.08),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-black-soft) 58%,
      #173675
    );

  overflow: hidden;
}

.notification-center-header::before {
  content: "";

  position: absolute;

  inset:
    0 0 auto 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--biva-blue-500),
      var(--biva-yellow-400),
      transparent 86%
    );
}

.notification-center-header::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  right: -82px;
  bottom: -132px;

  border:
    1px solid
    rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  box-shadow:
    0 0 0 34px
    rgba(255, 255, 255, 0.018),

    0 0 0 68px
    rgba(255, 255, 255, 0.009);

  pointer-events: none;
}

.notification-center-header > * {
  position: relative;
  z-index: 1;
}

.notification-center-header > div {
  min-width: 0;
}

.notification-center-header > div > span {
  display: block;

  margin-bottom: 7px;

  color:
    var(--biva-yellow-400);

  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notification-center-header h2 {
  margin: 0;

  color:
    #ffffff;

  font-size:
    clamp(1.65rem, 4vw, 2.25rem);

  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.notification-center-header small {
  display: block;

  margin-top: 9px;

  color:
    rgba(255, 255, 255, 0.65);

  font-size: 0.65rem;
  line-height: 1.45;
}


/* ========================================
   CLOSE BUTTON
======================================== */

.notification-center-close-btn {
  width: 38px;
  height: 38px;

  flex:
    0 0 38px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 12px;

  color:
    #ffffff;

  background:
    rgba(255, 255, 255, 0.08);

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.notification-center-close-btn:hover {
  border-color:
    rgba(255, 255, 255, 0.28);

  background:
    rgba(255, 255, 255, 0.14);
}

.notification-center-close-btn svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 2;
  stroke-linecap: round;
}


/* ========================================
   TOOLBAR
======================================== */

.notification-center-toolbar {
  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-bottom:
    1px solid
    var(--biva-line);

  background:
    var(--biva-surface-soft);
}

.notification-center-filters,
.notification-center-toolbar-actions {
  display: flex;
  align-items: center;

  gap: 8px;
}

.notification-center-filter-btn,
.notification-center-refresh-btn,
.notification-center-mark-all-btn {
  min-height: 35px;

  padding:
    0 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 10px;

  color:
    var(--biva-text);

  background:
    #ffffff;

  font:
    inherit;

  font-size: 0.61rem;
  font-weight: 820;

  white-space: nowrap;

  cursor: pointer;

  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.notification-center-filter-btn:hover,
.notification-center-refresh-btn:hover,
.notification-center-mark-all-btn:hover {
  border-color:
    rgba(53, 112, 243, 0.22);

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.notification-center-filter-btn.is-active {
  border-color:
    var(--biva-blue-600);

  color:
    #ffffff;

  background:
    var(--biva-blue-600);
}

.notification-center-refresh-btn:disabled,
.notification-center-mark-all-btn:disabled {
  opacity: 0.55;

  cursor: wait;
}

.notification-center-refresh-btn svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   FEEDBACK
======================================== */

.notification-center-feedback {
  min-height: 0;

  padding:
    0 16px;

  overflow: hidden;

  color:
    var(--biva-text);

  background:
    #ffffff;

  font-size: 0.63rem;
  font-weight: 750;

  transition:
    min-height 160ms ease,
    padding 160ms ease;
}

.notification-center-feedback:not(:empty) {
  min-height: 40px;

  padding:
    12px 16px;

  border-bottom:
    1px solid
    var(--biva-line);
}

.notification-center-feedback[data-type="success"] {
  color:
    var(--biva-success);

  background:
    var(--biva-success-soft);
}

.notification-center-feedback[data-type="error"] {
  color:
    var(--biva-danger);

  background:
    var(--biva-danger-soft);
}


/* ========================================
   LIST
======================================== */

.notification-center-list {
  min-height: 0;

  padding:
    12px;

  overflow-y: auto;

  background:
    #f6f8fc;
}

.notification-center-list::-webkit-scrollbar {
  width: 8px;
}

.notification-center-list::-webkit-scrollbar-track {
  background:
    transparent;
}

.notification-center-list::-webkit-scrollbar-thumb {
  border:
    2px solid
    #f6f8fc;

  border-radius:
    999px;

  background:
    #c7d0df;
}


/* ========================================
   ITEM
======================================== */

.notification-center-item {
  position: relative;

  margin-bottom: 10px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: stretch;

  border:
    1px solid
    var(--biva-line);

  border-radius: 15px;

  background:
    #ffffff;

  box-shadow:
    0 6px 18px
    rgba(15, 31, 58, 0.045);

  overflow: hidden;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.notification-center-item:last-child {
  margin-bottom: 0;
}

.notification-center-item:hover {
  border-color:
    rgba(53, 112, 243, 0.2);

  box-shadow:
    0 10px 26px
    rgba(15, 31, 58, 0.08);

  transform:
    translateY(-1px);
}

.notification-center-item.is-unread {
  border-color:
    rgba(53, 112, 243, 0.18);

  background:
    linear-gradient(
      145deg,
      var(--biva-blue-50),
      #ffffff 68%
    );
}

.notification-center-item.is-processing {
  opacity: 0.58;

  pointer-events: none;
}


/* ========================================
   MAIN ITEM BUTTON
======================================== */

.notification-center-item-main {
  width: 100%;
  min-width: 0;

  padding:
    14px 10px 14px 14px;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  align-items: start;

  gap: 12px;

  border: 0;

  color:
    inherit;

  background:
    transparent;

  font:
    inherit;

  text-align: left;

  cursor: pointer;
}

.notification-center-item-main:focus-visible,
.notification-center-delete-btn:focus-visible,
.notification-center-close-btn:focus-visible,
.notification-center-filter-btn:focus-visible,
.notification-center-refresh-btn:focus-visible,
.notification-center-mark-all-btn:focus-visible,
#retryNotificationsBtn:focus-visible {
  outline: 0;

  box-shadow:
    var(--biva-focus-ring);
}


/* ========================================
   ITEM ICON
======================================== */

.notification-center-item-icon {
  width: 42px;
  height: 42px;

  flex:
    0 0 42px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.notification-center-item-icon[data-color="blue"] {
  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.notification-center-item-icon[data-color="green"] {
  color:
    var(--biva-success);

  background:
    var(--biva-success-soft);
}

.notification-center-item-icon[data-color="yellow"],
.notification-center-item-icon[data-color="orange"] {
  color:
    #805800;

  background:
    var(--biva-yellow-50);
}

.notification-center-item-icon[data-color="red"] {
  color:
    var(--biva-danger);

  background:
    var(--biva-danger-soft);
}

.notification-center-item-icon[data-color="purple"] {
  color:
    #6549d6;

  background:
    #f3efff;
}

.notification-center-item-icon[data-color="grey"] {
  color:
    var(--biva-muted);

  background:
    var(--biva-surface-muted);
}

.notification-center-item-icon[data-color="navy"] {
  color:
    #173675;

  background:
    #edf2ff;
}

.notification-center-item-icon svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   ITEM CONTENT
======================================== */

.notification-center-item-content {
  min-width: 0;

  display: grid;

  gap: 5px;
}

.notification-center-item-title {
  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.72rem;
  font-weight: 880;
  line-height: 1.35;
}

.notification-center-item-message {
  display: -webkit-box;

  overflow: hidden;

  color:
    var(--biva-muted);

  font-size: 0.64rem;
  line-height: 1.5;

  -webkit-box-orient:
    vertical;

  -webkit-line-clamp:
    3;
}

.notification-center-item-time {
  color:
    var(--biva-subtle);

  font-size: 0.56rem;
  font-weight: 700;
}


/* ========================================
   UNREAD DOT
======================================== */

.notification-center-unread-dot {
  width: 8px;
  height: 8px;

  margin-top: 5px;

  border:
    2px solid
    #ffffff;

  border-radius: 50%;

  background:
    var(--biva-blue-600);

  box-shadow:
    0 0 0 2px
    rgba(53, 112, 243, 0.12);
}


/* ========================================
   DELETE BUTTON
======================================== */

.notification-center-delete-btn {
  width: 42px;
  min-height: 100%;

  display: grid;
  place-items: center;

  border: 0;
  border-left:
    1px solid
    var(--biva-line);

  color:
    var(--biva-subtle);

  background:
    #ffffff;

  cursor: pointer;

  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.notification-center-delete-btn:hover {
  color:
    var(--biva-danger);

  background:
    var(--biva-danger-soft);
}

.notification-center-delete-btn:disabled {
  opacity: 0.5;

  cursor: wait;
}

.notification-center-delete-btn svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   EMPTY, LOADING AND ERROR STATES
======================================== */

.notification-center-empty,
.notification-center-loading,
.notification-center-error {
  min-height: 330px;

  padding:
    40px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.notification-center-empty > span,
.notification-center-error > span {
  width: 60px;
  height: 60px;

  margin-bottom: 15px;

  display: grid;
  place-items: center;

  border-radius: 19px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.notification-center-error > span {
  color:
    var(--biva-danger);

  background:
    var(--biva-danger-soft);
}

.notification-center-empty svg,
.notification-center-error svg {
  width: 28px;
  height: 28px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-center-empty strong,
.notification-center-loading strong,
.notification-center-error strong {
  color:
    var(--biva-ink);

  font-size: 0.84rem;
  font-weight: 880;
}

.notification-center-empty p,
.notification-center-loading p,
.notification-center-error p {
  max-width: 300px;

  margin:
    7px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.65rem;
  line-height: 1.55;
}

.notification-center-loading {
  gap: 4px;
}

.notification-center-spinner {
  width: 32px;
  height: 32px;

  margin-bottom: 13px;

  border:
    3px solid
    rgba(53, 112, 243, 0.15);

  border-top-color:
    var(--biva-blue-600);

  border-radius: 50%;

  animation:
    notification-center-spin
    760ms linear infinite;
}

@keyframes notification-center-spin {

  to {
    transform:
      rotate(360deg);
  }

}

#retryNotificationsBtn {
  min-height: 39px;

  margin-top: 15px;
  padding:
    0 14px;

  border:
    1px solid
    var(--biva-blue-600);

  border-radius: 11px;

  color:
    #ffffff;

  background:
    var(--biva-blue-600);

  font:
    inherit;

  font-size: 0.63rem;
  font-weight: 840;

  cursor: pointer;
}

#retryNotificationsBtn:hover {
  background:
    var(--biva-blue-700);
}


/* ========================================
   SIDEBAR NOTIFICATION BADGES
======================================== */

#clientNotificationBadge,
#adminNotificationBadge,
#associateNotificationBadge {
  display: none;

  min-width: 19px;
  height: 19px;

  padding:
    0 5px;

  align-items: center;
  justify-content: center;

  border:
    2px solid
    #ffffff;

  border-radius: 999px;

  color:
    #ffffff;

  background:
    var(--biva-danger);

  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
}

#clientNotificationBadge.is-visible,
#adminNotificationBadge.is-visible,
#associateNotificationBadge.is-visible {
  display:
    inline-flex;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 700px) {

  .notification-center {
    width:
      min(390px, 100%);
  }

  .notification-center-header {
    min-height: 142px;

    padding:
      23px 20px 20px;
  }

  .notification-center-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-center-filters,
  .notification-center-toolbar-actions {
    width: 100%;
  }

  .notification-center-filter-btn,
  .notification-center-refresh-btn,
  .notification-center-mark-all-btn {
    flex: 1;
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 480px) {

  .notification-center {
    width: 100%;
  }

  .notification-center-header {
    min-height: 132px;

    padding:
      22px 17px 18px;
  }

  .notification-center-header h2 {
    font-size: 1.75rem;
  }

  .notification-center-toolbar {
    padding:
      12px;
  }

  .notification-center-toolbar-actions {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .notification-center-list {
    padding:
      10px;
  }

  .notification-center-item-main {
    padding:
      13px 9px 13px 12px;

    gap: 10px;
  }

  .notification-center-item-icon {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .notification-center-item-icon svg {
    width: 18px;
    height: 18px;
  }

  .notification-center-delete-btn {
    width: 39px;
  }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 360px) {

  .notification-center-toolbar-actions {
    grid-template-columns:
      1fr;
  }

  .notification-center-item-main {
    grid-template-columns:
      auto minmax(0, 1fr);
  }

  .notification-center-unread-dot {
    display: none;
  }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  .notification-center-overlay,
  .notification-center,
  .notification-center-item,
  .notification-center-close-btn,
  .notification-center-filter-btn,
  .notification-center-refresh-btn,
  .notification-center-mark-all-btn,
  .notification-center-delete-btn {
    transition: none;
  }

  .notification-center-spinner {
    animation: none;
  }

}







.biva-admin-sidebar__standalone {
  margin-top: auto;
  padding: 14px 14px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.biva-admin-sidebar__standalone
.biva-admin-sidebar__item {
  width: 100%;
}