/* NOTIFICATION POPUP */
.notification-popup {
    position: fixed;
    top: 100px;
    right: 100%;
    width: 400px;
    background: #fff;
    border-radius: 0.475rem;
    box-shadow: 0 0 50px 0 rgb(82 63 105 / 10%);
    z-index: 1000;
    font-family: sans-serif;
}

.notification-popup-inner {
    padding: 20px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.notification-close {
    cursor: pointer;
    font-size: 20px;
}

.mail-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-tabs {
    display: flex;
    margin-bottom: 10px;
    gap: 10px;
}

.notification-tabs .tab {
    flex: 1 1 33.3333%;
    text-align: center;
    border: none;
    background: none;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.notification-tabs .tab.active {
    border-bottom: 2px solid #306DDE;
    color: #306DDE;
}

.notification-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 12px;
}

.accont-sub-link .notification-badge {
    margin-left: 5px;
}

.notification-content .tab-content {
    display: none;
}

.notification-content .tab-content.active {
    display: block;
}

.notification-item {
    background: #f9fafb;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    margin-bottom: 10px;
}

.notification-icon {
    font-size: 20px;
    color: #3b82f6;
}

.notification-text {
    flex: 1;
}

.notification-message {
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: #6b7280;
}

.notification-unread-dot {
    width: 10px;
    height: 10px;
    background: #306DDE;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 10px;
}

.account-notification-unread-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    left: 25px;
    top: -5px;
}

.header-desktop-account-info {
    position: relative;
}

/* Ограничение высоты и кастомный скролл */
.notification-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.notification-content::-webkit-scrollbar {
    width: 6px;
}

.notification-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* Кнопки внизу уведомления */
.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.notification-actions a {
    font-size: 12px;
    color: #306DDE;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.notification-actions a:hover {
    background-color: #f0f4ff;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.notification-empty-icon {
    width: 50px;
    height: 50px;
    opacity: 0.6;
    margin-bottom: 16px;
}

.notification-empty-text {
    background-color: #f3f4f6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
}

.notification-empty-text .info-icon {
    color: #9ca3af;
}

@media (max-width: 768px) {

    .notification-popup {
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.4);
        /* затемнение фона */
    }

    .notification-popup-inner {
        background: #fff;
        width: 100%;
        max-height: 100%;
        height: 100%;
        overflow-y: auto;
        margin-top: auto;
        padding: 20px 16px;
    }

    .notification-content {
        max-height: none;
    }

    .notification-header {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .notification-tabs {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .notification-tabs .tab {
        flex: 1 0 25%;
        text-align: left;
        font-size: 13px;
        padding: 8px 4px;
        gap: 4px;
        justify-content: flex-start;
    }

    .notification-item {
        padding: 10px 8px;
        gap: 8px;
    }

    .notification-icon {
        font-size: 18px;
    }

    .notification-message {
        font-size: 14px;
    }

    .notification-time {
        font-size: 11px;
    }

    .notification-actions a {
        font-size: 11px;
        padding: 2px 4px;
    }

    .notification-close img {
        width: 16px;
        height: 16px;
    }

}