/**
 * Incon Lesestatus
 * Frontend-Styling
 */

.incon-lesestatus {
    display: inline-flex;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    background-color: transparent;
    border: none;
    padding: 0;
    margin-right: 10px;
}

/* Entfernt den Punkt vor dem Icon */
.incon-lesestatus:before {
    content: none;
}

.incon-lesestatus.unread {
    color: #f44336; /* Rote Farbe für ungelesene Nachrichten */
}

.incon-lesestatus.read {
    color: #4caf50; /* Grüne Farbe für gelesene Nachrichten */
}

/* Optional: Leichter Hover-Effekt ohne Box-Shadow oder Hintergrund */
.incon-lesestatus:hover {
    opacity: 0.8;
}

/* Basis-Styling für den Dot-Indikator */
.incon-lesestatus-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--awb-color2); /* Grüne Farbe für den Punkt */
    position: absolute;
    top: 50px;
    left: -1px;
    z-index: 10; /* Stellt sicher, dass der Punkt über anderen Elementen angezeigt wird */
}

/* Container, in dem der Punkt platziert wird, sollte position: relative haben */
.incon-lesestatus-dot-container {
    position: relative;
}

/* Styling für den Toggle-Button */
.toggle-read-status {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #fff;
    background-color: #333;
}

.toggle-read-status:hover {
    background-color: #555;
}

/* Ladeindikator für den Button */
.toggle-read-status.loading {
    opacity: 0.7;
    position: relative;
}

.toggle-read-status.loading:after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.blog-envelope-open{
    position: relative;
    width: 100%;

}
.blog-envelope-open::before{
    position: absolute;
    background-image: url('img/gelesen.svg');
    content: ' ';
    width: 18px;
    height: 18px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -1px;
    right:0;
}

.blog-envelope-close{
    position: relative;
    width: 100%;

}
.blog-envelope-close::before{
    position: absolute;
    background-image: url('img/ungelesen.svg');
    content: ' ';
    width: 18px;
    height: 18px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -1px;
    right:0;
}
.incon-lesestatus-title.unread {
    font-weight: 800;
}
.incon-lesestatus-title.read {
    font-weight: 500;
}

/* Styling für die "Keine ungelesenen Beiträge" Meldung */
.incon-no-unread-message {
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    color: #666;
    border: 1px solid #ddd;
    font-weight: 500;
}