/**
 * Toast Alert 스타일
 */

#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    padding: 14px 18px;
    border-radius: 100px;
    font-size: 15px;
    letter-spacing: -1px;
    font-weight: 700;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toast-alert.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-alert.hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast-alert.toast-success {
    background: #fff;
    color: #191f28;
}

.toast-alert.toast-error {
    background: #fff;
    color: #191f28;
}

.toast-alert.toast-warning {
    background: #fff;
    color: #191f28;
}

.toast-alert.toast-info {
    background: #fff;
    color: #191f28;
}

.toast-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: toastIconPop 0.8s ease;
}

@keyframes toastIconPop {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes toastIconShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-8deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(8deg);
    }
}

.toast-success .toast-icon {
    background: #d1fae5;
    color: #10b981;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast-warning .toast-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.toast-info .toast-icon {
    background: #dbeafe;
    color: #3b82f6;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
    animation: toastIconShake 0.5s ease 0.4s;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

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

.toast-close svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 480px) {
    #toast-container {
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .toast-alert {
        min-width: auto;
        max-width: none;
    }
}
