/**** General Notification Styles ****/

/* Popup container */
.notifications-popup {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50px; /* Position below the bell */
    right: 15px; /* Position relative to the bell */
    width: 300px;
    background-color: #fff; /* White background for contrast */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Prevent the whole popup from scrolling */
}

.popup-header {
    display: flex; /* Flex container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Align items vertically */
    border-bottom: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    position: sticky; /* Ensure the header stays fixed */
    top: 0;
    z-index: 10;
}

.popup-header h2 {
    display: flex; /* Align title and badge together */
    align-items: center; /* Vertically align the text and badge */
    gap: 8px; /* Space between the title and the badge */
    font-size: 18px;
    margin: 0;
    color: #333;
}

.notification-badge {
    position: static !important; /* Ensure it's not absolutely positioned */
    float: none !important; /* Disable floating behavior */
    margin: 0 !important; /* Reset any margins pushing it */
    padding: 0; /* Ensure no extra padding */
}


/* Notification List (Scrollable Area) */
#popup-notifications-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    max-height: 200px; /* Limit the height of the scrollable area */
    overflow-y: auto; /* Enable vertical scrolling for notifications */
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

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

.notification-item strong {
    font-size: 14px;
    color: #333;
}

.notification-item p {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

.notification-item small {
    font-size: 10px;
    color: #aaa;
}

/* Popup Footer */
.popup-footer {
    text-align: center;
    background-color: #fff;
    position: sticky; /* Keep footer fixed at the bottom */
    bottom: 0; /* Stick to the bottom of the container */
    z-index: 10;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.popup-footer .view-all,
.popup-footer .remove-all {
    font-size: 14px;
    font-weight: bold; /* Bold font */
    color: #ff4d4d; /* Red text */
    cursor: pointer; /* Pointer cursor on hover */
    text-decoration: none; /* No underline */
    margin: 5px 0;
}

.popup-footer .view-all:hover,
.popup-footer .remove-all:hover {
    color: #cc0000; /* Darker red on hover */
    text-decoration: none; /* No underline on hover */
}

/* Separator Line */
.popup-footer .separator {
    border-top: 2px dashed #ff4d4d; /* Thicker dashed red line */
    margin: 10px 0; /* Space above and below the line */
    width: 100%; /* Full width of the popup box */
}