.notif-dropdown {
    width: 380px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 1px solid rgba(91, 184, 245, 0.25);
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(26, 78, 122, 0.18);
    overflow: hidden;
    background: #fff;
    animation: notifDropIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    top: 30px !important;
}
@keyframes notifDropIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg,rgba(232, 244, 253, 0.98) 0%,rgba(208, 234, 249, 0.98) 100%);
    border-bottom: 1px solid rgba(91, 184, 245, 0.18);
}
.notif-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notif-bell-wrap {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #5bb8f5, #2d7fc1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(45, 127, 193, 0.3);
    animation: bellRing 3s ease-in-out infinite;
    transform-origin: top center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.notif-bell-wrap:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(45, 127, 193, 0.4);
}
@keyframes bellRing {
    0%, 70% { transform: rotate(0); }
    75% { transform: rotate(15deg); }
    80% { transform: rotate(-12deg); }
    85% { transform: rotate(10deg); }
    90% { transform: rotate(-7deg); }
    95% { transform: rotate(4deg); }
    100% { transform: rotate(0); }
}
.notif-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #1a4e7a;
}
.notif-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.70rem;
    font-weight: 700;
    background: rgba(45, 127, 193, 0.12);
    color: #2d7fc1;
    border: 1px solid rgba(45, 127, 193, 0.22);
}
.notif-close {
    width: 28px; height: 28px;
    border-radius: 8px; border: none;
    background: rgba(90, 122, 150, 0.10);
    color: #5a7a96;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.notif-close:hover {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
}
.notification-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px;
}
.notification-list::-webkit-scrollbar { width: 4px; }
.notification-list::-webkit-scrollbar-track { background: transparent; }
.notification-list::-webkit-scrollbar-thumb {
    background: rgba(91, 184, 245, 0.35);
    border-radius: 99px;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: itemSlideIn 0.4s ease both;
    list-style: none;
}
@keyframes itemSlideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.notif-item.unread {
    background: rgba(91, 184, 245, 0.06);
}
.notif-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(91, 184, 245, 0.30);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(45, 127, 193, 0.10);
}
.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 5px; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5bb8f5, #2d7fc1);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 184, 245, 0.55); }
    50%       { box-shadow: 0 0 0 4px rgba(91, 184, 245, 0); }
}
.notif-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notif-item:hover .notif-icon {
    transform: scale(1.12) rotate(-4deg);
}
.notif-icon-doc  { background: rgba(45,127,193,0.10); color: #2d7fc1; border: 1px solid rgba(45,127,193,0.20); }
.notif-icon-proj { background: rgba(45,127,193,0.10); color: #2d7fc1; border: 1px solid rgba(45,127,193,0.20); }
.notif-icon-news { background: rgba(234,179,8,0.10);  color: #b45309; border: 1px solid rgba(234,179,8,0.22); }
.notif-body {
    flex: 1;
    min-width: 0;
}
.notif-name {
    font-size: 0.70rem;
    font-weight: 600;
    color: #1a2f45;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-sub {
    font-size: 0.60rem;
    color: #5a7a96;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.notif-sub i { font-size: 10px; }
.notif-time {
    font-size: 0.60rem;
    color: #8faabb;
    display: flex;
    align-items: center;
    gap: 4px;
}
.notif-time i { font-size: 10px; }
.notif-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.notif-new {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.20);
    animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes badgePop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}
.notif-action {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    background: linear-gradient(135deg,rgba(91, 184, 245, 0.22),rgba(45, 127, 193, 0.18));
    border: 1.5px solid rgba(45, 127, 193, 0.38);
    color: #1a4e7a;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-self: center;
    box-shadow: 0 2px 6px rgba(45, 127, 193, 0.14);
}
.notif-action:hover {
    background: linear-gradient(135deg, #5bb8f5, #2d7fc1);
    color: #fff;
    border-color: transparent;
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(45, 127, 193, 0.35);
}
.notif-action:active {
    transform: scale(0.96);
}
.notif-divider {
    height: 1px;
    background: rgba(91, 184, 245, 0.12);
    margin: 2px 8px;
    list-style: none;
}
.notif-empty {
    text-align: center;
    padding: 40px 16px;
    color: #8faabb;
    list-style: none;
}
.notif-empty i {
    font-size: 2.4rem;
    opacity: 0.35;
    margin-bottom: 10px;
}
.notif-empty-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #5a7a96;
}
.notif-footer {
    padding: 8px 12px 12px;
    list-style: none;
}
.notif-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(91, 184, 245, 0.08);
    border: 1px solid rgba(91, 184, 245, 0.20);
    color: #2d7fc1;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
}
.notif-footer a:hover {
    background: linear-gradient(135deg, #5bb8f5, #2d7fc1);
    color: #fff;
    border-color: transparent;
}
@media (max-width: 640px) {
    .notif-dropdown { 
        width: calc(100vw - 16px); 
        border-radius: 16px !important;
        right: -112px !important;
    }
}