/**
 * 토스트 메시지 스타일
 * 위치: assets/css/utils/toast.css
 */

/* 토스트 메시지 스타일 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid #667eea;
}

.toast.toast-success {
    border-left-color: #4caf50;
}

.toast.toast-error {
    border-left-color: #f44336;
}

.toast.toast-warning {
    border-left-color: #ff9800;
}

.toast.toast-info {
    border-left-color: #2196f3;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.toast-success .toast-icon {
    color: #4caf50;
}

.toast.toast-error .toast-icon {
    color: #f44336;
}

.toast.toast-warning .toast-icon {
    color: #ff9800;
}

.toast.toast-info .toast-icon {
    color: #2196f3;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

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

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

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease-out forwards;
}

