﻿:root {
    --sgcci-primary: #5c2d91;
    --sgcci-accent: #ffb300;
    --sgcci-bg: #ffffff;
    --sgcci-muted: #6b6b6b;
    --sgcci-success: #1e8e3e;
    --sgcci-danger: #d64545;
    --sgcci-warning: #f39c12;
    --sgcci-shadow: 0 6px 20px rgba(92,45,145,0.12);
    --sgcci-radius: 10px;
    --sgcci-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sgcci-toast-container {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    pointer-events: none;
    max-width: calc(100% - 40px);
}

.sgcci-toast {
    pointer-events: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 300px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: var(--sgcci-radius);
    background: linear-gradient(180deg, var(--sgcci-bg), #fbfbfb);
    box-shadow: var(--sgcci-shadow);
    font-family: var(--sgcci-font);
    color: #111;
    border-left: 6px solid var(--sgcci-primary);
    transform-origin: right bottom;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform .22s cubic-bezier(.2,.9,.3,1), opacity .22s ease;
}

    .sgcci-toast.show {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .sgcci-toast .icon {
        flex: 0 0 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 14px;
    }

    .sgcci-toast .content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .sgcci-toast .content .title {
            font-weight: 700;
            font-size: 14px;
        }

        .sgcci-toast .content .message {
            font-size: 13px;
            color: var(--sgcci-muted);
        }

    .sgcci-toast .close {
        margin-left: 8px;
        cursor: pointer;
        background: transparent;
        border: 0;
        font-size: 16px;
        color: var(--sgcci-muted);
    }

    .sgcci-toast.type-info {
        border-left-color: var(--sgcci-primary);
    }

        .sgcci-toast.type-info .icon {
            background: var(--sgcci-primary);
        }

    .sgcci-toast.type-success {
        border-left-color: var(--sgcci-success);
    }

        .sgcci-toast.type-success .icon {
            background: var(--sgcci-success);
        }

    .sgcci-toast.type-warning {
        border-left-color: var(--sgcci-warning);
    }

        .sgcci-toast.type-warning .icon {
            background: var(--sgcci-warning);
        }

    .sgcci-toast.type-danger {
        border-left-color: var(--sgcci-danger);
    }

        .sgcci-toast.type-danger .icon {
            background: var(--sgcci-danger);
        }

@media (max-width: 420px) {
    .sgcci-toast {
        min-width: 260px;
        max-width: calc(100% - 28px);
        right: 10px;
        left: 10px;
    }

        .sgcci-toast .content .title {
            font-size: 13px;
        }

        .sgcci-toast .content .message {
            font-size: 12px;
        }
}
