/* Navbar notification bell + dropdown */
.notifications-dropdown {
    margin-left: .25rem;
    list-style: none;
}

/* Customer header uses a custom .header layout, not Bootstrap navbar. Ensure the bell
   wrapper behaves cleanly and the popover is always layered above the header's 12 z-index. */
.header-notifications-nav {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0 .5rem 0 0;
    list-style: none;
}

    .header .notifications-dropdown .notifications-menu,
    .header-notifications-nav .notifications-menu {
        z-index: 1080;
    }

.notifications-dropdown .notification-bell-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: white;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}

    .notifications-dropdown .notification-bell-toggle:hover,
    .notifications-dropdown.show .notification-bell-toggle {
        color: #6777ef;
        background: #eef0ff;
        text-decoration: none;
    }

/* AfterSales / home header — red background needs white bell */
.header .notifications-dropdown .notification-bell-toggle {
    color: rgb(155 28 31);
}

    .header .notifications-dropdown .notification-bell-toggle:hover,
    .header .notifications-dropdown.show .notification-bell-toggle {
        color: #fff;
        background: rgb(155 28 31);
    }

.notifications-dropdown .notification-bell-toggle i {
    font-size: 1.15rem;
}

.notifications-dropdown .notification-bell-toggle::after {
    display: none;
}

.notifications-dropdown .notification-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #fc544b;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.notifications-dropdown .notifications-menu {
    width: 380px;
    max-width: 95vw;
    padding: 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    border-radius: .6rem;
    overflow: hidden;
    margin-top: .35rem;
}

.notifications-dropdown .notifications-header {
    padding: .85rem 1rem;
    border-bottom: 1px solid #eef0f7;
    background: #fafbff;
}

    .notifications-dropdown .notifications-header h6 {
        color: #34395e;
        font-size: .95rem;
    }

.notifications-dropdown .notifications-tabs {
    display: flex;
    border-bottom: 1px solid #eef0f7;
    background: #fff;
}

.notifications-dropdown .notif-tab {
    flex: 1 1 50%;
    padding: .7rem .5rem;
    color: #6c757d;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

    .notifications-dropdown .notif-tab:hover {
        color: #34395e;
        background: #f7f8ff;
    }

    .notifications-dropdown .notif-tab:focus {
        outline: none;
    }

    .notifications-dropdown .notif-tab.active {
        color: #6777ef;
        border-bottom-color: #6777ef;
        font-weight: 600;
    }

.notifications-dropdown .notifications-list-wrapper {
    max-height: 430px;
    overflow-y: auto;
    background: #fff;
}

.notifications-dropdown .notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notifications-dropdown .notification-item {
    display: flex;
    gap: .7rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f4f5fb;
    cursor: pointer;
    transition: background .15s ease;
    position: relative;
}

    .notifications-dropdown .notification-item:hover {
        background: #f7f8ff;
    }

    .notifications-dropdown .notification-item.is-unread {
        background: #f5f7ff;
    }

        .notifications-dropdown .notification-item.is-unread::before {
            content: '';
            position: absolute;
            top: 50%;
            right: 6px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #6777ef;
            transform: translateY(-50%);
        }

    .notifications-dropdown .notification-item .n-avatar {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #eef0ff;
        color: #6777ef;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    .notifications-dropdown .notification-item .n-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .notifications-dropdown .notification-item .n-title {
        font-weight: 600;
        color: #34395e;
        font-size: .9rem;
        margin-bottom: 2px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .notifications-dropdown .notification-item .n-content {
        color: #6c757d;
        font-size: .8rem;
        line-height: 1.5;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .notifications-dropdown .notification-item .n-time {
        color: #adb3c4;
        font-size: .72rem;
        margin-top: 4px;
    }

.notifications-dropdown .notifications-empty {
    font-size: .85rem;
}
