﻿.notification-bell {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: .2s;
}

    .notification-bell:hover {
        background: #f3f4f6;
    }

    .notification-bell i {
        font-size: 22px;
    }

.notification-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50px;
    background: #ef4444;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notification-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: -8px 0 35px rgba(0,0,0,.18);
    transition: .28s ease;
    z-index: 999999;
}

    .notification-drawer.open {
        right: 0;
    }

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #ececec;
}

    .notification-header h5 {
        margin: 0;
        font-size: 21px;
    }

.notification-list {
    flex: 1;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: .15s;
}

    .notification-item:hover {
        background: #f6f8fb;
    }

    .notification-item.unread {
        background: #eef5ff;
    }

.notification-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    background: #2563eb;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-time {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}
.mark-all {
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
    font-weight: 600;
}

.empty-notifications {
    padding: 60px;
    color: #9ca3af;
    text-align: center;
}


@media(max-width:768px) {

    .notification-drawer {
        width: 100vw;
        right: -100vw;
    }
}

.comment-highlight {
    animation: commentFlash 2.5s;
}

@keyframes commentFlash {

    0% {
        background: #fff8c5;
        transform: scale(1.01);
    }

    30% {
        background: #fff3a0;
    }

    100% {
        background: transparent;
        transform: none;
    }
}