nwg-notifications 0.4.0

D-Bus notification daemon + notification center for Hyprland and Sway. Claims org.freedesktop.Notifications, shows popup toasts, and ships a slide-out history panel with Do-Not-Disturb controls and optional waybar integration. Replaces mako; runs standalone.
/* macOS-style notification popups */

/* Popup window — rounded, semi-transparent dark, with comfortable padding */
.notification-popup {
    background-color: rgba(30, 30, 46, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    color: #e8e8e8;
    margin: 4px;
}

/* App name in popup header */
.popup-app-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Timestamp in popup header */
.popup-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* Notification summary (title) */
.popup-summary {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Notification body text */
.popup-body {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* Dismiss button on popup */
.popup-dismiss {
    min-height: 0;
    min-width: 0;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    border: none;
    font-size: 11px;
}
.popup-dismiss:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

/* App icon in popup */
.popup-icon {
    margin-right: 10px;
}

/* Action buttons on popup */
.popup-actions {
    margin-left: 58px;
}

.popup-action-btn {
    min-height: 0;
    padding: 3px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 12px;
}
.popup-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
}

/* Critical urgency indicator */
.urgency-critical {
    border-color: rgba(255, 77, 77, 0.5);
    border-width: 2px;
}

/* Remove GTK4 default window styling for layer-shell surfaces */
window.notification-popup-window,
window.notification-panel-window {
    background-color: transparent;
}

/* Subtle dim behind the panel — must have content for compositor to deliver input */
window.notification-backdrop {
    background-color: rgba(0, 0, 0, 0.15);
}

/* ===== DND Menu ===== */

window.dnd-menu-window {
    background-color: transparent;
}

window.dnd-menu-backdrop {
    background-color: rgba(0, 0, 0, 0.01);
}

.dnd-menu {
    background-color: rgba(30, 30, 46, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.dnd-menu-item {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    min-height: 0;
}
.dnd-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dnd-menu-expires {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    padding: 2px 16px;
}

/* ===== History Panel ===== */

.notification-panel {
    background-color: rgba(22, 22, 30, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
}

.panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.panel-dnd {
    min-height: 0;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    border: none;
}
.panel-dnd:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.panel-clear {
    min-height: 0;
    padding: 4px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    border: none;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.panel-clear:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.panel-empty {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* Group header */
.group-header {
    padding: 8px 8px 4px 8px;
}

.group-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.group-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1px 7px;
    min-height: 0;
}

.group-dismiss {
    min-height: 0;
    min-width: 0;
    padding: 2px 6px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
}
.group-dismiss:hover {
    background-color: rgba(255, 77, 77, 0.15);
    color: rgba(255, 77, 77, 0.8);
}

/* Notification row in panel */
.notification-row {
    padding: 6px 4px 6px 2px;
    border-radius: 8px;
}
.notification-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Blue dot for unread notifications (macOS style) */
.unread-dot {
    font-size: 8px;
    color: #7aa2f7;
    min-width: 10px;
}

.row-summary {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.row-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.row-body {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.row-dismiss {
    min-height: 0;
    min-width: 0;
    padding: 2px;
    border-radius: 10px;
    background: transparent;
    border: none;
    opacity: 0.3;
}
.row-dismiss:hover {
    background-color: rgba(255, 77, 77, 0.15);
    opacity: 1.0;
}