.notifications-body * {
  transition: 0.3s ease;
}




/* Notification Wrapper */
.notification-wrapper {
  position: relative;
  display: inline-block;
}


/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: 115%;
  max-height: 0px;
  right: 0;
  width: 310px;
  background: rgb(253, 252, 255);
  border: 1.5px solid rgb(255, 255, 255);
  border-radius: 20px;
  box-shadow: 0px 1.5px 4px rgba(0, 0, 0, 0.15);
  z-index: 300;
  overflow: hidden;
  transition: all 0.2s ease, opacity 0.2s ease 0.2s;
}

.notification-dropdown.visible {
  max-height: 415px;
  transition: all 0.2s ease, opacity 0s;
}

/* Header */
.notification-header {
  padding: 18px 15px;
  border-bottom: 1.5px solid rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(248, 247, 250);
}

.notification-header-title {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.notification-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mark-all-read {
  font-size: 10px;
  color: rgb(119, 65, 158);
  background: none;
  border: none;
  cursor: pointer;
  height: 25px;
  padding: 6px 10px;
  border: solid rgb(231, 231, 231) 1px;
  border-radius: 10px;
  background-color: white;
}

.mark-all-read:hover {
  background: rgb(252, 247, 255);
  border-color: rgb(220, 200, 234);
}

.notification-settings {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  width: 25px;
  border: solid rgb(231, 231, 231) 1px;
  border-radius: 10px;
  background-color: white;
}

.notification-settings:hover {
  opacity: 1;
  background: rgb(252, 247, 255);
  border-color: rgb(220, 200, 234);
}


.notification-settings img {
  height: 15px;
  width: 15px;
  object-fit: contain;
  filter: grayscale(0) brightness(1) invert(0) opacity(0.8);
}

/* Notification List */
.notification-list {
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  scrollbar-width: thin;
  overflow-y: auto;
}

/* Notification Item */
.notification-item {
  padding: 8px 15px 5px 15px;
  border-bottom: 1px solid rgb(244, 242, 249);
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  display: flex;
}

.notification-dropdown .notification-item {
  flex-direction: column;
}

.notification-item:hover {
  background: rgb(248, 247, 250);
}

.notification-item.unread {
  background: rgb(249, 242, 253);
  border-bottom: none;
}

.notification-item::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(135, 100, 176, 0);
  border-radius: 0px 2px 2px 0px;
}

.notification-item.unread::before {
  background: rgb(136, 100, 176);
}

.notification-item::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border: solid white 1.5px;
  background: rgba(135, 100, 176, 0);
  border-radius: 50%;
}

.notification-item.unread::after {
  background: rgb(228, 137, 0);
}




.notification-item .top,
.notification-item .bottom {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Avatar */
.notification-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgb(0, 0, 139);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 12px;
  margin-right: 10px;
}

.notification-avatar:has(img) {
  background-color: white;
}


.notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
  background-color: white;
}

.notification-dropdown .notification-avatar img {
  border-radius: 50%;
}

.notification-item:hover .notification-avatar img {
  transform: scale(105%);
}

/* Content */
.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 500;
  margin-bottom: 4px;
  color: #111;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.notification-title span {
  flex: 1;
}

.delete-notification {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  width: 18px;
  border: solid rgba(231, 231, 231, 0) 1px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0);
}

.delete-notification:hover {
  border: solid rgb(231, 231, 231) 1px;
  background-color: white;
}

.delete-notification:hover img {
  filter: grayscale(0) brightness(1) invert(0) opacity(0.8);
}

.delete-notification img {
  height: 10px;
  width: 10px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(0.5);
}


.notification-action-button {
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  padding: 5px 11px;
  color: rgb(255, 255, 255);
  border: none;
  background-color: rgb(84, 0, 168);
  border-radius: 15px;
  white-space: nowrap;
  transition: all 0.3s ease, border-radius 1s linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
}

.notification-action-button:hover {
  border-radius: 7px;
  background-color: rgb(50, 0, 100);
}


.notification-message {
  font-size: 10px;
  color: #555;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.notification-meta {
  display: flex;
  justify-content: right;
  align-items: center;
  flex-direction: row;
  font-size: 11px;
  gap: 10px;
  color: #999;
}

