/* MineCloud — toasts globais */

#toast-container {
    top: 1.15rem;
    right: 1.15rem;
    z-index: 99999;
    pointer-events: none;
}

#toast-container > .toast {
    display: block;
    position: relative;
    width: min(300px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    margin: 0 0 0.45rem;
    padding: 0.65rem 1.75rem 0.65rem 2.35rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 1;
    color: #fff;
    overflow: hidden;
    pointer-events: auto;
    animation: minecloud-toast-in 0.28s ease-out;
}

@keyframes minecloud-toast-in {
    from {
        opacity: 0;
        transform: translateX(16px) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

#toast-container > .toast::before {
    content: '';
    position: absolute;
    left: 0.65rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

#toast-container > .toast::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 6px 0 0 6px;
    background: rgba(255, 255, 255, 0.75);
}

#toast-container > .toast-success {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.96), rgba(21, 128, 61, 0.92)) !important;
}

#toast-container > .toast-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbf7d0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

#toast-container > .toast-error {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(153, 27, 27, 0.92)) !important;
}

#toast-container > .toast-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fecaca' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
}

#toast-container > .toast-info {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.96), rgba(37, 99, 235, 0.9)) !important;
}

#toast-container > .toast-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfdbfe' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

#toast-container > .toast-warning {
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.96), rgba(180, 83, 9, 0.92)) !important;
}

#toast-container > .toast-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fde68a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

#toast-container > .toast .toast-title {
    display: none;
}

#toast-container > .toast .toast-title:not(:empty) {
    display: block;
    margin: 0 0 0.15rem;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

#toast-container > .toast .toast-message {
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: #fff !important;
    word-break: break-word;
}

#toast-container > .toast .toast-close-button {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: none !important;
    opacity: 0.75;
    background: transparent !important;
}

#toast-container > .toast .toast-close-button:hover,
#toast-container > .toast .toast-close-button:focus {
    color: #fff !important;
    opacity: 1;
}

#toast-container > .toast .toast-progress {
    display: none !important;
}

@media (max-width: 575.98px) {
    #toast-container {
        top: 0.85rem;
        right: 0.85rem;
        left: 0.85rem;
    }

    #toast-container > .toast {
        width: 100%;
        max-width: none;
    }
}
