/* =====================================================
   CLAUX - NOTIFICATION CENTER
   ===================================================== */

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

.notif-bell {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.notif-bell:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    background: var(--danger);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-secondary);
    pointer-events: none;
}

/* ── Slide-in panel ───────────────────────────────── */
.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.notif-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* ── Notification list ────────────────────────────── */
.notif-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.notif-empty i {
    font-size: 2rem;
    opacity: 0.4;
}

/* ── Single notification item ─────────────────────── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

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

.notif-item:hover {
    background: rgba(255,255,255,0.03);
}

.notif-item--unread {
    background: rgba(37,99,235,0.05);
}

.notif-item--unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.notif-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 1px;
}

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

.notif-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-contract {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.notif-contract i {
    margin-right: 3px;
}

.notif-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ── Panel footer ─────────────────────────────────── */
.notif-panel-footer {
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    flex-shrink: 0;
}

.notif-panel-view-all {
    width: 100%;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.notif-panel-view-all:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

/* ── Action buttons ───────────────────────────────── */
.notif-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.notif-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.notif-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.notif-btn--dismiss:hover {
    background: rgba(220,38,38,0.12);
    border-color: var(--danger);
    color: var(--danger);
}