.notification-dropdown .notification-meta {
  width: 100%;
}

.notification-time {
  font-size: 9px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.notification-time img {
  height: 8px;
  width: 8px;
  object-fit: contain;
  filter: invert(0.5);
}

.notification-action {
  color: rgb(0, 0, 139);
  font-size: 10px;
  text-decoration: none;
  border: solid rgb(227, 227, 227) 1px;
  height: 13px;
  width: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0);

  display: none;
}

.notification-action:hover {
  background-color: white;
}

.notification-action img {
  height: 10px;
  width: 10px;
  object-fit: contain;
  filter: invert(0.4);
}

.notification-action:hover {
  text-decoration: underline;
}

.notification-action:hover img {
  filter: invert(0);
}


/* Footer */
.notification-footer {
  padding: 15px 20px;
  border-top: 1.5px solid rgb(255, 255, 255);
  text-align: center;
  background: rgb(253, 252, 255);
}

.view-all {
  color: rgb(0, 0, 139);
  text-decoration: none;
  font-size: 11px;
}

.view-all:hover {
  text-decoration: underline;
}

/* Loading State */
.notification-loading {
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #999;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Empty State */
.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.notification-empty img {
  width: 64px;
  height: 64px;
  opacity: 0.2;
  margin-bottom: 10px;
}

.notification-empty p {
  font-size: 13px;
  color: #888;
}

.notification-empty span {
  font-size: 11px;
}

/* Pulse Animation for New Notifications */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 0.5s ease-in-out;
}

/* Dark mode dropdown styling (especially for editor toolbar context) */
body.dark .notification-dropdown {
  background: rgb(29, 35, 45);
  border: 1px solid rgb(53, 63, 80);
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.45);
}

body.dark .notification-header {
  background: rgb(36, 43, 55);
  border-bottom-color: rgb(53, 63, 80);
}

body.dark .notification-header-title {
  color: rgb(229, 236, 246);
}

body.dark .mark-all-read,
body.dark .notification-settings {
  background-color: rgb(31, 37, 48);
  border-color: rgb(68, 79, 98);
  color: rgb(201, 216, 236);
}

body.dark .mark-all-read:hover,
body.dark .notification-settings:hover {
  background-color: rgb(43, 51, 65);
  border-color: rgb(93, 106, 128);
}

body.dark .notification-settings img {
  filter: grayscale(1) brightness(0) invert(0.85);
}

body.dark .notification-item {
  border-bottom-color: rgb(48, 58, 75);
}

body.dark .notification-item:hover {
  background: rgb(39, 47, 61);
}

body.dark .notification-item.unread {
  background: rgba(110, 72, 162, 0.28);
}

body.dark .notification-item.unread::before {
  background: rgb(182, 146, 236);
}

body.dark .notification-item::after {
  border-color: rgb(29, 35, 45);
}

body.dark .notification-title {
  color: rgb(229, 236, 246);
}

body.dark .notification-message {
  color: rgb(176, 189, 208);
}

body.dark .notification-time {
  color: rgb(150, 165, 188);
}

body.dark .notification-time img {
  filter: grayscale(1) brightness(0) invert(0.75);
}

body.dark .delete-notification:hover {
  border-color: rgb(68, 79, 98);
  background-color: rgb(31, 37, 48);
}

body.dark .delete-notification img {
  filter: grayscale(1) brightness(0) invert(0.65);
}

body.dark .delete-notification:hover img {
  filter: grayscale(1) brightness(0) invert(0.9);
}

body.dark .notification-footer {
  background: rgb(25, 31, 40);
  border-top-color: rgb(53, 63, 80);
}

body.dark .view-all {
  color: rgb(196, 175, 235);
}

body.dark .view-all:hover {
  color: rgb(216, 198, 249);
}

body.dark .notification-loading,
body.dark .notification-empty {
  color: rgb(160, 173, 194);
}

body.dark .spinner {
  border-color: rgba(156, 169, 190, 0.22);
  border-top-color: rgb(175, 142, 226);
}

