﻿
/* ── Notification Badge ── */
.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--clr-danger, #e74c3c);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    pointer-events: none;
    animation: badgePop .25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes badgePop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ── Notification Panel ── */
.notif-panel {
    width: 320px;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    overflow: hidden;
}

.notif-header {
    background: var(--clr-surface);
}

.notif-see-all {
    font-size: .75rem;
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

    .notif-see-all:hover {
        text-decoration: underline;
    }

/* ── Notification Item ── */
.notif-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .65rem 1rem;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid var(--clr-border);
    text-decoration: none;
    color: inherit;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: var(--clr-hover, rgba(0,0,0,.04));
    }

    .notif-item.unread {
        background: var(--clr-primary-soft, rgba(var(--clr-primary-rgb),.06));
    }

.notif-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--clr-primary-soft, #e8f0fe);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}

.notif-item__body {
    flex: 1;
    min-width: 0;
}

.notif-item__name {
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item__subject {
    font-size: .76rem;
    color: var(--clr-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item__preview {
    font-size: .73rem;
    color: var(--clr-muted);
    margin-top: .1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item__time {
    font-size: .68rem;
    color: var(--clr-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: .15rem;
}

/* ── Notification Message new ── */
.sh-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    z-index: 9999;
    min-width: 280px;
    max-width: 380px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    cursor: pointer;
}

.sh-toast--show {
    opacity: 1;
    transform: translateY(0);
}

.sh-toast__icon {
    font-size: 1.1rem;
    margin-top: 2px;
}

.sh-toast__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

    .sh-toast__body strong {
        font-size: .85rem;
    }

    .sh-toast__body span {
        font-size: .82rem;
    }

    .sh-toast__body small {
        font-size: .78rem;
        color: #6c757d;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 260px;
    }

.sh-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #adb5bd;
    font-size: .85rem;
    padding: 0;
    line-height: 1;
    align-self: flex-start;
}

    .sh-toast__close:hover {
        color: #495057;
    }

