﻿
.sc-toast-container {
    position: fixed;
    z-index: 2000; 
    pointer-events: none; 
    display: flex;
    flex-direction: column;
    gap: 12px; 
    padding: 1.5rem;
}

    .sc-toast-container.top-0 {
        top: 0;
    }

    .sc-toast-container.end-0 {
        right: 0;
    }

    .sc-toast-container.start-0 {
        left: 0;
    }

    .sc-toast-container.bottom-0 {
        bottom: 0;
    }

    .sc-toast-container.start-50 {
        left: 50%;
    }


.sc-toast-instance {
    pointer-events: auto; 
    width: 380px;
    max-width: calc(100vw - 3rem);
    background: #ffffff;
    border-radius: 12px;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    border: none;
    animation: scToastSlideIn 0.35s ease-out forwards;
}


    .sc-toast-instance.fading-out {
        animation: scToastFadeOut 0.4s ease-in forwards !important;
    }

    .sc-toast-instance .toast-header {
        background: transparent;
        border: none;
        padding: 1rem 1rem 0.25rem 1rem;
        align-items: center;
    }

    .sc-toast-instance .toast-icon-container {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }

    .sc-toast-instance .toast-heading {
        font-weight: 700;
        font-size: 1rem;
        color: #1a1d1f;
    }

    .sc-toast-instance .toast-body {
        padding: 0 1rem 1rem calc(1rem + 32px + 0.75rem);
        color: #6f767e;
        font-size: 0.93rem;
        line-height: 1.5;
    }


    .sc-toast-instance .btn-close {
        font-size: 0.8rem;
        opacity: 0.5;
    }

        .sc-toast-instance .btn-close:hover {
            opacity: 1;
        }

.sc-toast-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.03);
}

.sc-toast-progress-bar {
    height: 100%;
    background-color: currentColor;
    opacity: 0.6;
    border-radius: 2px;
    animation-name: scShrinkProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.sc-toast-success {
    border-left: 6px solid #198754;
}

    .sc-toast-success .toast-icon-container {
        background-color: rgba(25, 135, 84, 0.1);
        color: #198754;
    }

.sc-toast-info {
    border-left: 6px solid #0dcaf0;
}

    .sc-toast-info .toast-icon-container {
        background-color: rgba(13, 202, 240, 0.1);
        color: #0dcaf0;
    }

.sc-toast-warning {
    border-left: 6px solid #ffc107;
}

    .sc-toast-warning .toast-icon-container {
        background-color: rgba(255, 193, 7, 0.15);
        color: #ff9800;
    }

.sc-toast-error {
    border-left: 6px solid #dc3545;
}

    .sc-toast-error .toast-icon-container {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }



@keyframes scToastSlideIn {
    from {
        transform: translateX(calc(100% + 2rem));
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scToastFadeOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-15px);
        opacity: 0;
    }
}

@keyframes scShrinkProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}
