/* Centrum powiadomień: dzwonek w górnym pasku na komputerze i na dolnym pasku na telefonie i tablecie (każda strona
   zalogowanego) oraz lista /notifications. Prefiksy app-bell, app-tabbar__badge--alert i notif-, bez zmian
   w app-shell.css. */

.app-bell {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    border-radius: 50%;
    color: #334155;
    text-decoration: none;
}

.app-bell:hover,
.app-bell:focus-visible {
    background: #f1f5fb;
    color: #0f172a;
}

.app-bell.is-active {
    background: #e8f0ff;
    color: var(--bs-primary);
}

/* Na komputerze menu sekcji wypełnia wolne miejsce, a konto stoi tuż za dzwonkiem. */
.app-bell + .app-account {
    margin-left: 0;
}

/* Telefon i tablet (do 991 px): dzwonek jest na dolnym pasku (app-tabbar.php), więc górny pasek ma tylko markę
   i konto dosunięte do prawej krawędzi - bez drugiego dzwonka z tą samą liczbą. */
@media (max-width: 991.98px) {
    .app-bell {
        display: none;
    }

    .app-bell + .app-account {
        margin-left: auto;
    }
}

/* Licznik dzwonka na dolnym pasku: czerwony jak w górnym pasku (licznik szkiców jest bursztynowy). */
.app-tabbar__badge--alert {
    background: #b91c1c;
    color: #fff;
}

.app-bell__badge {
    position: absolute;
    top: 0.2rem;
    right: 0.05rem;
    min-width: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 0.6rem;
    background: #b91c1c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}

.notif-page {
    max-width: 48rem;
}

.notif-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--app-line, #e5eaf2);
    border-radius: 0.75rem;
    background: #fff;
    color: #334155;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.notif-item:hover,
.notif-item:focus-visible {
    border-color: #c7d6ef;
    background: #f8fafd;
}

.notif-item:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.notif-item.is-unread {
    border-left: 0.3rem solid var(--bs-primary);
    background: #f3f7ff;
}

.notif-item.is-danger {
    border-color: #f1b5b5;
}

.notif-item.is-danger.is-unread {
    border-left-color: #b91c1c;
    background: #fff5f5;
}

.notif-item__alert {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
}

.notif-item__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.notif-item__title {
    color: #0f172a;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.notif-item.is-unread .notif-item__title {
    font-weight: 700;
}

.notif-item.is-danger .notif-item__title {
    color: #991b1b;
}

.notif-item__body {
    overflow-wrap: anywhere;
}

.notif-item__meta {
    color: var(--app-muted, #64748b);
    font-size: 0.8rem;
}

.notif-item__new {
    color: var(--bs-primary);
    font-weight: 600;
}

.notif-item.is-danger .notif-item__new {
    color: #b91c1c;
}
