/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

.dropdown.notifications .dropdown-menu {
    width: 360px;
    max-width: 90vw;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown.notifications .title {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.notification-menu {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.notification-menu:last-child {
    border-bottom: none;
}

.notification-menu:hover {
    background-color: #f8f9fa;
}

.notification-menu.unseen {
    background-color: #f0f7ff;
}

.notification-menu.unseen:hover {
    background-color: #e6f2ff;
}

.notification-menu .dropdown-item {
    padding: 12px 20px;
    white-space: normal;
}

.notification-menu .dropdown-item:hover {
    background-color: transparent;
}

.notification-dropdown-item {
    padding: 12px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: inherit;
    cursor: pointer;
    user-select: none;
}

.notification-dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: inherit;
}

.notification-dropdown-item p {
    color: #333;
}

.notification-dropdown-item .fw-semibold {
    color: #212529;
}

.notification-dropdown-item:hover .fw-semibold {
    color: #000;
}

.notification-menu p {
    margin-bottom: 0;
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
}

.notification-menu .fs-13 {
    font-size: 13px;
}

.notification-menu .bx-bell {
    font-size: 24px;
}

#noNotifications {
    padding: 40px 20px;
}

#noNotifications .bx {
    font-size: 48px;
    color: #6c757d;
}

#notificationLoading {
    padding: 20px;
}

.dropdown-menu .view-all {
    padding: 12px 20px;
    font-weight: 500;
    border-top: 1px solid #e9ecef;
}

.dropdown-menu .view-all:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.max-h-217 {
    max-height: 350px;
    overflow-y: auto;
}

.max-h-217::-webkit-scrollbar {
    width: 6px;
}

.max-h-217::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.max-h-217::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.max-h-217::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 576px) {
    .dropdown.notifications .dropdown-menu {
        width: 320px;
    }
}
