/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    pointer-events: none;
}

/* Toast Item */
.toast {
    background: var(--color-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    min-width: 384px;
    max-width: 100%;
    height: 86px;
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.show {
    animation: slideIn 0.3s ease forwards;
}

.toast.toast-success {
    background: var(--color-white);
}

.toast.toast-error {
    background: var(--color-white);
}

.toast.toast-warning {
    background: var(--color-white);
}

/* Toast Content */
.toast-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.toast-text {
    flex: 1;
}

.toast-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.toast.toast-success .toast-icon-wrapper {
    background: transparent;
}

.toast.toast-error .toast-icon-wrapper {
    background: transparent;
}

.toast.toast-warning .toast-icon-wrapper {
    background: transparent;
}

.toast-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.toast.toast-success .toast-icon {
    color: var(--color-success);
}

.toast.toast-error .toast-icon {
    color: var(--color-danger);
}

.toast.toast-warning .toast-icon {
    color: var(--color-warning);
}

/* Toast Message */
.toast-message {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.5;
}

/* Toast Description */
.toast-description {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 4px;
}

/* Toast Close Button */
.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.toast-close:hover {
    color: var(--color-gray-700);
}

.toast-close img {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 576px) {
    #toast-container {
        top: 20px;
        right: 16px;
        left: auto;
        max-width: none;
    }

    .toast {
        min-width: auto;
    }
}
