/* Bell shake animation */
@keyframes cv2BellShake {
    0%,100%  { transform: rotate(0deg); }
    8%       { transform: rotate(-12deg); }
    16%      { transform: rotate(12deg); }
    24%      { transform: rotate(-9deg); }
    32%      { transform: rotate(9deg); }
    40%      { transform: rotate(-5deg); }
    48%      { transform: rotate(5deg); }
    56%      { transform: rotate(-2deg); }
    64%      { transform: rotate(2deg); }
    72%,100% { transform: rotate(0deg); }
}
.CoreV2-notification-btn.has-unread svg {
    animation: cv2BellShake 3s ease-in-out 1s 3;
    transform-origin: top center;
    display: block;
}
/* Panel slide animation */
@keyframes cv2NotifSlideIn {
    from { opacity: 0; transform: scale(0.93) translateY(-8px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.CoreV2-notification-panel {
    position: absolute !important;
    top: calc(100% + 18px) !important;
    right: -90px !important;
    width: 310px !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    z-index: 999999 !important;
    display: none !important;
    border: 1px solid rgba(235,237,242,0.95) !important; transform-origin: top right !important;
}
.CoreV2-notification-panel.active {
    display: block !important;
    animation: cv2NotifSlideIn 0.22s cubic-bezier(0.34,1.56,0.64,1) !important;
}
[data-theme="dark"] .CoreV2-notification-panel {
    background: #111827 !important;
    border-color: rgba(255,255,255,0.08) !important; }
a.CoreV2-notification-item {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    cursor: pointer !important;
}
a.CoreV2-notification-item:hover {
    background: rgba(0,0,0,0.03) !important;
}
[data-theme="dark"] a.CoreV2-notification-item:hover {
    background: rgba(255,255,255,0.04) !important;
}
.CoreV2-notification-item.notif-unread {
    background: rgba(var(--CoreV2-primary-rgb,101,163,13),0.05) !important;
}
[data-theme="dark"] .CoreV2-notification-item.notif-unread {
    background: rgba(var(--CoreV2-primary-rgb,101,163,13),0.08) !important;
}
.CoreV2-notification-item.notif-read {
    opacity: 0.5 !important;
}
.CoreV2-notification-item.notif-read:hover {
    opacity: 0.75 !important;
}
.notif-unread-dot {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--CoreV2-primary, #65a30d);
    animation: cv2Pulse 2s 3;
}
@keyframes cv2Pulse {
    0%,100% { transform: scale(.95); }
    70%     { transform: scale(1); }
}
.CoreV2-notification-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.CoreV2-notification-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
[data-theme="dark"] .CoreV2-notification-title { color: #f1f5f9 !important; }
.CoreV2-notification-description {
    font-size: 11.5px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
[data-theme="dark"] .CoreV2-notification-description { color: #94a3b8 !important; }
.CoreV2-notification-time {
    font-size: 11px !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    margin-top: 2px !important;
}
.CoreV2-notification-time svg { width: 12px; height: 12px; margin-right: 4px; }
.cv2-readall-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    background: rgba(var(--CoreV2-primary-rgb,101,163,13),0.08) !important;
    color: var(--CoreV2-primary, #65a30d) !important;
    border: 1px solid rgba(var(--CoreV2-primary-rgb,101,163,13),0.18) !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.18s, transform 0.15s !important;
    outline: none !important;
}
.cv2-readall-btn:hover {
    background: rgba(var(--CoreV2-primary-rgb,101,163,13),0.14) !important;
    transform: translateY(-1px) !important;
}
.cv2-readall-btn:active { transform: translateY(0) !important; }
[data-theme="dark"] .cv2-readall-btn {
    background: rgba(var(--CoreV2-primary-rgb,101,163,13),0.12) !important;
    border-color: rgba(var(--CoreV2-primary-rgb,101,163,13),0.25) !important;
}
@media (max-width: 991px) {
    .CoreV2-notification-panel {
        position: fixed !important;
        top: 64px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        max-height: 75vh !important;
        transform-origin: top center !important;
        border-radius: 18px !important; }
}
@media(max-width:991px){
    .CoreV2-notification-panel.active{animation:none!important}
    .CoreV2-mobile-drawer{transition:transform 0.2s ease!important}
    .CoreV2-mobile-notification-panel,.CoreV2-notification-panel{animation:none!important}
}
