﻿/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Base Custom Toast */
.custom-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    padding: 12px 20px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    min-width: 250px;
    max-width: 400px;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.5s forwards;
}

/* Toast Variants */
.custom-toast.success {
    background-color: #28a745;
}
/* Green */
.custom-toast.error {
    background-color: #dc3545;
}
/* Red */
.custom-toast.warning {
    background-color: #ffc107;
    color: #333;
}
/* Yellow */
.custom-toast.info {
    background-color: #17a2b8;
}
/* Blue */

/* Close Button */
.custom-toast .close-btn {
    margin-left: 15px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* Close Button Hover */
.custom-toast .close-btn:hover {
    color: black;
}

/* 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);
    }
}
