/**
 * Unified Notification System - Styling
 * Consistent visual design for all notification types
 */

/* ========================================
   INLINE NOTIFICATIONS
   ======================================== */

.notification-inline {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.notification-inline[data-severity="error"] {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #B91C1C;
}

.notification-inline[data-severity="warning"] {
    background-color: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.notification-inline[data-severity="info"] {
    background-color: #EFF6FF;
    border-color: #BFDBFE;
    color: #1E40AF;
}

.notification-inline[data-severity="success"] {
    background-color: #F0FDF4;
    border-color: #BBF7D0;
    color: #166534;
}

.notification-inline i[data-icon] {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notification-message {
    font-weight: 500;
    line-height: 1.4;
}

.notification-suggestion {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    display: none;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.toast-header {
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.toast-body {
    padding: 0.75rem 1rem;
    background: white;
    color: #1F2937;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-inline {
    animation: slideInDown 0.3s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    #toastContainer {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-inline {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.notification-inline:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
