/* app/static/css/notifications.css */

/* =========================================================
   PURPOSE:
   Стили кнопки уведомлений и правой панели уведомлений Paxor.
   Панель сделана в стиле account-menu / language-menu / vertical-menu.
   ========================================================= */


/* =========================================================
   SECTION 1. NOTIFICATIONS BUTTON AREA
   Область кнопки уведомлений в правой части верхнего меню
   ========================================================= */

.nav-notifications {
    position: relative;
    flex-shrink: 0;
}

.nav-notifications .notification-wrapper {
    position: relative;

    width: 50px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   SECTION 2. BELL BUTTON
   Кнопка-колокольчик в горизонтальном меню
   ========================================================= */

.notification-button {
    position: relative;

    width: 50px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    color: #ffffff;
    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.notification-button,
.notification-button:focus,
.notification-button:active,
.notification-button:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.notification-button:hover {
    color: #037d9c;
}

.notification-button:active {
    transform: scale(0.96);
}

.notification-button i {
    pointer-events: none;
}

/* =========================================================
   SECTION 2.1. NOTIFICATION BUTTON TOOLTIP
   Подсказка при наведении на кнопку уведомлений
   ========================================================= */

.notification-button .notification-tooltip {
    display: none;
}

.notification-button:hover .notification-tooltip {
    position: absolute;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);

    display: block;

    min-width: 112px;
    padding: 6px 11px;

    border: 1px solid rgba(6, 217, 255, 0.24);
    border-radius: 9px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.18), rgba(0, 255, 204, 0.07)),
        rgba(10, 14, 18, 0.92);

    color: #e8fbff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
    text-align: center;

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.16),
        0 8px 16px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1100;
    box-sizing: border-box;
}

/* =========================================================
   SECTION 3. NOTIFICATION BADGE
   Красный кружок количества непрочитанных уведомлений
   ========================================================= */

.notification-badge {
    position: absolute;

    top: 13px;
    right: 4px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    display: none;
    align-items: center;
    justify-content: center;

    background: #ef4444;
    color: #ffffff;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.95);

    box-sizing: border-box;
    z-index: 2;
}


/* =========================================================
   SECTION 4. NOTIFICATIONS PANEL
   Правая панель уведомлений
   ========================================================= */

.notification-dropdown {
    position: fixed;

    top: 62px;
    right: 0;

    width: var(--vertical-panel-width, 250px);
    max-height: calc(100vh - 62px);

    padding: 22px 14px 16px;

    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);

    border: 1px solid rgba(6, 171, 212, 0.44);
    border-top: none;
    border-radius: 0 0 14px 14px;

    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    overflow-y: auto;

    z-index: 900;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* =========================================================
   SECTION 5. PANEL HEADER
   Заголовок панели уведомлений
   ========================================================= */

