/* Notifications Container */
.notifications-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    margin-top: 200px;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    /* Fixed height */
    overflow-y: auto;
    /* Scrollable */
}

/* Modern Scrollbar */
.notifications-container::-webkit-scrollbar {
    width: 8px;
    /* Thin scrollbar */
}

.notifications-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Light grey background */
    border-radius: 8px;
}

.notifications-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #66a1ee, #2575fc);
    /* Gradient effect */
    border-radius: 8px;
}

.notifications-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #66abeb, #1b5cd7);
    /* Darker on hover */
}

/* Each Notification Item */
.notification-item {
    display: flex;
    align-items: center;
    border-radius: 5px;
    padding: 10px;
    border-bottom: 1px solid var(--border-white);
    transition: background 0.2s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
    cursor: pointer;
}

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

/* Fade out effect */
.notification-item.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Profile Picture */
.notif-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid var(--submit-btn);
}

/* Notification Content */
.notif-content {
    flex: 1;
}

.notif-message {
    font-size: 0.9rem;
    color: var(--content-grey);
    margin: 0;
}

.error-msg {
    color: red;
    font-size: 0.9rem;
    margin: 0;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--light-grey);
    font-weight: bold;
}

/* Close Button */
.notif-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--grey-mr);
}

/* Clear All Button */
.clear-all-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 150px;
    padding: 12px;
    background-color: var(--nav-btn-hvr);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    margin: 20px auto;
    margin-top: 40px;
    letter-spacing: 0.5px;
}

/* Hover effect */
.clear-all-btn:hover {
    background-color: var(--submit-btn)
}

/* No Notifications Message */
.no-notifications {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    /* Slightly bold */
    color: var(--content-grey);
    padding: 20px;
    opacity: 0.9;
}

/* Read Notification Style */
.notification-item.read {
    opacity: 0.7;
}

.notification-item.read .notif-message {
    color: var(--light-grey);
}

.notification-item.read .notif-time {
    color: var(--text-lighter, #aaa);
}

.notification-item.read .notif-avatar img {
    border-color: var(--border-grey);
}

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

/* Dark Mode Supply */
:root.dark-mode .notification-item.read {
    opacity: 0.5;
}

:root.dark-mode .notification-item.read .notif-time {
    color: var(--submit-grey);
}

:root.dark-mode .notification-item.read:hover {
    background-color: rgba(34, 139, 236, 0.2);
}