body.dark .notification-empty p {
  color: rgb(170, 183, 203);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 60px;
    bottom: 100%;
    right: 0px;
    left: 0px;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
    background-color: rgb(249, 249, 249);
  }

  .notification-dropdown.visible {
    bottom: 0px;
    max-height: 100%;
  }

  .notification-dropdown .notification-header {
    width: 100%;
  }

  .notification-dropdown .notification-list {
    flex: 1;
    max-height: 100%;
    width: 100%;
    padding: 5px;
    gap: 6px;
  }

  .notification-dropdown .notification-item {
    border-radius: 15px;
    padding: 8px 5px 3px 10px;
    border: solid rgb(243, 243, 243) 1px;
    background-color: rgb(255, 255, 255);
    border-color: white;
    box-shadow: 0px 0.5px 2px rgba(0, 0, 0, 0.1);

    display: flex;
    gap: 1.5px;
  }

  .notification-dropdown .notification-item:hover {
    background-color: rgb(251, 251, 251);
  }

  .notification-dropdown .notification-item.unread {
    background: rgb(249, 242, 253);
  }



  .notification-dropdown .notification-meta {
    width: 100%;
    justify-content: space-between;
    padding: 0px 4px 0px 0px;
  }


  .notification-dropdown .notification-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .notification-dropdown .view-all {
    width: 100%;
    padding: 15px 10px;
    border-radius: 30px;
    background-color: rgb(253, 253, 253);
    border: solid rgb(84, 0, 168) 1px;
  }




  .notification-dropdown .notification-avatar {
    height: 45px;
    width: 45px;
    font-size: 14px;
    border-radius: 17px;
    margin-right: 0px;
  }

  .notification-dropdown .notification-title {
    font-size: 13px;
    margin-bottom: 3px;
  }


  .notification-dropdown .notification-message {
    font-size: 10px;
    line-height: 13px;
  }

  .notification-dropdown .notification-time {
    font-size: 10px;
  }

  .notification-dropdown .notification-time img {
    height: 9px;
    width: 9px;
  }


  .notification-dropdown .delete-notification {
    height: 20px;
    width: 20px;
  }

  .notification-dropdown .delete-notification img {
    height: 14px;
    width: 14px;
  }


}

@media (max-width: 768px) {
  body.dark .notification-dropdown {
    background-color: rgb(19, 24, 32);
  }

  body.dark .notification-dropdown .notification-item {
    background-color: rgb(31, 37, 48);
    border-color: rgb(54, 64, 82);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.35);
  }

  body.dark .notification-dropdown .notification-item:hover {
    background-color: rgb(40, 48, 61);
  }

  body.dark .notification-dropdown .notification-item.unread {
    background: rgba(109, 71, 161, 0.35);
  }

  body.dark .notification-dropdown .view-all {
    background-color: rgb(31, 37, 48);
    border-color: rgb(143, 104, 203);
    color: rgb(214, 194, 247);
  }
}


























/*  CODE FOR THE NOTIFICATIONS PAGE  */

.notifications-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 15px 20px;
  background-color: rgb(248, 247, 250);
}

.empty-state.notifications {
  padding-top: 10vh;
}

.empty-icon-container {
  transition: 0.2s ease, padding 1s linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
}

.empty-icon.notifications {
  filter: invert(0.6);
}


.notifications-empty-title {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  margin-top: 8px;
}


.notifications-empty-message {
  font-size: 12px;
  padding: 5px 0px;
  color: #777;
}

.notifications-empty-state .add-button {
  margin-top: 5vh;
  flex: unset;
}

.notifications-empty-state .add-button img {
  height: 15px;
  width: 15px;
}






.notifications-body,
.notifications-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  flex: 1;
}

.notifications-body {
  padding: 0px 0px 0px 0px;
}


.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0px;
  max-height: 0%;
}

.notifications-header.has-selection {
  margin-bottom: 15px;
  max-height: 100%;
}


.notifications-header button {
  margin-bottom: -40px;
}


.notifications-header.has-selection button {
  margin-bottom: 0px;
}

.notifications-header.selection-controls .left,
.notifications-header.selection-controls .right {
  display: flex;
  gap: 10px;
}

