﻿/* Container & Positioning */
.app-toast-container {
    position: fixed;
    z-index: 9999;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 450px;
    pointer-events: none;
}

[data-position="tr"] {
    top: 0;
    left: 0;
    align-items: flex-end;
}

[data-position="tc"] {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

[data-position="tl"] {
    top: 0;
    left: 0;
    align-items: flex-start;
}

[data-position="br"] {
    bottom: 0;
    right: 0;
    align-items: flex-end;
    flex-direction: column-reverse;
}

[data-position="bc"] {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    flex-direction: column-reverse;
}

[data-position="bl"] {
    bottom: 0;
    left: 0;
    align-items: flex-start;
    flex-direction: column-reverse;
}

.app-toast {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 12px;
    min-width: 320px;
    padding: 16px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    pointer-events: auto;
    border-right: 3px solid var(--toast-accent-color);
    border-bottom-right-radius: 16px;
    border-top-right-radius: 16px;
}

    .app-toast.app-toast-Success {
        --toast-accent-color: #16a34a;
        background: #ffffff !important;
        color: #1e293b !important;
    }

        .app-toast.app-toast-Success .app-toast-icon {
            color: var(--toast-accent-color) !important;
        }

    .app-toast.app-toast-Error {
        --toast-accent-color: #eb3b5a;
        background: #ffffff !important;
        color: #1e293b !important;
    }

        .app-toast.app-toast-Error .app-toast-icon {
            color: var(--toast-accent-color) !important;
        }

    .app-toast.app-toast-Warning {
        --toast-accent-color: #f59e0b;
        background: #ffffff !important;
        color: #1e293b !important;
    }

        .app-toast.app-toast-Warning .app-toast-icon {
            color: var(--toast-accent-color) !important;
        }

    .app-toast.app-toast-Info {
        --toast-accent-color: #901786;
        background: #ffffff !important;
        color: #1e293b !important;
    }

        .app-toast.app-toast-Info .app-toast-icon {
            color: var(--toast-accent-color) !important;
        }

.app-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 35px;
    margin-bottom: 5px;
}

.app-toast-style-accent .app-toast-icon,
.app-toast-style-bordered .app-toast-icon,
.app-toast-style-minimal .app-toast-icon {
    color: var(--toast-accent-color);
}

.app-toast-style-accent {
    border: 1px solid var(--toast-accent-color);
    border-left: 6px solid var(--toast-accent-color);
}

.app-toast-style-bordered {
    border: 2px solid var(--toast-accent-color);
}

.app-toast-progress {
    background: var(--toast-accent-color);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    min-width: 325px;
    opacity: 0.7;
    transform-origin: left;
    z-index: 10;
    transform: scaleX(1);
}

.app-toast-style-solid .app-toast-progress {
    background: rgba(255,255,255,0.7);
    opacity: 1;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
