/**
 * Toast Notifications Styles
 * 
 * Modern toast notifications with smooth animations
 * Design: White background, black text, purple links, rounded corners
 * 
 * @package NRIX
 * @version 1.5.0
 */

/* Toast Container */
#nrix-toast-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    pointer-events: none;
    max-width: 420px;
    width: 100%;
}

/* Individual Toast */
.nrix-toast {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 16px 20px;
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex !important;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    animation: nrixToastSlideUp 0.3s ease-out;
    transition: all 0.3s ease;
}

.nrix-toast:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Toast Icon */
.nrix-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: start;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.toast-success .nrix-toast-icon {
    color: #4caf50;
}

.toast-error .nrix-toast-icon {
    color: #f44336;
}

.toast-notice .nrix-toast-icon,
.toast-info .nrix-toast-icon {
    color: #2196f3;
}

/* Toast Content */
.nrix-toast-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    color: #000000 !important;
}

.nrix-toast-content a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

.nrix-toast-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Close Button */
.nrix-toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: start;
    justify-content: end;
    color: #666;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.nrix-toast-close:hover {
    color: #000 !important;
}

/* Progress Bar - More visible */
.nrix-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transform-origin: left;
    animation: nrixToastProgress 4s linear;
}

.toast-success .nrix-toast-progress {
    background: #4caf50;
}

.toast-error .nrix-toast-progress {
    background: #f44336;
}

.toast-notice .nrix-toast-progress,
.toast-info .nrix-toast-progress {
    background: #2196f3;
}

/* Animations */
@keyframes nrixToastSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes nrixToastSlideDown {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }
}

@keyframes nrixToastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.nrix-toast.toast-removing {
    animation: nrixToastSlideDown 0.3s ease-in forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #nrix-toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .nrix-toast {
        padding: 14px 16px;
        margin-top: 10px;
        border-radius: 10px;
        min-height: 50px;
    }

    .nrix-toast-content {
        font-size: 13px;
    }

    .nrix-toast-content a {
        font-size: 11px;
    }

    .nrix-toast-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    #nrix-toast-container {
        bottom: 5px;
        right: 5px;
        left: 5px;
    }

    .nrix-toast {
        padding: 12px 14px;
        gap: 10px;
    }
}