/* ============================================
   Notification & Message Dropdown (Facebook-like)
   ============================================ */

.notif-dropdown-wrap .notif-dropdown {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(16, 41, 79, 0.18);
    overflow: hidden;
    margin-top: 8px !important;
}

.notif-dropdown-wrap .notif-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,.04);
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 99px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}

.notif-item:hover {
    background: #f5f7fb;
    color: inherit;
}

.notif-item.unread {
    background: #eef4ff;
}

.notif-item.unread:hover {
    background: #dde9ff;
}

.notif-item .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notif-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notif-item .notif-title {
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.3;
    margin-bottom: 2px;
    color: #0f2345;
}

.notif-item .notif-message {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item .notif-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.notif-item .notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Dark mode */
html[data-bs-theme="dark"] .notif-dropdown-wrap .notif-dropdown {
    background: #111827;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

html[data-bs-theme="dark"] .notif-dropdown-wrap .notif-dropdown::before {
    background: #111827;
}

html[data-bs-theme="dark"] .notif-item {
    border-bottom-color: rgba(148,163,184,.15);
    color: #e5e7eb;
}

html[data-bs-theme="dark"] .notif-item:hover {
    background: #1f2937;
}

html[data-bs-theme="dark"] .notif-item.unread {
    background: rgba(30,79,163,.15);
}

html[data-bs-theme="dark"] .notif-item .notif-title {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .notif-item .notif-icon {
    background: rgba(30,79,163,.25);
}