.notifications-app {
  min-height: 100vh;
}

.notifications-dashboard-link {
  color: #075e59 !important;
  background: #dff8f4 !important;
}

.notifications-active-link {
  position: relative;

  color: #fff8ef !important;

  background:
    linear-gradient(
      135deg,
      #984709,
      #d66e15,
      #ef913d
    ) !important;

  border-color: rgba(214, 110, 21, 0.3) !important;

  box-shadow:
    0 12px 29px rgba(193, 90, 10, 0.28) !important;
}

.notification-nav-count {
  min-width: 24px;
  height: 24px;

  display: inline-grid;
  place-items: center;

  padding: 0 6px;

  color: #8f214d;
  background: #ffe3ed;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.notifications-hero {
  padding: 42px 0 23px;
}

.notifications-hero-card {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(330px, 0.65fr);
  align-items: center;
  gap: 30px;

  padding: clamp(32px, 5vw, 60px);

  border: 2px solid rgba(175, 83, 124, 0.19);
  border-radius: 34px;

  background:
    linear-gradient(
      135deg,
      #ffdbea 0%,
      #efe5ff 47%,
      #dcf7f3 100%
    );

  box-shadow:
    0 24px 65px rgba(93, 34, 63, 0.17);
}

.notifications-hero-copy h1 {
  margin: 0;

  color: #8f214d;

  font-size: clamp(43px, 5vw, 65px);
  font-weight: 700;
  line-height: 1.35;
}

.notifications-hero-copy p {
  max-width: 790px;
  margin: 17px 0 0;

  color: #654554;

  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.95;
}

.notifications-hero-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;

  margin-top: 28px;
}

.notifications-read-all-button {
  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #49328f,
      #6849c9,
      #856de0
    ) !important;

  border: 0 !important;
}

.notifications-dashboard-button {
  color: #075e59 !important;

  background:
    linear-gradient(
      135deg,
      #c9f2ec,
      #e4faf7
    ) !important;

  border: 2px solid rgba(8, 127, 119, 0.23) !important;
}

.notifications-statistics {
  display: grid;
  gap: 14px;
}

.notification-stat {
  min-height: 101px;

  display: flex;
  align-items: center;
  gap: 17px;

  padding: 19px 21px;

  border: 2px solid transparent;
  border-radius: 22px;

  box-shadow:
    0 14px 35px rgba(76, 30, 52, 0.11);
}

.notification-stat > span {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 19px;
  background: rgba(255, 255, 255, 0.36);

  font-size: 29px;
}

.notification-stat small,
.notification-stat strong {
  display: block;
}

.notification-stat small {
  color: #614554;

  font-size: 15px;
  font-weight: 700;
}

.notification-stat strong {
  color: #8f214d;

  font-size: 31px;
  font-weight: 700;
}

.stat-total {
  background:
    linear-gradient(
      135deg,
      #ffd4e3,
      #ffe9f0
    );

  border-color: rgba(199, 47, 104, 0.2);
}

.stat-unread {
  background:
    linear-gradient(
      135deg,
      #ffe0bd,
      #fff0dd
    );

  border-color: rgba(214, 110, 21, 0.2);
}

.stat-messages {
  background:
    linear-gradient(
      135deg,
      #ddd4ff,
      #eee9ff
    );

  border-color: rgba(104, 73, 201, 0.2);
}

.notifications-content {
  padding: 28px 0 65px;
}

.notifications-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;

  margin-bottom: 22px;
}

.notifications-heading h2 {
  margin: 0;

  color: #8f214d;

  font-size: clamp(35px, 4vw, 48px);
  font-weight: 700;
}

.notifications-heading p {
  margin: 7px 0 0;

  color: #684a59;

  font-size: 18px;
  font-weight: 600;
}

.notifications-heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.notifications-refresh-button,
.notifications-delete-read-button {
  min-height: 54px;

  padding: 11px 18px;

  border-radius: 15px;

  font-size: 16px;
  font-weight: 700;
}

.notifications-refresh-button {
  color: #075e59;
  background: #dff8f4;

  border: 2px solid rgba(8, 127, 119, 0.23);
}

.notifications-delete-read-button {
  color: #922b41;
  background: #ffd8df;

  border: 2px solid rgba(202, 55, 81, 0.22);
}

.notifications-filters {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.25fr)
    minmax(200px, 0.65fr)
    minmax(210px, 0.65fr)
    auto;
  gap: 14px;
  align-items: end;

  margin-bottom: 27px;
  padding: 27px;

  background:
    linear-gradient(
      135deg,
      #ffe4ee,
      #eee7ff,
      #ddf7f3
    );

  border: 2px solid rgba(163, 78, 116, 0.2);
  border-radius: 25px;

  box-shadow:
    0 20px 50px rgba(93, 34, 63, 0.15);
}

.notification-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-filter label {
  color: #8f214d;

  font-size: 17px;
  font-weight: 700;
}