.notification-header {
    margin: 0 0 12px 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-header span {
    color: #ffffff;

    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   SECTION 6. MARK ALL BUTTON
   Кнопка "Mark all as read"
   ========================================================= */

.notification-mark-all {
    position: relative;

    width: 100%;
    min-height: 40px;

    margin: 0;
    padding: 6px 10px 6px 42px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: rgba(8, 12, 16, 0.92);

    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 12px;

    color: #ffffff;

    font-size: 1em;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.notification-mark-all,
.notification-mark-all:focus,
.notification-mark-all:active,
.notification-mark-all:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.notification-mark-all:hover {
    background: rgba(6, 171, 212, 0.18);
    border-color: rgba(6, 217, 255, 0.62);
    color: #00ccff;
}

.notification-mark-all::before {
    content: '✓';

    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(6, 171, 212, 0.15);
    border: 1px solid rgba(6, 171, 212, 0.50);

    border-radius: 50%;

    color: #ffffff;
    font-size: 16px;

    transition:
        background 0.3s ease,
        color 0.3s ease;

    z-index: 1;
}

.notification-mark-all:hover::before {
    background: rgba(6, 171, 212, 0.24);
    color: #00ccff;
}


/* =========================================================
   SECTION 7. NOTIFICATION LIST
   Список уведомлений
   ========================================================= */

.notification-list {
    display: block;

    max-height: calc(100vh - 260px);

    padding: 0;
    margin: 0;

    overflow-y: auto;
    box-sizing: border-box;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(50, 50, 50, 0.9);
    border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.9);
}


/* =========================================================
   SECTION 8. NOTIFICATION ITEM
   Один элемент уведомления
   ========================================================= */

.notification-item {
    position: relative;

    width: 100%;
    min-height: 40px;

    margin: 6px 0;
    padding: 6px 10px 6px 42px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    background: rgba(8, 12, 16, 0.92);

    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 12px;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.notification-item:hover {
    background: rgba(6, 171, 212, 0.18);
    border-color: rgba(6, 217, 255, 0.62);
}

.notification-item::before {
    content: '🔔';

    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(6, 171, 212, 0.15);
    border: 1px solid rgba(6, 171, 212, 0.50);
    border-radius: 50%;

    color: #ffffff;
    font-size: 15px;
    line-height: 1;

    transition:
        background 0.3s ease,
        color 0.3s ease;

    z-index: 1;
}

.notification-item:hover::before {
    background: rgba(6, 171, 212, 0.24);
    color: #00ccff;
}

.notification-item.unread {
    border-color: rgba(0, 204, 255, 0.75);
}

.notification-item.unread::before {
    content: '●';
    color: #00ccff;
    font-size: 20px;
}


/* =========================================================
   SECTION 9. NOTIFICATION TEXT
   Текст уведомления
   ========================================================= */

.notification-title {
    color: #ffffff;

    font-size: 1em;
    font-weight: 400;
    line-height: 1.2;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

    transition: color 0.3s ease;
}

.notification-item:hover .notification-title {
    color: #00ccff;
}

.notification-message {
    margin-top: 4px;

    color: #cccccc;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.notification-date {
    margin-top: 5px;

    color: #888888;

    font-size: 11px;
    line-height: 1.2;
}


/* =========================================================
   SECTION 10. EMPTY STATE
   Сообщение, если уведомлений нет
   ========================================================= */

.notification-empty {
    width: 100%;
    min-height: 40px;

    margin: 6px 0;
    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(8, 12, 16, 0.92);

    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 12px;

    color: #cccccc;

    font-size: 1em;
    text-align: center;

    box-sizing: border-box;
}


/* =========================================================
   SECTION 11. VIEW ALL LINK
   Ссылка "View all notifications"
   ========================================================= */

.notification-view-all {
    position: relative;

    width: 100%;
    min-height: 40px;

    margin: 6px 0 0 0;
    padding: 6px 10px 6px 42px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: rgba(8, 12, 16, 0.92);

    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 12px;

    color: #ffffff;

    font-size: 1em;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;

    box-sizing: border-box;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.notification-view-all:hover {
    background: rgba(6, 171, 212, 0.18);
    border-color: rgba(6, 217, 255, 0.62);
    color: #00ccff;
}

.notification-view-all::before {
    content: '→';

    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(6, 171, 212, 0.15);
    border: 1px solid rgba(6, 171, 212, 0.50);
    border-radius: 50%;

    color: #ffffff;
    font-size: 16px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.notification-view-all:hover::before {
    background: rgba(6, 171, 212, 0.24);
    color: #00ccff;
}

/* =========================================================
   SECTION 14. FULL NOTIFICATIONS PAGE
   Полная страница уведомлений
   Размер сделан как в личном кабинете
   ========================================================= */

/* Внешний контейнер страницы уведомлений */
.notifications-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    min-height: calc(100vh - 70px);

    padding: 20px;

    background: transparent;

    position: relative;
    z-index: 10;

    box-sizing: border-box;
}

/* Внутренняя коробка страницы уведомлений */
.notifications-page-box {
    width: 100%;
    max-width: 900px;
    min-height: 800px;

    padding: 40px;

    background: rgba(0, 0, 0, 0.95);

    border: 2px solid rgba(0, 0, 0, 1);
    border-radius: 8px;

    backdrop-filter: blur(10px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

    color: #ffffff;

    box-sizing: border-box;

    position: relative;
    z-index: 11;
}


/* =========================================================
   NOTIFICATIONS HERO
   Голубая верхняя планка, как на Analytics
   ========================================================= */

.notifications-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    padding: 16px 26px;
    margin-bottom: 22px;

    border: 2px solid #037d9c;
    border-radius: 18px;

    background: #037d9c;

    box-shadow:
        0 0 18px rgba(3, 125, 156, 0.55),
        0 10px 24px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    box-sizing: border-box;
}

.notifications-hero-text {
    min-width: 0;
}

.notifications-hero h1 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 31px;
    font-weight: 600;
    line-height: 1.1;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.notifications-hero p {
    max-width: 440px;

    margin: 0;

    color: #e8fbff;

    font-size: 15px;
    line-height: 1.55;
}

.notifications-hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 210px;

    padding: 11px 22px;

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(232, 251, 255, 0.55);

    color: #e8fbff;
    white-space: nowrap;

    box-shadow:
        0 0 14px rgba(255, 255, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    box-sizing: border-box;
}

.notifications-hero-badge i {
    color: #ffffff;

    font-size: 16px;

    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.notifications-hero-badge span {
    color: #ffffff;

    font-weight: 700;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   NOTIFICATIONS PAGE ACTIONS
   Кнопки действий на странице уведомлений
   ========================================================= */

.notifications-page-actions {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 16px;
}

.notifications-page-action-btn {
    min-height: 42px;

    padding: 8px 18px;

    background: rgba(30, 30, 30, 0.8);

    border: 1px solid rgba(50, 50, 50, 0.5);
    border-radius: 8px;

    color: #ffffff;

    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.notifications-page-action-btn:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(150, 150, 150, 1);
    color: #00ccff;
}


/* =========================================================
   NOTIFICATIONS PAGE LIST
   Список уведомлений на полной странице
   ========================================================= */

.notifications-page-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notifications-page-item {
    position: relative;

    min-height: 64px;

    padding: 12px 14px 12px 58px;

    background: rgba(30, 30, 30, 0.8);

    border: 1px solid rgba(50, 50, 50, 0.5);
    border-radius: 10px;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.notifications-page-item:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(150, 150, 150, 1);
}

.notifications-page-item::before {
    content: '🔔';

    position: absolute;
    left: 12px;
    top: 14px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(50, 50, 50, 0.9);

    border-radius: 50%;
}

.notifications-page-item.unread {
    border-color: rgba(0, 204, 255, 0.75);
}

.notifications-page-item.unread::before {
    content: '●';

    color: #00ccff;

    font-size: 20px;
}

.notifications-page-title {
    color: #ffffff;

    font-size: 17px;
    font-weight: 500;
}

.notifications-page-message {
    margin-top: 5px;

    color: #cccccc;

    font-size: 14px;
    line-height: 1.4;
}

.notifications-page-date {
    margin-top: 6px;

    color: #888888;

    font-size: 12px;
}

.notifications-page-empty {
    padding: 20px;

    background: rgba(30, 30, 30, 0.8);

    border: 1px solid rgba(50, 50, 50, 0.5);
    border-radius: 10px;

    color: #cccccc;

    text-align: center;
}

/* =========================================================
   SECTION 11.1. FULL NOTIFICATIONS PAGE
   Полная страница уведомлений
   ========================================================= */

.notifications-page-container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 28px 18px 60px;

    color: #ffffff;

    box-sizing: border-box;
}


/* ========================= */
/* HERO */
/* ========================= */

.notifications-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    padding: 22px 26px;
    margin-bottom: 22px;

    border: 2px solid #037d9c;
    border-radius: 20px;

    background: #037d9c;

    box-shadow:
        0 0 18px rgba(3, 125, 156, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.notifications-hero h1 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 31px;
    line-height: 1.15;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.notifications-hero p {
    max-width: 720px;

    margin: 0;

    color: #e8fbff;

    font-size: 15px;
    line-height: 1.55;
}

.notifications-hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 18px;

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(232, 251, 255, 0.55);

    color: #e8fbff;
    white-space: nowrap;

    box-shadow:
        0 0 14px rgba(255, 255, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.notifications-hero-badge i {
    color: #ffffff;

    font-size: 16px;

    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.notifications-hero-badge span {
    color: #ffffff;

    font-weight: 700;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}


/* ========================= */
/* PAGE ACTIONS */
/* ========================= */

.notifications-page-actions {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 16px;
}

.notifications-page-action-btn {
    min-height: 42px;

    padding: 8px 18px;

    background: rgba(30, 30, 30, 0.8);

    border: 1px solid rgba(50, 50, 50, 0.5);
    border-radius: 8px;

    color: #ffffff;

    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.notifications-page-action-btn:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(150, 150, 150, 1);
    color: #00ccff;
}


/* ========================= */
/* PAGE LIST */
/* ========================= */

.notifications-page-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notifications-page-item {
    position: relative;

    min-height: 64px;

    padding: 12px 14px 12px 58px;

    background: rgba(0, 0, 0, 0.72);

    border: 1px solid rgba(6, 171, 212, 0.22);
    border-radius: 16px;

    cursor: pointer;

    box-sizing: border-box;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.notifications-page-item:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(0, 204, 255, 0.75);
}

.notifications-page-item::before {
    content: '🔔';

    position: absolute;
    left: 12px;
    top: 14px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(50, 50, 50, 0.9);

    border-radius: 50%;
}

.notifications-page-item.unread {
    border-color: rgba(0, 204, 255, 0.75);
}

.notifications-page-item.unread::before {
    content: '●';

    color: #00ccff;

    font-size: 20px;
}

.notifications-page-title {
    color: #ffffff;

    font-size: 17px;
    font-weight: 500;
}

.notifications-page-message {
    margin-top: 5px;

    color: #cccccc;

    font-size: 14px;
    line-height: 1.4;
}

.notifications-page-date {
    margin-top: 6px;

    color: #888888;

    font-size: 12px;
}

.notifications-page-empty {
    padding: 20px;

    background: rgba(0, 0, 0, 0.72);

    border: 1px solid rgba(6, 171, 212, 0.22);
    border-radius: 16px;

    color: #cccccc;

    text-align: center;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   SECTION 12. LIGHT THEME
   Светлая тема
   ========================================================= */

/* ========================= */
/* TOP NOTIFICATION BUTTON */
/* Кнопка уведомлений в верхнем меню */
/* ========================= */

body.light-theme .notification-button {
    color: #333333;
}

body.light-theme .notification-button:hover,
body.light-theme .notification-button.active {
    color: #037d9c;
}

body.light-theme .notification-button:hover .notification-tooltip {
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.18), rgba(0, 255, 204, 0.07)),
        rgba(10, 14, 18, 0.92);
    color: #e8fbff;
}

body.light-theme .notification-badge {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}


/* ========================= */
/* NOTIFICATION DROPDOWN */
/* Выпадающая правая панель уведомлений */
/* ========================= */

body.light-theme .notification-dropdown {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);

    border: 1px solid rgba(6, 171, 212, 0.44);
    border-top: none;

    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.light-theme .notification-header span {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.light-theme .notification-mark-all,
body.light-theme .notification-item,
body.light-theme .notification-empty,
body.light-theme .notification-view-all {
    background: rgba(8, 12, 16, 0.92);

    border: 1px solid rgba(6, 171, 212, 0.28);

    color: #ffffff;
}

body.light-theme .notification-mark-all:hover,
body.light-theme .notification-item:hover,
body.light-theme .notification-view-all:hover {
    background: rgba(6, 171, 212, 0.18);
    border-color: rgba(6, 217, 255, 0.62);
    color: #00ccff;
}

body.light-theme .notification-mark-all::before,
body.light-theme .notification-item::before,
body.light-theme .notification-view-all::before {
    background: rgba(6, 171, 212, 0.15);
    color: #ffffff;
}

body.light-theme .notification-mark-all:hover::before,
body.light-theme .notification-item:hover::before,
body.light-theme .notification-view-all:hover::before {
    background: rgba(6, 171, 212, 0.24);
    color: #00ccff;
}

body.light-theme .notification-title {
    color: #ffffff;
}

body.light-theme .notification-item:hover .notification-title {
    color: #00ccff;
}

body.light-theme .notification-message {
    color: #cccccc;
}

body.light-theme .notification-date {
    color: #888888;
}

body.light-theme .notification-item.unread {
    border-color: rgba(3, 125, 156, 0.75);
}

body.light-theme .notification-item.unread::before {
    color: #037d9c;
}


/* ========================= */
/* FULL NOTIFICATIONS PAGE */
/* Полная страница уведомлений */
/* ========================= */

/* Внешний контейнер остаётся прозрачным */
body.light-theme .notifications-page-container {
    background: transparent;
}

/* Внутренняя коробка страницы — как account-box в светлой теме */
body.light-theme .notifications-page-box {
    background: rgba(255, 255, 255, 0.95);

    border: 2px solid rgba(200, 200, 200, 1);

    color: #333333;
}

/* Голубая hero-планка остаётся голубой и в светлой теме */
body.light-theme .notifications-hero {
    background: #037d9c;
    border-color: #037d9c;

    box-shadow:
        0 0 16px rgba(3, 125, 156, 0.28),
        0 10px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.light-theme .notifications-hero h1 {
    color: #ffffff;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.light-theme .notifications-hero p {
    color: #e8fbff;
}

body.light-theme .notifications-hero-badge {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.40);
}

body.light-theme .notifications-hero-badge i,
body.light-theme .notifications-hero-badge span {
    color: #ffffff;
}

/* Кнопка Mark all as read и карточки уведомлений */
body.light-theme .notifications-page-action-btn,
body.light-theme .notifications-page-item,
body.light-theme .notifications-page-empty {
    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(3, 125, 156, 0.25);

    color: #333333;
}

body.light-theme .notifications-page-action-btn:hover,
body.light-theme .notifications-page-item:hover {
    background: rgba(245, 245, 245, 0.96);
    border-color: rgba(3, 125, 156, 0.7);
    color: #037d9c;
}

body.light-theme .notifications-page-item::before {
    background: rgba(200, 200, 200, 0.9);
    color: #333333;
}

body.light-theme .notifications-page-item:hover::before {
    background: rgba(180, 180, 180, 0.9);
    color: #037d9c;
}

body.light-theme .notifications-page-title {
    color: #222222;
    text-shadow: none;
}

body.light-theme .notifications-page-item:hover .notifications-page-title {
    color: #037d9c;
}

body.light-theme .notifications-page-message {
    color: #555555;
}

body.light-theme .notifications-page-date {
    color: #777777;
}

body.light-theme .notifications-page-item.unread {
    border-color: rgba(3, 125, 156, 0.75);
}

body.light-theme .notifications-page-item.unread::before {
    color: #037d9c;
}


/* =========================================================
   SECTION 13. MOBILE ADAPTATION
   Мобильная адаптация
   ========================================================= */

/* ========================= */
/* TABLET / SMALL DESKTOP */
/* Планшеты и небольшие экраны */
/* ========================= */

@media (max-width: 900px) {
    .nav-notifications .notification-wrapper,
    .notification-button {
        height: 58px;
    }

    .notification-button:hover .notification-tooltip {
        top: 58px;
    }

    .notification-dropdown {
        top: 58px;
        max-height: calc(100vh - 58px);
    }

    .notifications-page-container {
        padding: 20px;
    }

    .notifications-page-box {
        max-width: 900px;
        padding: 30px;
    }

    .notifications-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .notifications-hero-badge {
        justify-content: center;
    }
}


/* ========================= */
/* MOBILE MENU */
/* Верхнее меню на мобильных */
/* ========================= */

@media (max-width: 600px) {
    .nav-notifications .notification-wrapper,
    .notification-button {
        width: 46px;
    }

    .notification-badge {
        top: 13px;
        right: 2px;
    }

    .notification-dropdown {
        width: var(--vertical-panel-width, 235px);
        right: 0;
    }

    .notification-button:hover .notification-tooltip {
        display: none;
    }
}

/* ========================= */
/* SMALL MOBILE */
/* Маленькие мобильные экраны */
/* ========================= */

@media (max-width: 420px) {
    .notification-dropdown {
        left: 0;
        right: 0;
        width: 100%;

        padding: 24px 16px 18px 16px;
    }

    .notification-list {
        max-height: calc(100vh - 250px);
    }

    .notifications-page-container {
        padding: 14px;
    }

    .notifications-page-box {
        padding: 24px 16px;

        min-height: auto;
    }

    .notifications-hero {
        padding: 15px 16px;

        border-radius: 16px;
    }

    .notifications-hero h1 {
        font-size: 24px;
        line-height: 1.1;
    }

    .notifications-hero p {
        font-size: 13px;
        line-height: 1.4;
    }

    .notifications-hero-badge {
        width: 100%;

        justify-content: center;

        padding: 10px 16px;

        box-sizing: border-box;
    }

    .notifications-page-actions {
        justify-content: stretch;
    }

    .notifications-page-action-btn {
        width: 100%;
    }

    .notifications-page-item {
        padding: 12px 12px 12px 54px;
    }
}

/* ========================= */
/* ACCOUNT NOTIFICATIONS: PAXOR MODAL STYLE */
/* ========================= */

#notifications .account-notifications-container {
    margin: 0;
    width: 100%;
    overflow: visible;
    text-align: left;
    border: 1px solid rgba(6, 171, 212, 0.44);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

#notifications .account-notifications-container .tab-section-header {
    position: relative;
    min-height: 72px;
    margin: 0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #037d9c;
    border-radius: 15px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.04)),
        radial-gradient(circle at 78% 48%, rgba(3, 125, 156, 0.42), transparent 38%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.38), rgba(4, 22, 32, 0.84));
    box-shadow:
        0 0 16px rgba(3, 125, 156, 0.48),
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
}

#notifications .account-notifications-container .tab-section-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 32%);
    pointer-events: none;
}

#notifications .account-notifications-container .tab-section-header h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
}

#notifications .account-notifications-container .tab-section-body {
    padding: 18px 20px 20px;
}

#notifications .account-notifications-container p {
    margin: 0 0 18px;
    color: #cfefff;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#notifications .notifications-page-actions {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}

#notifications .notifications-page-action-btn {
    display: flex;
    width: fit-content;
    min-width: 180px;
    min-height: 42px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 255, 154, 0.42);
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.22), transparent 42%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.34), rgba(6, 171, 212, 0.20)),
        rgba(8, 12, 16, 0.94);
    color: #eafff2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow:
        0 0 16px rgba(54, 168, 102, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

#notifications .notifications-page-action-btn:hover {
    border-color: rgba(93, 255, 154, 0.72);
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.32), transparent 44%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.46), rgba(6, 171, 212, 0.26)),
        rgba(8, 12, 16, 0.98);
    color: #ffffff;
    box-shadow:
        0 0 20px rgba(54, 168, 102, 0.30),
        0 12px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#notifications .notifications-page-list {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

