﻿/* Notifications Elements and Controls */

.notification-container {
    overflow: hidden;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    text-align: center !important;
    opacity: 0; /* Start invisible */
    animation: fadeIn 0.5s ease-out forwards; /* Fade in on appearance */
}

    .notification-container[style*="opacity: 0"] {
        pointer-events: none !important;
    }

    .notification-container.fade-out {
        animation: fadeOut 0.5s ease-out forwards; /* Fade out animation */
    }

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.notification-modern {
    border-radius: 12px !important;
    padding: 16px;
    margin: 0 auto;
    max-width: 800px;
    width: fit-content;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    color: white;
    box-sizing: border-box !important;
    border: none !important;
    white-space: normal;
    overflow: hidden; /* Add this */
}

    .notification-modern.success-modern {
        background-color: var(--signature-green) !important;
    }

    .notification-modern.error-modern {
        background-color: var(--signature-red) !important;
    }

    .notification-modern.warning-modern {
        background-color: var(--signature-orange) !important;
    }

    .notification-modern.info-modern {
        background-color: var(--signature-blue) !important;
    }

    /* Ensure icons and text are white */
    .notification-modern .notification-icon,
    .notification-modern .notification-content,
    .notification-modern .notification-message {
        color: white;
    }

        .notification-modern .notification-icon svg {
            stroke: white;
        }

/* Action buttons container for actionable notifications */
.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    pointer-events: auto;
    justify-content: center;
}

.notification-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .notification-modern {
        max-width: calc(100vw - 32px);
        padding: 12px;
        font-size: 0.9rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }
}

.notification-icon {
    flex-shrink: 0; /* Add this - prevents icon from shrinking */
    width: 24px; /* Add this - consistent icon width */
    height: 24px; /* Add this - consistent icon height */
}

.notification-content {
    flex: 1; /* Add this - allows content to fill remaining space */
    min-width: 0; /* Add this - allows text to wrap properly */
}

@media (max-width: 768px) {
    .notification-modern {
        max-width: calc(100vw - 32px);
        width: calc(100vw - 32px); /* Change from fit-content to calculated width */
        padding: 12px;
        gap: 8px; /* Reduce gap on mobile */
    }
}
