/* ── Module 6: Notifications. Append to app.css ── */

.notif-actions {
    margin-top: 1rem;
}

.notif-info-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.notif-info-row + .notif-info-row {
    border-top: 1px solid var(--focus-border);
}

.notif-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #F4F5F8;
    color: var(--focus-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .notif-info-icon .rzi {
        font-size: 20px;
    }

/* Templates page */
.notif-event-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.notif-event-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--focus-brand-tint);
    color: var(--focus-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

    .notif-event-icon .rzi {
        font-size: 22px;
    }

.notif-template-text {
    min-width: 0;
    flex: 1;
}

.notif-template-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.notif-channel-icon {
    font-size: 1.05rem;
    color: var(--focus-muted);
}

/* Template editor */
.notif-dialog-active {
    padding-top: 0;
}

.notif-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.notif-token {
    border: 1px solid var(--focus-border);
    background-color: var(--focus-background);
    color: var(--focus-ink);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.notif-token:hover {
    border-color: var(--focus-blue);
    color: var(--focus-blue);
}

.notif-token-hint {
    margin-top: 0.4rem;
}

.notif-warning {
    background-color: #FFF4E5;
    color: #8A4B0F;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.notif-preview {
    border: 1px solid var(--focus-border);
    border-radius: 14px;
    padding: 1rem;
    background-color: var(--focus-background);
    min-height: 160px;
}

.notif-preview-subject {
    font-weight: 700;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--focus-border);
}

.notif-preview-body,
.notif-preview-bubble,
.notif-detail-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.notif-preview-email {
    background-color: var(--focus-surface);
}

.notif-preview-bubble {
    background-color: #E9EDF5;
    border-radius: 16px 16px 16px 4px;
    padding: 0.65rem 0.85rem;
    max-width: 92%;
    font-size: 0.92rem;
}

.notif-dialog-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--focus-border);
}

/* Message log */
.notif-filter-card {
    margin-bottom: 1rem;
}

.notif-summary {
    margin-bottom: 0.75rem;
}

.notif-grid {
    border-radius: 14px;
}

.notif-detail {
    padding: 0.5rem 1rem 0.75rem;
}

.notif-detail-meta {
    margin-top: 0.5rem;
}

/* Bell */
.notif-bell {
    position: relative;
}

.notif-bell-button {
    position: relative;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--focus-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notif-bell-button:hover {
    background-color: var(--focus-background);
    color: var(--focus-ink);
}

.notif-bell-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: var(--focus-orange);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 340px;
    max-width: calc(100vw - 32px);
    background-color: var(--focus-surface);
    border: 1px solid var(--focus-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26, 29, 39, 0.12);
    z-index: 1001;
    overflow: hidden;
}

.notif-panel-header,
.notif-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.notif-panel-header {
    border-bottom: 1px solid var(--focus-border);
}

.notif-panel-footer {
    border-top: 1px solid var(--focus-border);
    justify-content: center;
}

.notif-panel-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-link {
    border: none;
    background: transparent;
    color: var(--focus-blue);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.notif-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--focus-faint);
}

/* Notification rows (bell and inbox) */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
}

.notif-item + .notif-item {
    border-top: 1px solid var(--focus-border);
}

.notif-item:hover {
    background-color: var(--focus-background);
}

.notif-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
    background-color: transparent;
}

.notif-item-unread .notif-item-dot {
    background-color: var(--focus-blue);
}

.notif-item-text {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    color: var(--focus-ink);
}

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

.notif-item-time {
    font-size: 0.75rem;
    white-space: nowrap;
}

.focus-card .notif-item {
    padding-left: 0;
    padding-right: 0;
}