.notifications-header .left .add-button.secondary {
  min-width: 120px;
}




.notification-card {
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  border: solid rgb(239, 237, 243) 0.5px;
  padding: 10px;
  min-height: fit-content;
  height: 60px;
  align-items: center;
  overflow: hidden;
}


.notification-card:hover {
  background-color: rgb(248, 248, 250);
  box-shadow: 0px 1.5px 3px rgba(0, 0, 0, 0.1);
  border-color: rgb(230, 228, 234);
}

.notification-card.unread:hover {
  background-color: rgb(245, 236, 250);
}

.notification-item::before {
  top: 18px;
  bottom: 18px;
  left: 0px;
  width: 3px;
  border-radius: 0px 8px 8px 0px;
}


.notification-card:hover .notification-avatar {
  transform: scale(90%);
}

.notification-card:hover .notification-avatar img {
  transform: scale(110%);
}

.notification-card .notification-avatar {
  height: 42px;
  width: 42px;
  border-radius: 15px;
  transition: all 0.3s ease, transform 1s linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
  background-color: rgb(84, 0, 168);
  font-size: 13px;
}


.notification-avatar img {
  border-radius: 15px;
  transition: all 0.3s ease, transform 1.21s linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
}



.notification-card .notification-title {
  margin-bottom: 5px;
}

.notification-card .notification-message {
  margin-bottom: 0px;
  line-height: 12px;
}


.delete-button-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  margin-right: -10px;
  position: relative;
  padding-inline: 6px;
}

.delete-button-container::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0px;
  z-index: 3;
  width: 0.5px;
  background-color: rgb(239, 239, 239);
}




.delete-button-container .delete-notification {
  height: 100%;
  width: 100%;
  padding-inline: 3px;
  border-radius: 30px;
}

.delete-button-container .delete-notification img {
  height: 15px;
  width: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-button.settings img,
.add-button.delete img {
  height: 13px;
  width: 13px;
}


.add-button.delete {
  background-color: rgb(229, 50, 47);
  border-color: rgb(229, 50, 47);
}

.add-button.delete:hover {
  background-color: rgb(211, 45, 42);
  border-color: rgb(211, 45, 42);
}

.add-button.delete:hover img {
  transform: rotate(0deg) scale(105%);
}



.notification-card .check-box-container {
  overflow: hidden;
  flex: unset;
  border: solid rgba(255, 255, 255, 0) 0.5px;
  border-radius: 10px;
  margin-top: 0px;
  margin-right: 0px;
  padding: 0px;
  background-color: rgba(255, 255, 255, 0);
  border-radius: 8px;
}

.notification-card .check-box-container:hover {
  background-color: rgb(255, 255, 255);
  border: solid rgb(223, 223, 223) 0.5px;
}

.notification-card .check-box-container:has(.checked) {
  border: solid rgba(172, 120, 224, 0.263) 0.5px;
  margin-right: 4px;
  padding: 4px;
}

.notification-card:hover .check-box-container {
  margin-right: 4px;
  padding: 4px;
}

.notification-card .check-box {
  height: 0px;
  width: 0px;
  border-color: rgba(255, 255, 255, 0);
}

.notification-card:hover .check-box,
.notification-card .check-box:hover {
  border: solid rgb(144, 112, 176) 1.5px;
}


.notification-card:hover .check-box {
  height: 14px;
  width: 14px;
}

.notification-card .check-box.checked {
  height: 12px;
  width: 12px;
  border: solid rgba(255, 255, 255, 0) 1.5px;
}


.notification-card .check-box::before {
  display: none;
}



@media (max-width: 768px) {
  .notifications-container {
    padding: 3px 0px 0px 0px;
  }


  .notifications-body {
    padding: 5px 10px 15px 10px;
  }

  .add-button.settings img,
  .add-button.delete img {
    height: 15px;
    width: 15px;
  }

  .notifications-header .right .add-button.delete,
  #mark-all-read {
    padding-inline: 18px;
  }


  .notification-card .notification-avatar {
    height: 50px;
    width: 50px;
  }

}