/* Explain: Styles for the race notification inbox and individual notice items. */
/* Avisos de novas corridas: sino no topo, caixa de entrada e preferência do piloto. */
.pdb-notif {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.9rem;
    background: var(--menu-bg);
    padding: 0.85rem;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease;
}

.pdb-notif:hover {
    background: var(--menu-hover-bg);
}

.pdb-notif.is-unread {
    border-color: var(--accent-color);
    background: var(--menu-active-bg);
}

.pdb-notif-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    background: var(--terracotta-soft);
    color: var(--logo-subtitle-color);
    font-size: 1.05rem;
}

.pdb-notif-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.pdb-notif-title {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    word-break: break-word;
}

.pdb-notif-text {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    word-break: break-word;
}

.pdb-notif-time {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.pdb-notif-dot {
    width: 0.6rem;
    height: 0.6rem;
    flex-shrink: 0;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 9px rgba(255, 68, 51, 0.9);
}

/* Interruptor de avisos de novas corridas: fica azul claro ao ser ativado
   e permanece apagado (escuro) quando desativado. */
.toggle-notify:checked,
.toggle-notify[checked] {
    border-color: #7FD0FF !important;
    background-color: #66C0F4 !important;
    box-shadow: 0 0 12px rgba(102, 192, 244, 0.6);
}

.toggle-notify:checked::before,
.toggle-notify[checked]::before {
    background-color: #ffffff;
}