/**********************************
 * Notification
 **********************************/
.notify-tooltip {
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    width: 280px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    position: absolute;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    font-size: 14px;
}

/* Add a small triangle at the top for the "tooltip" effect */
.notify-tooltip::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #ccc transparent;
}

.notify-tooltip::after {
    content: "";
    position: absolute;
    top: -9px;
    left: 21px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* Notification header */
.notify-header {
    font-weight: bold;
    justify-content: center !important;
    padding: 8px;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

/* Notification list */
.notify-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual notification item */
.notify-tooltip li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease-in-out;
}

/* Hover effect on an item */
.notify-tooltip li:hover {
    background: #f1f1f1;
    cursor: pointer;
}

/* "Mark all as read" button */
.notify-markReadAllBtn {
    display: block;
    width: 100%;
    text-align: center;
    background: #343a40;
    color: white;
    padding: 6px 0;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.notify-markReadAllBtn:hover {
    background: #495057;
}

/* Individual notifications */
.notify-item {
    text-decoration: none;
    color: #333;
    flex: 1;
    padding-right: 8px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Validation icon */
.notify-markReadBtn {
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.3s ease-in-out;
}

/* Scroll management for too many notifications */
.notify-tooltip::-webkit-scrollbar {
    width: 6px;
}

.notify-tooltip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.notify-tooltip::-webkit-scrollbar-track {
    background: #f1f1f1;
}
