.toast-title {
    font-weight: bold;
}

.toast-message {
    overflow-wrap: break-word;
    margin-top: 0.3em;
    color: black;
}

    .toast-message a,
    .toast-message label {
        color: black;
    }

        .toast-message a:hover {
            text-decoration: underline;
        }

.toast-close-button {
    position: relative;
    right: -0.3em;
    top: -0.3em;
    float: right;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 1px 0 #ffffff;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

    .toast-close-button:hover,
    .toast-close-button:focus {
        color: #000;
        cursor: pointer;
        opacity: 0.9;
    }

button.toast-close-button {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    margin-top: 0.2em;
}

    button.toast-close-button:hover {
        background: transparent;
        border: 0;
    }

.toast-close-button:focus {
    outline: 2px solid #3498db;
}

.toast {
    background-color: #fff;
    padding: 15px 50px 15px 15px;
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.toast-success {
    color: #28a745;
}

.toast-error {
    color: #dc3545;
}

.toast-info {
    color: #dc3545;
}

.toast-warning {
    color: #dc3545;
}

/* Toast Progress */
.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background-color: currentColor; /* Inherits text color */
    animation: progress 5s linear forwards; /* Example animation for progress bar */
}

/* Pause animation on hover */
.toast:hover .toast-progress {
    animation-play-state: paused; /* Pauses the progress animation */
}

/* Keyframes for the progress animation */
@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

.toast-top-center {
    top: 0;
    right: 0;
    width: 100%;
}

.toast-bottom-center {
    bottom: 0;
    right: 0;
    width: 100%;
}

.toast-top-full-width {
    top: 0;
    right: 0;
    width: 100%;
}

.toast-bottom-full-width {
    bottom: 0;
    right: 0;
    width: 100%;
}

.toast-top-left {
    top: 12px;
    left: 12px;
}

.toast-top-right {
    top: 12px;
    right: 12px;
}

.toast-bottom-right {
    right: 12px;
    bottom: 30px;
}

.toast-bottom-left {
    bottom: 12px;
    left: 12px;
}

#toast-container {
    position: fixed;
    z-index: 999999;
}

    #toast-container * {
        box-sizing: border-box;
    }

    #toast-container > div {
        position: relative;
        overflow: hidden;
        margin: 0 0 6px;
        padding: 15px 15px 15px 50px;
        width: 300px;
        border-radius: 3px;
        background-position: 15px center;
        background-repeat: no-repeat;
        box-shadow: 0 0 12px #999999;
        opacity: 0.8;
    }

    #toast-container > :hover {
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
        opacity: 0.95;
        cursor: pointer;
        transition: box-shadow 0.3s ease, opacity 0.3s ease;
    }

    #toast-container > .toast-info::before,
    #toast-container > .toast-success::before,
    #toast-container > .toast-error::before,
    #toast-container > .toast-warning::before {
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }

    #toast-container > .toast-info::before {
        content: '\f05a';
        color: #dc3545;
    }

    #toast-container > .toast-success::before {
        content: '\f058';
        color: #28a745;
    }

    #toast-container > .toast-error::before {
        content: '\f057';
        color: #dc3545;
    }

    #toast-container > .toast-warning::before {
        content: '\f071';
        color: #dc3545;
    }

    #toast-container.toast-top-center > div,
    #toast-container.toast-bottom-center > div {
        width: 300px;
        margin: auto;
    }

    #toast-container.toast-top-full-width > div,
    #toast-container.toast-bottom-full-width > div {
        width: 96%;
        margin: auto;
    }

@media all and (max-width: 240px) {
    #toast-container > div {
        padding: 8px 8px 8px 50px;
        width: 11em;
    }
}

@media all and (min-width: 241px) and (max-width: 480px) {
    #toast-container > div {
        padding: 8px 8px 8px 50px;
        width: 18em;
    }
}

@media all and (min-width: 481px) and (max-width: 768px) {
    #toast-container > div {
        padding: 15px 15px 15px 50px;
        width: 25em;
    }
}