#notifications .notifications-page-item,
#notifications .notifications-page-empty {
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.92);
    color: #cfefff;
    box-shadow:
        0 0 18px rgba(6, 171, 212, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#notifications .notifications-page-item:hover {
    border-color: rgba(6, 217, 255, 0.56);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.12), rgba(0, 255, 204, 0.04)),
        rgba(8, 12, 16, 0.96);
}

#notifications .notifications-page-title {
    color: #ffffff;
}

#notifications .notifications-page-message,
#notifications .notifications-page-date {
    color: #cfefff;
}

#notifications .notifications-page-item.unread {
    border-color: rgba(93, 255, 154, 0.34);
}

body.light-theme #notifications .account-notifications-container,
body.light-theme #notifications .notifications-page-item,
body.light-theme #notifications .notifications-page-empty {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    color: #ffffff;
}

body.light-theme #notifications .account-notifications-container p,
body.light-theme #notifications .notifications-page-message,
body.light-theme #notifications .notifications-page-date,
body.light-theme #notifications .notifications-page-empty {
    color: #cfefff;
}

body.light-theme #notifications .notifications-page-title {
    color: #ffffff;
}

/* =========================================================
   NOTIFICATION SOURCE BADGE
   Источник уведомления: Paxor или пользователь.
   ========================================================= */

