/* Notification Alert Badge */

.notification-wrapper {
    position: relative;
    margin-right: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;

}

.notification-wrapper img:hover {
    opacity: .75;
}

.notification-icon {
    height: 20px;
}

.notification-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    height: 25px;
    aspect-ratio: 1;
    cursor: default;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    display: none;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Notifications */
.notifications {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notification {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background-color: var(--almost-white-);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 1px #00000025;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform 150ms ease;
    will-change: transform;
    transform: translateZ(0);
}

.notification:hover {
    transform: scale(1.02);
}

.notification-content {
    flex: 1;
    overflow: hidden;
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.notification-content:hover {
    cursor: pointer;
}

.notification-btn {
    background: none;
    border-radius: 50%;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    cursor: pointer;
    transition: background-color 0.1s ease;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.mark-read {
    font-size: 12px;
    color: transparent;
    box-shadow: inset 0 0 3px 1px #0000004a;
    background: white;
}

.mark-read:hover {
    background-color: var(--error-);
    color: transparent;
}


.mark-read.notification-unread {
    background-color: var(--error-);
    border-color: transparent;
    box-shadow: unset;
}

.mark-read.notification-unread:hover {
    background-color: var(--dot-green-);
    color: white;
    box-shadow: none;
}

.customer {
    font-size: 12px;
    text-decoration: underline;
}

.notification-content .customer,
.request-id {
    font-weight: bold;
    cursor: pointer;
}

.notification-content .preview {
    font-size: 14px;
    color: #444;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: calc(3em + 15px);
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    background: var(--almost-white-);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mark-all-read-btn {
    display: block;
    margin: .5rem auto;
    background-color: unset;
}

.mark-all-read-btn:hover {
    background-color: unset;
    color: var(--primary-color-);
}

.notification-caught-up {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #c5c5c5;
    cursor: default;
    margin-bottom: 10px;
}