/* ⛓️ CURSOR_ANCHOR:ui:notifications_styles
   Notification system styles */

/* Toast Notifications Container */
#notifications-toast-container {
    z-index: 1060;
    max-width: 400px;
    pointer-events: none;
}

.notification-toast {
    min-width: 300px;
    max-width: 400px;
    transition: transform 0.3s ease;
    pointer-events: auto;
    margin-bottom: 0.5rem;
}

.notification-toast.showing {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-preview {
    word-wrap: break-word;
}

.notification-toast:hover {
    box-shadow: 0 4px 12px rgba(var(--color-text), 0.15);
    transform: translateY(-2px);
}

/* Mobile: Ensure close button icon is visible */
@media (max-width: 768px) {
    .notification-toast .toast-header .btn-close.btn-close-white {
        background: none !important; /* Remove Bootstrap SVG background */
    }
    
    .notification-toast .toast-header .btn-close.btn-close-white i {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: rgb(var(--color-canvas)) !important;
        font-size: 1.25rem !important;
        filter: none !important;
    }
}

/* Side Panel */
.notifications-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background: rgb(var(--color-canvas));
    box-shadow: -2px 0 8px rgba(var(--color-text), 0.1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

.notifications-panel__header {
    padding: 1rem;
    border-bottom: 1px solid rgb(var(--grey-300));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(var(--grey-50));
}

.notifications-panel__header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.notifications-panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgb(var(--grey-50-gr1));
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgb(var(--grey-50));
}

.notification-item__header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-item__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: rgb(var(--color-text));
}

.notification-item__content {
    color: rgb(var(--color-text-muted));
    font-size: 0.9rem;
    word-wrap: break-word;
}

.notifications-panel__footer {
    padding: 1rem;
    border-top: 1px solid rgb(var(--grey-300));
    text-align: center;
    background: rgb(var(--grey-50));
}

/* Badge styles */
.notification-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}

/* Loading state */
.notifications-loading {
    text-align: center;
    padding: 2rem;
    color: rgb(var(--color-text-muted));
}

.notifications-empty {
    text-align: center;
    padding: 2rem;
    color: rgb(var(--color-text-muted));
}


.notification-toast .toast-header {
    position: relative;
}

.notification-close {
    position: absolute;
    right: 16px;
    top: 1px;
}