/* Structure de la barre latérale */
.notification-sidebar {
    height: 100%;
    width: 0; /* Fermée par défaut */
    position: fixed;
    top: 0;
    right: 0;
    background-color: white;
    overflow-x: hidden;
    transition: width 0.5s ease; /* Animation fluide */
    padding-top: 60px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Cloche de notification */
.notification-bell {
    display: inline-block;
    position: relative;
    cursor: pointer;
    color: #000;
}

.notification-bell .fa-bell {
    font-size: 24px;
}

.notification-bell #notification-count {
    background-color: #8c3add;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 12px;
    font-weight: bold;
}

/* Adaptations pour mobile */
@media (max-width: 768px) {
    .notification-sidebar-mobile {
        height: 100%;
        width: 0; /* Fermée par défaut */
        position: fixed;
        top: 0;
        right: 0;
        background-color: white;
        overflow-x: hidden;
        transition: width 0.5s ease; /* Animation fluide */
        padding-top: 50px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        z-index: 9999999;
    }

    .notification-bell-mobile {
        display: inline-block;
        position: relative;
        cursor: pointer;
        color: #000;
        z-index: 999;
    }

    .notification-bell-mobile .fa-bell {
        font-size: 24px;
    }

    .notification-bell-mobile #notification-count-mobile {
        background-color: #8c3add;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -10px;
        right: -10px;
        font-size: 12px;
        font-weight: bold;
    }

    .notification-header-mobile {
        padding: 10px;
        text-align: center;
        background: #f1f1f1;
        border-bottom: 1px solid #ccc;
        z-index: 9999;
    }

    .notification-content-mobile {
		font-size: 16px;
        padding: 20px;
        height: calc(100% - 60px);
        overflow-y: auto;
    }

    .notification-sidebar-mobile a {
        text-decoration: none;
        display: block;
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    .notification-sidebar-mobile a:hover {
        background-color: #f1f1f1;
    }

    #close-sidebar-mobile {
        position: absolute;
        top: 10px;
        right: 25px;
        font-size: 36px;
        cursor: pointer;
    }

    .load-more-container-mobile {
        text-align: center;
        margin: 20px 0;
    }

    #load-more-mobile {
        background-color: #0073aa;
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        font-size: 14px;
    }

    #load-more-mobile:hover {
        background-color: #005a87;
    }
}

/* Contenu général */
.notification-header {
    padding: 10px;
    text-align: center;
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    z-index: 9999;
}

.notification-content {
	font-size: 18px;
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.notification-sidebar a {
    text-decoration: none;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.notification-sidebar a:hover {
    background-color: #f1f1f1;
}

#close-sidebar {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    cursor: pointer;
}

/* Notifications individuelles */
.notification-item {
    text-align: justify;
    margin-bottom: 20px;
    padding: 10px;
}

.notification-item.unread {
    background-color: #f5f5f5;
}

.notification-item.read {
    background-color: #ffffff;
}

/* Séparateur */
.notification-separator {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* Scrollbar personnalisée */
.notification-content {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc transparent; /* Firefox */
}

.notification-content::-webkit-scrollbar {
    width: 8px;
}

.notification-content::-webkit-scrollbar-track {
    background: transparent;
}

.notification-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.notification-content::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

/* Bouton "En voir plus" */
.load-more-container {
    text-align: center;
    margin: 20px 0;
}

#load-more {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#load-more:hover {
    background-color: #005a87;
}

/* Section de vote */
.notification-vote {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.vote-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.vote-emoji {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.vote-emoji:hover {
    transform: scale(1.2);
}

.vote-confirmation {
    font-weight: bold;
    color: green;
    text-align: center;
    margin-top: 10px;
    font-size: 24px;
}
