/* Toast notification styles */
#toastNotifier {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

#toastWrapper {
    background: white;
    padding: 0.3rem 0.5rem 0;
    width: 100%;
    max-width: 35rem;
    height: 7rem;
    border-radius: 0.4rem;
    box-shadow: 0 0 0.7rem 0.3rem rgba(0, 0, 0, 0.1);
    border-left: 0.3rem solid green;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    overflow: hidden;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    border-color: var(--toastColor, black);
}

#toastWrapper.active {
    transform: translateX(0);
}

#toastIcon {
    font-size: 2rem;
    margin: 0 0.7rem 0 0.1rem;
    color: var(--toastColor, black);
}

#toastContent {
    padding: 0.2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#toastContent p {
    margin: 0;
}

#toastStatus {
    font-weight: 500;
    text-transform: uppercase;
    color: var(--toastColor, black);
    font-size: 1.4rem;
}

#toastMessage {
    font-size: 1.2rem;
    max-height: 4rem;
    overflow-y: auto;
    color: #333;
}

#toastMessage::-webkit-scrollbar {
    width: 0.5rem;
}

#toastMessage::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

.fa-xmark {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.4rem;
    opacity: 0.5;
    cursor: pointer;
}

.fa-xmark:hover {
    transition: all 0.6s;
    opacity: 1;
}

#toastProgress {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #ddd;
    width: 100%;
    height: 0.2rem;
    border-radius: 0.4rem;
    overflow: hidden;
}

#toastProgressBar {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--toastColor, black);
    width: 100%;
    height: 0.2rem;
    border-radius: 0.4rem;
}

.animate {
    animation: progressBar var(--progressBarDuration) linear forwards;
}

@keyframes progressBar {
    100% {
        left: -100%;
    }
}
