/* General Toast Styles */
.toast-message {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 400px;
    padding: 16px 20px;
    font-size: 14px;
    border-radius: 10px;
    background-color: green; /* Red */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1200;
    animation: fadeIn 0.3s ease-out;
    text-align: left;
    margin-top: 15px;  /* Space between toasts */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-60%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Error Toast (Red) */
.toast-message.error-toast {
    background-color: #f44336; /* Red */
    color: white;
}

/* Success Toast (Green) */
.toast-message.success-toast {
    background-color: #4CAF50; /* Green */
    color: white;
}

/* Info Toast (Blue) */
.toast-message.info-toast {
    background-color: #FF9800; /* Blue */
    color: white;
}

/* Warning Toast (Yellow) */
.toast-message.warning-toast {
    background-color: #FF9800; /* Orange */
    color: white;
}

/* Close Button for Toasts */
.toast-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Fade-out Animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.toast-message.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

/* Close Button */
.toast-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}


/* Install Toast Container */
#install-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #007bff;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: 380px;
    font-size: 14px;
    z-index: 9999;
    animation: slideUpFadeIn 0.4s ease-out;
}

/* Install button */
#install-btn {
    margin-left: 15px;
    padding: 8px 14px;
    background-color: white;
    color: #007bff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#install-btn:hover {
    background-color: #e6e6e6;
}

/* Close button */
#close-toast {
    margin-left: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

/* Slide-in animation */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 100%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


@media (max-width: 480px) {
    #install-toast {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        font-size: 13px;
    }

    #install-btn,
    #close-toast {
        margin-top: 10px;
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}
