/* =====================================================
   Toast Styles - 消息提示样式 (Sonner 风格)
   ===================================================== */

.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
    min-width: 300px;
    max-width: 420px;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--hiding {
    opacity: 0;
    transform: translateY(-100%);
}

.toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    flex-shrink: 0;
}

.toast--success {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.toast--success .toast__icon {
    color: #22c55e;
}

.toast--error {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.toast--error .toast__icon {
    color: #ef4444;
}

.toast--info {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.toast--info .toast__icon {
    color: #3b82f6;
}

.toast--warning {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.toast--warning .toast__icon {
    color: #f59e0b;
}

.toast__message {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.toast__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.15s ease;
    flex-shrink: 0;
    font-size: 14px;
}

.toast__close:hover {
    color: #6b7280;
}
