/* Notification Bell — Shared Styles */
/* ================================== */

.notif-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    color: #6B6564;
}
.notif-bell-btn:hover {
    background: rgba(47,67,169,0.08);
    color: #2F43A9;
}
.notif-bell-btn svg {
    width: 22px;
    height: 22px;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #D4145A;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
    box-shadow: 0 0 0 2px #fff;
    animation: notif-badge-pop 0.3s ease;
    pointer-events: none;
}
.notif-badge:empty,
.notif-badge[data-count="0"] {
    display: none;
}

/* Dropdown Panel */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 380px;
    max-height: 480px;
    background: #fff;
    border: 1px solid #ECCCD9;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
    display: none;
    flex-direction: column;
}
.notif-dropdown.open {
    display: flex;
    animation: notif-slide-in 0.2s ease;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #ECCCD9;
    flex-shrink: 0;
}
.notif-dropdown-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #3F3C3B;
    margin: 0;
}
.notif-dropdown-header .notif-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6B6564;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.15s;
}
.notif-dropdown-header .notif-close-btn:hover {
    background: rgba(0,0,0,0.05);
}

.notif-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Notification Item */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3eef0;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.notif-item:hover {
    background: rgba(47,67,169,0.04);
}
.notif-item.unread {
    background: rgba(47,67,169,0.08);
}
.notif-item.unread:hover {
    background: rgba(47,67,169,0.12);
}

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: #F7F1EF;
}
.notif-item.unread .notif-item-icon {
    background: rgba(47,67,169,0.15);
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}
.notif-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #3F3C3B;
    line-height: 1.35;
    margin-bottom: 2px;
}
.notif-item.unread .notif-item-title {
    font-weight: 600;
}
.notif-item-time {
    font-size: 11px;
    color: #6B6564;
}
.notif-item-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2F43A9;
    flex-shrink: 0;
    margin-top: 6px;
}

.notif-empty {
    padding: 40px 16px;
    text-align: center;
    color: #6B6564;
}
.notif-empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.notif-empty-text {
    font-size: 14px;
}

/* Mark All Read Button */
.notif-mark-all-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    background: #F7F1EF;
    color: #2F43A9;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.notif-mark-all-btn:hover {
    background: #ECCCD9;
}
.notif-mark-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading spinner */
.notif-loading {
    padding: 30px 16px;
    text-align: center;
    color: #6B6564;
    font-size: 13px;
}

/* Animations */
@keyframes notif-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notif-badge-pop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .notif-dropdown {
        width: calc(100vw - 16px);
        right: -60px;
        max-height: 70vh;
    }
}