.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #dc3545; /* Red */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid #eeeeee; /* Match sidebar background, adjust as needed */
    display: none; /* Hidden by default, shown with JS */
}

.notification-badge.visible {
    display: block;
}
.top-notifications{ 
    left: -160px;

}

#notifications-dropdown-content {
    width: 320px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001; /* Higher than other nav elements */
    border-radius: 10px;
    overflow: hidden;
    align-items: center;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    border-bottom: solid black 1px;
    margin: 0px 30px;
    margin-bottom: 5px;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-radius: 20px;
}



.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.unread {
    background-color: #eef5ff; 
}

.notification-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.notification-item small {
    font-size: 0.8rem;
    color: #888;
}

.notification-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background-color: #fcfcfc;
}

.notification-footer a {
    text-align: center;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}


.notification-list::-webkit-scrollbar {
    width: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgb(150, 150, 150);
    border-radius: 4px;


}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}