/* ========== NOTIFICATIONS SYSTEM STYLES ========== */
/* ========== ОСНОВНЫЕ УВЕДОМЛЕНИЯ ========== */
.jGrowl {
    z-index: 100001;
}

/* ПОЛУПРОЗРАЧНЫЙ СТИЛЬ ДЛЯ УВЕДОМЛЕНИЙ (прямоугольники с закруглением 12px) */
.jGrowl-closer,
.jGrowl-notification,
.notification-spoiler {
    width: 250px;
    margin: 10px 20px 10px 10px;

    /* Полупрозрачный фон */
    background: rgba(20, 30, 40, 0.7);
    

    /* Полупрозрачная рамка */
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-right-color: rgba(255, 255, 255, 0.2);

    /* Сохраняем тень для глубины */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: var(--font);
    font-size: 10px;
    border-radius: 12px;
}

.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.8);
}

/* Кнопка закрытия */
.jGrowl-notification .jGrowl-close {
    font-size: 12px;
    margin: 0;
    font-weight: 400;
    line-height: 14px;
    background-color: rgba(20, 30, 40, 0.8); /* полупрозрачный фон */
    color: #fff; /* светлый цвет текста */
    border-bottom-color: rgba(255, 255, 255, 0.3);
    border-right-color: rgba(255, 255, 255, 0.3);
    z-index: 99;
    cursor: pointer;
    position: absolute;
    top: 5!important;
    transform: translate(15px, -15px);
    right: 20px!important;
    height: 9px;
    width: 9px;
    display: flex;
    padding: 4px;
    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);
}

.jGrowl-notification a:hover {
    text-decoration: underline;
    color: #ffcc00; /* акцентный цвет при наведении */
}

/* Иконки в уведомлениях */
.notification .font-icon {
    margin: 0 0.4em;
    font: normal 400 1.1em 'MyBB Notifications Icon';
    opacity: 0.9; /* увеличили видимость */
    color: rgba(255, 255, 255, 0.9);
}

.notification .font-icon:hover {
    opacity: 1;
}

/* Стиль для 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 {
    transform: scale(1.05);
}

/* Применяем переменную шрифта ко всем элементам */
.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: 12px;
    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: rgba(0, 0, 0, 0.03);
    font-family: var(--font);
    opacity: 1;
    font-size: 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #323232;
    box-shadow: 0px 10px 40px -20px rgba(0, 0, 0, 0.4);
}

.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;
}

.notification-right .msg-preview {text-transform:none;}
