/* ========== NOTIFICATIONS SYSTEM STYLES ========== */

/* ========== ОСНОВНЫЕ УВЕДОМЛЕНИЯ ========== */
.jGrowl {
    z-index: 100001;
}

/* СТЕКЛЯННЫЙ СТИЛЬ ДЛЯ УВЕДОМЛЕНИЙ */
.jGrowl-closer,
.jGrowl-notification,
.notification-spoiler {
    width: 250px;
    margin: 10px 20px 10px 10px;
    /* Стеклянный фон */
    background: rgb(20, 30, 40, 0.35);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    /* Стеклянная рамка */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    border-right-color: rgba(255, 255, 255, 0.15);
    /* Тень для глубины */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: var(--font);
    opacity: 1;
    font-size: 10px;
    border-radius:50px;
}

.jGrowl-notification {
    padding: 10px;
    line-height: 100%;
    box-sizing:border-box;

}

.jGrowl-notification .jGrowl-message {
    display: flex;
    align-items: center;
}
    
.notification {
    min-height: 50px;
    cursor: pointer;
}

.notification-spoiler {
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    /* Стеклянный фон для спойлера */
    background: rgba(20, 30, 40, 0.7);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Кнопка закрытия */
.jGrowl-notification .jGrowl-close {
    font-size: 12px;
    margin: 0px;
    font-weight: 400;
    /* Светлый цвет для кнопки на стекле */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 14px;
}

.jGrowl-notification .jGrowl-close {
    background-color: rgb(20, 30, 40, 0.35);
    color: #ccc;
    border: none;
    z-index: 99;
   /* float: right;*/
    font-weight: 700;
    cursor: pointer;
    position: absolute;
    top:0;
    transform: translate(15px, -15px);
    right:0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    border-right-color: rgba(255, 255, 255, 0.15);

    height: 9px;    width: 9px;
    display: flex;
    padding: 8px;
    align-items: center;
    justify-content: center;
}

.jGrowl-notification .jGrowl-header {
    font-size: 11px;
    padding-bottom: 5px;
    color: rgba(255, 255, 255, 0.95);
    display:none;
}

/* Ссылки в уведомлениях */
.jGrowl-notification a,
.jGrowl-notification em.guest-link {
    color: #fff;
    text-decoration: none;
    font: bold 1em var(--font);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.jGrowl-notification a:hover {
    text-decoration: underline;
}

/* Иконки в уведомлениях */
.notification .font-icon {
    margin: 0 0.4em;
    font: normal 400 1.1em 'MyBB Notifications Icon';
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notification .font-icon:hover {
    opacity: 1;
}

.notification .no-sound::before {
    content: '\e900';
}


/* Стеклянный стиль для notification-image */
.jGrowl-notification .notification-image,
.unread-notifications .notification-image {
    position: relative;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

/* Дополнительный эффект при наведении на изображение */
.jGrowl-notification .notification-image:hover,
.unread-notifications .notification-image:hover {

}

/* Применяем переменную шрифта ко всем элементам */
.jGrowl-notification,
.jGrowl-notification a,
#navpm .unreads,
#notify-link .unreads {
    font-family: var(--font);
}

/* Сохраняем иконочный шрифт для специальных символов */
.notification .font-icon,
.unread-notifications #notifications-settings .font-icon,
.unread-notifications #notifications-wrap .font-icon {
    font-family: 'MyBB Notifications Icon', var(--font), Tahoma, Verdana, Arial, sans-serif !important;
}



/* ========== ТАБЛИЦА УВЕДОМЛЕНИЙ  ========== */

#pun-main > div.pun-modal.unread-notifications > div.modal-inner.section > h2 {display: none;}
#pun-main > div.pun-modal.unread-notifications > div.modal-inner.section {background: rgb(0, 0, 0, 0);    box-shadow: none;}
#pun-main > div.pun-modal.unread-notifications > div.modal-inner.section > div.container {
    background: #fff;
    border-radius: 20px;
    text-transform: lowercase;
    padding: 10px 0px;
}

.dark #pun-main > div.pun-modal.unread-notifications > div.modal-inner.section > div.container {
    background: rgb(var(--dark_c_lightgray));
}

#notifications tr,
#notifications-stored tr {   
    padding: 10px;
    display: flex;
    justify-content: center;
}

#notifications td.notification-item,
#notifications-stored td.notification-item {
    width: 650px;
    min-height: 50px;
    padding: 10px;
    background: rgb(245 245 245);
    font-family: var(--font);
    opacity: 1;
    font-size: 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #323232;
}

.dark #notifications td.notification-item,
.dark #notifications-stored td.notification-item {
    background: #24272e;
    color: #d6d5d5;
}

#notifications .unread-notifications .time-ago,
#notifications-stored .unread-notifications .time-ago {
    margin: 0;
    opacity: .6;
}

#notifications .notification-type-toggle,
#notifications .delete-notification,
#notifications-stored .notification-type-toggle,
#notifications-stored .delete-notification {display: none;}

.notification-item .notification-left+.notification-right {
    margin-left: 10px;
    min-height: 0px;
    width: 500px;
}
.notification-left+.notification-right {
    margin-left: 10px;min-height: 0px;
}

.notification-left {
    float: left;
    height: 40px;
    width: 40px;
}
.unread-notifications .notification-left~.time-ago {
    margin-left: 0px;
}
.unread-notifications .notifications-block-title {
    border: solid 0px rgba(0, 0, 0, .06);
    border-style: solid none;
    background: rgb(0 0 0 / 3%);
}

#settings-telegram > a,
#settings-sound {
    font-size: 10px;
    font-weight: bold;
}
