/* Стили для страниц уведомлений */

/* Контейнер */
.notification-wrapper {
  position: relative;
  display: inline-block;
}

/* Сам колокольчик */
.notification-bell {
  position: relative;
  text-decoration: none;
  color: #383a3f;
  cursor: pointer;
}

body.dark-theme .notification-bell {
    color: #fff;
}

/* Иконка колокольчика, например, FontAwesome */
.notification-bell i {
  font-size: 20px;
}

.notification-cross {
    text-align: right;
}

.notification-cross button {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #383a3f;
}

body.dark-theme .notification-cross button {
    color: #fff;
}

#toggle-sound {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}

/* Красный бейдж с количеством уведомлений */
#notification-badge {
  position: absolute;
  top: 6px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 10px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 12px;
  text-align: center;
  display: none; /* По умолчанию скрыто, будет отображаться при unread_count > 0 */
}

/* Всплывающий контейнер уведомлений */
#notification-popover {
  position: absolute;
  right: 0;
  top: 30px;
  background: #fff;
  border: 1px solid #ccc;
  width: 300px;
  display: none; /* изначально скрыт */
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  padding: 10px;
}

body.dark-theme #notification-popover {
    background: #383a3f;
    border: 1px solid #fff;
    color: #fff;
    box-shadow: 0 2px 5px #fff;
}

button:focus {
  outline: none;
}

/* Содержимое всплывающего окна */
#notification-content {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

/* Пример стиля для списка уведомлений */
#notification-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#notification-content li {
  border: 1px solid #aaa;
  margin: 3px;
  padding: 5px;
}

body.dark-theme #notification-content li {
  background: #383a3f;
  border: 1px solid #fff;
}

.notifs-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

/* Стили для страницы списка уведомлений */
.notifs-list-card {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
    cursor: pointer;
    background: #ffffff;
    color: #383a3f;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 10px;
    padding: 10px;
}

body.dark-theme .notifs-list-card {
    background-color: #383A3F;
    box-shadow: 0 1px 10px #fff;
    color: #fff;
}

.notif-list-title {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 30px;
    margin: -40px 0px 20px 0px;
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .notif-list-title {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 30px;
        margin: -100px 0px 20px 0px;
    }

    .notification-bell-fixed {
        position: fixed;
        bottom: 30px;
        left: 10px;
        z-index: 9999;
    }
}