.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    min-width: 20rem;
    z-index: 9999;
    max-width: calc(100% - 2rem);
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: toast-enter 0.15s ease-out;
    transition: all 0.3s ease;
}

.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.125rem;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    line-height: 1.25rem;
    opacity: 0.9;
}

.toast .close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem;
    color: currentColor;
    opacity: 0.5;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: opacity 0.15s;
}

.toast .close-btn:hover {
    opacity: 1;
}

.toast.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.toast.info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.toast.danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .toast {
        max-width: 100%;
    }
    
    .toast-container {
        left: 1rem;
    }
}