/* notifications.css — Estilos do sistema de notificações in-app (9.72 Fase 1) */
/* Owns: .notif-bell, .notif-badge, .notif-dropdown, .notif-item*, .notif-mark-all */

.notif-bell {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 6px;
    user-select: none;
}

.notif-bell:hover {
    background: var(--bg-subtle, #f5f5f5);
}

.notif-bell-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--text-secondary, #555);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger, #e53935);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    line-height: 1;
    pointer-events: none;
}

.notif-badge[hidden] {
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 300;
}

.notif-item {
    padding: 12px;
    border-bottom: 1px solid var(--border, #eee);
    cursor: pointer;
    transition: background 0.15s;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: var(--bg-subtle, #f5f5f5);
}

.notif-item--unread {
    font-weight: 600;
    border-left: 3px solid var(--accent, #1976d2);
}

.notif-item-title {
    font-size: 13px;
    color: var(--text-primary, #222);
    line-height: 1.4;
}

.notif-item-body {
    font-size: 12px;
    color: var(--text-secondary, #666);
    margin-top: 2px;
    line-height: 1.3;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-tertiary, #999);
    margin-top: 4px;
}

.notif-mark-all {
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    color: var(--accent, #1976d2);
    border-top: 1px solid var(--border, #eee);
    transition: background 0.15s;
}

.notif-mark-all:hover {
    background: var(--bg-subtle, #f5f5f5);
}