.notification-filter input,
.notification-filter select {
  width: 100%;
  min-height: 59px;

  padding: 13px 17px;

  color: #39232e;
  background: #f3e6f1;

  border: 2px solid rgba(137, 71, 106, 0.2);
  border-radius: 16px;
  outline: none;

  font-size: 17px;
  font-weight: 600;
}

.notification-filter:nth-child(2) select {
  color: #075e59;
  background: #ddf5f1;
}

.notification-filter:nth-child(3) select {
  color: #49328f;
  background: #e9e2ff;
}

.notifications-search-button {
  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #984709,
      #d66e15,
      #ef913d
    ) !important;

  border: 0 !important;
}

.notifications-list {
  display: grid;
  gap: 16px;
}

.notification-card {
  position: relative;

  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;

  padding: 22px;

  border: 2px solid rgba(150, 67, 104, 0.19);
  border-radius: 24px;

  box-shadow:
    0 18px 45px rgba(93, 34, 63, 0.13);

  transition:
    transform 0.2s ease,
    opacity 0.25s ease;
}

.notification-card:hover {
  transform: translateY(-4px);
}

.notification-card.new-message {
  background:
    linear-gradient(
      135deg,
      #ddd4ff,
      #f0ebff
    );
}

.notification-card.favorite {
  background:
    linear-gradient(
      135deg,
      #ffd3e2,
      #ffeaf1
    );
}

.notification-card.profile-view {
  background:
    linear-gradient(
      135deg,
      #d5f4ef,
      #e9fbf8
    );
}

.notification-card.system {
  background:
    linear-gradient(
      135deg,
      #ffe3bf,
      #fff1de
    );
}

.notification-card.unread {
  border-color: rgba(104, 73, 201, 0.38);

  box-shadow:
    0 20px 53px rgba(90, 58, 167, 0.2);
}

.notification-card.removing {
  opacity: 0;
  transform: scale(0.96);
}

.notification-photo {
  width: 76px;
  height: 76px;

  display: grid;
  place-items: center;

  overflow: hidden;
  flex: 0 0 auto;

  border: 4px solid rgba(255, 255, 255, 0.55);
  border-radius: 23px;

  background:
    linear-gradient(
      145deg,
      #ffd6e5,
      #ded5ff
    );

  font-size: 34px;
}

.notification-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.notification-copy h3 {
  margin: 0;

  color: #8f214d;

  font-size: 23px;
  font-weight: 700;
}

.notification-copy p {
  margin: 6px 0 0;

  color: #59414e;

  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}

.notification-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  margin-top: 11px;
}

.notification-time,
.notification-new-badge {
  padding: 6px 11px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;
}

.notification-time {
  color: #49328f;
  background: #ddd5ff;
}

.notification-new-badge {
  color: #984709;
  background: #ffe0bd;
}

.notification-actions {
  min-width: 175px;

  display: grid;
  gap: 8px;
}

.notification-open-button,
.notification-read-button,
.notification-delete-button {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 14px;

  border-radius: 14px;

  font-size: 14px;
  font-weight: 700;
}

.notification-open-button {
  color: #fff;

  background:
    linear-gradient(
      135deg,
      #49328f,
      #6849c9
    );

  border: 0;
}

.notification-read-button {
  color: #075e59;
  background: #d8f3ee;

  border: 1px solid rgba(8, 127, 119, 0.2);
}

.notification-delete-button {
  color: #922b41;
  background: #ffd6de;

  border: 1px solid rgba(202, 55, 81, 0.2);
}

.notifications-state {
  min-height: 390px;

  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;

  padding: 45px;

  background:
    linear-gradient(
      135deg,
      #ffe3ed,
      #eee7ff,
      #ddf7f3
    );

  border: 2px dashed rgba(147, 61, 101, 0.31);
  border-radius: 30px;

  text-align: center;
}

.notifications-state strong,
.notifications-state h3 {
  margin: 0;

  color: #8f214d;

  font-size: 29px;
  font-weight: 700;
}

.notifications-state p {
  max-width: 650px;
  margin: 0;

  color: #604754;

  font-size: 18px;
  font-weight: 600;
}

.notification-empty-icon {
  width: 98px;
  height: 98px;

  display: grid;
  place-items: center;

  border-radius: 30px;

  background:
    linear-gradient(
      145deg,
      #ffd1e1,
      #ddd4ff
    );

  font-size: 49px;
}

@media (max-width: 1100px) {
  .notifications-hero-card {
    grid-template-columns: 1fr;
  }

  .notifications-statistics {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .notifications-filters {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .notifications-hero {
    padding-top: 23px;
  }

  .notifications-hero-card {
    padding: 28px 20px;
    border-radius: 27px;
  }

  .notifications-hero-copy h1 {
    font-size: 39px;
  }

  .notifications-statistics,
  .notifications-filters {
    grid-template-columns: 1fr;
  }

  .notifications-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .notifications-heading-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notification-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-actions {
    grid-column: 1 / -1;
    min-width: 0;

    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .notification-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .notification-photo {
    margin-inline: auto;
  }

  .notification-meta {
    justify-content: center;
  }

  .notification-actions {
    grid-template-columns: 1fr;
  }
}