.notification-item:has(.notification-source),
.notifications-page-item:has(.notifications-page-source) {
    overflow: hidden;
}

.notification-item:has(.notification-source) {
    min-height: 68px;
    padding: 9px 10px 9px 54px;
}

.notifications-page-item:has(.notifications-page-source) {
    min-height: 82px;
    padding: 14px 16px 14px 74px;
}

.notification-item:has(.notification-source)::before,
.notifications-page-item:has(.notifications-page-source)::before {
    display: none !important;
}

.notification-source,
.notifications-page-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 4px;
    color: rgba(150, 235, 255, 0.88);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.notification-source span,
.notifications-page-source span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-source-avatar,
.notifications-page-source-avatar {
    position: absolute;
    display: block;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(6, 217, 255, 0.42);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.20), transparent 42%),
        rgba(5, 11, 15, 0.86);
    box-shadow:
        0 0 14px rgba(6, 217, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    box-sizing: border-box;
}

.notification-source-avatar {
    left: 10px;
    top: 12px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.notifications-page-source-avatar {
    left: 16px;
    top: 18px;
    width: 42px;
    height: 42px;
    padding: 5px;
}

.notification-source.source-paxor,
.notifications-page-source.source-paxor {
    color: #8feeff;
}

.notification-item.unread .notification-source-avatar,
.notifications-page-item.unread .notifications-page-source-avatar {
    border-color: rgba(93, 255, 154, 0.60);
    box-shadow:
        0 0 0 2px rgba(93, 255, 154, 0.10),
        0 0 16px rgba(93, 255, 154, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.notification-item.unread:has(.notification-source)::after,
.notifications-page-item.unread:has(.notifications-page-source)::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #00ccff;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.74);
}

.notification-item.unread:has(.notification-source)::after {
    left: 35px;
    top: 36px;
    width: 8px;
    height: 8px;
}

.notifications-page-item.unread:has(.notifications-page-source)::after {
    left: 49px;
    top: 50px;
    width: 10px;
    height: 10px;
}

body.light-theme .notification-source,
body.light-theme .notifications-page-source {
    color: #037d9c;
}

body.light-theme .notification-source.source-paxor,
body.light-theme .notifications-page-source.source-paxor {
    color: #026f8b;
}

body.light-theme .notification-source-avatar,
body.light-theme .notifications-page-source-avatar {
    border-color: rgba(3, 125, 156, 0.36);
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.92), transparent 45%),
        rgba(246, 251, 253, 0.96);
    box-shadow:
        0 8px 18px rgba(26, 70, 98, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.notification-dropdown .notification-mark-all {
    padding: 6px 12px 6px 54px !important;
}

.notification-dropdown .notification-mark-all::before {
    left: 15px;
    width: 23px;
    height: 23px;
    font-size: 14px;
}

.notification-dropdown .notification-view-all {
    display: flex !important;
    min-height: 40px !important;
    margin: 12px 17px 0 !important;
    padding: 10px 14px 10px 54px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.notification-dropdown .notification-view-all::before {
    left: 15px;
    width: 23px;
    height: 23px;
    font-size: 14px;
}

.notification-dropdown .notification-item:has(.notification-source) {
    padding: 11px 13px 11px 70px !important;
}

.notification-dropdown .notification-item:has(.notification-source)::before {
    display: none !important;
}

.notification-dropdown .notification-source-avatar {
    left: 16px;
    top: 15px;
    width: 38px;
    height: 38px;
}

.notification-dropdown .notification-item.unread:has(.notification-source)::after {
    left: 46px;
    top: 45px;
}

#notifications .notifications-page-item:has(.notifications-page-source) {
    padding: 16px 18px 16px 88px;
}

#notifications .notifications-page-source-avatar {
    left: 22px;
    top: 20px;
}

@media (max-width: 760px) {
    #notifications .account-notifications-container .tab-section-header {
        min-height: 68px;
        padding: 12px 16px;
    }

    #notifications .account-notifications-container .tab-section-header h2 {
        font-size: 24px;
    }

    #notifications .account-notifications-container .tab-section-body {
        padding: 14px;
    }
}
