

/* user.css */

/* Bell Icon Header */
.btn-icon-header {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-header:hover {
    background: rgba(255,255,255,0.2);
}

.notif-badge-header {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

.notification-item.unread {
    background: #e3f2fd;
    border-left-color: var(--blue);
}

.notification-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

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

/* ── Notification panel (bell popover) ─────────────────────── */
.notif-badge-header--urgent {
    background: #dc2626 !important;
    animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(220,38,38,0); }
}

/* Notification modal item styles */
.notif-empty {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.notif-divider {
    padding: 0.5rem 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    margin-bottom: 0.5rem;
    background: var(--bg-light, #f8fafc);
    transition: background 0.15s;
}

.notif-item--urgent {
    border-left-color: #dc2626;
    background: #fff5f5;
}

.notif-item--seen {
    opacity: 0.55;
}

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

.notif-urgent-tag {
    display: inline-block;
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.notif-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.notif-item-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notif-item-note {
    font-size: 0.8rem;
    color: #059669;
    margin-top: 0.25rem;
    font-weight: 500;
}

.notif-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.notif-item-action {
    font-size: 0.8rem;
    color: var(--blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.notif-item-action:hover { text-decoration: underline; }

.notif-item-dismiss {
    background: #e5e7eb;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.1rem;
    transition: background 0.15s, color 0.15s;
}

.notif-item-dismiss:hover {
    background: #dc2626;
    color: white;
}

.notif-item-seen-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 0.2rem;
    font-style: italic;
}