.nav-notify {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--crimson);
    border-radius: 50%;
    display: none; /* Hidden by default */
}

.notifications-dropdown {
    position: absolute;
    top: 110px;
    right: 100px;
    width: 320px;
    max-height: 300px;
    background-color: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    overflow-y: auto;
    color: var(--dark);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.notification-header span {
    font-weight: bold;
}

#mark-all-as-read {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 12px;
    text-align: end;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.notification-item:hover {
    background-color: var(--light-bg-hover);
}

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

.notification-item .message {
    flex-grow: 1;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 50px); /* Adjust based on button width + margin */
}

.notification-item .mark-as-read {
    background-color: var(--primary-color);
    color: var(--light);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.notification-item .mark-as-read:hover {
    background-color: var(--primary-color-dark);
}

/* Notification Type Specific Styles */
.notification-item.approval_request {
    background-color: var(--yellow-light);
}

.notification-item.payment_reminder {
    background-color: var(--orange-light);
}

.notification-item.unpaid_invoice {
    background-color: var(--red-light);
}

.notification-item.unplanned_record {
    background-color: var(--blue-light);
}

.notification-item.subscription_reminder {
    background-color: var(--purple-light);
}

.notification-item.other {
    background-color: var(--gray-light);
}

@media (max-width: 1024px) {
    .notifications-dropdown {
        right: 4.5vw;
    }
}

@media (max-width: 768px) {
    .notifications-dropdown {
        /*right: 4.5vw;*/
        width: 90vw;
    }
}
